Add i3blocks configuration for “desktop” and “laptop”
This commit is contained in:
parent
89212c8220
commit
5542291c58
3 changed files with 100 additions and 2 deletions
|
@ -27,7 +27,7 @@ font pango:DejaVu Sans Mono 9
|
|||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec i3-sensible-terminal
|
||||
bindsym $mod+Return exec gnome-terminal
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+X kill
|
||||
|
@ -178,7 +178,8 @@ bindsym $mod+c mode "resize"
|
|||
# finds out, if available)
|
||||
bar {
|
||||
position top
|
||||
status_command i3status
|
||||
status_command i3blocks
|
||||
font pango:DejaVu Sans Mono 10
|
||||
}
|
||||
|
||||
# Shutdown, reboot, lock srceen
|
||||
|
@ -199,3 +200,6 @@ mode "$mode_system" {
|
|||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+Shift+P mode "$mode_system"
|
||||
|
||||
# Switch audio device (pulseaudio)
|
||||
bindsym $mod+y exec --no-startup-id ~/Dokumente/Coding/scripts/pa.bash switch && pkill -SIGRTMIN+10 i3blocks
|
||||
|
|
46
i3blocks/desktop.config
Normal file
46
i3blocks/desktop.config
Normal file
|
@ -0,0 +1,46 @@
|
|||
command=/usr/lib/i3blocks/$BLOCK_NAME
|
||||
separator_block_width=10
|
||||
markup=none
|
||||
separator=false
|
||||
|
||||
[cpu_usage]
|
||||
label=
|
||||
min_width=CPU100.00%
|
||||
interval=5
|
||||
|
||||
[memory]
|
||||
label=
|
||||
interval=30
|
||||
|
||||
[disk]
|
||||
label=
|
||||
instance=/
|
||||
interval=30
|
||||
|
||||
[disk]
|
||||
label=
|
||||
instance=/home
|
||||
interval=30
|
||||
|
||||
[bandwidth]
|
||||
label=
|
||||
min_width=IN 200K OUT 200K
|
||||
interval=5
|
||||
|
||||
[audiodevice]
|
||||
label=
|
||||
full_text=switch device
|
||||
min_width=iec958
|
||||
command=~/Dokumente/Coding/scripts/pa.bash
|
||||
interval=30
|
||||
signal=10
|
||||
|
||||
[mail]
|
||||
label=
|
||||
command=~/Dokumente/Coding/scripts/mail-count.bash
|
||||
interval=30
|
||||
|
||||
[time]
|
||||
label=
|
||||
command=date '+%H:%M %d.%m.%Y' && date '+%H:%M'
|
||||
interval=20
|
48
i3blocks/laptop.config
Normal file
48
i3blocks/laptop.config
Normal file
|
@ -0,0 +1,48 @@
|
|||
command=/usr/lib/i3blocks/$BLOCK_NAME
|
||||
separator_block_width=10
|
||||
markup=none
|
||||
separator=false
|
||||
|
||||
[wifi]
|
||||
label=
|
||||
instance=wlp1s0
|
||||
interval=10
|
||||
|
||||
[battery]
|
||||
label=
|
||||
#instance=1
|
||||
interval=30
|
||||
|
||||
[cpu_usage]
|
||||
label=
|
||||
min_width=CPU100.00%
|
||||
interval=5
|
||||
|
||||
[memory]
|
||||
label=
|
||||
interval=30
|
||||
|
||||
[disk]
|
||||
label=
|
||||
instance=/
|
||||
interval=30
|
||||
|
||||
[disk]
|
||||
label=
|
||||
instance=/home
|
||||
interval=30
|
||||
|
||||
[bandwidth]
|
||||
label=
|
||||
min_width=IN 200K OUT 200K
|
||||
interval=5
|
||||
|
||||
[mail]
|
||||
label=
|
||||
command=~/Dokumente/Coding/scripts/mail-count.bash
|
||||
interval=30
|
||||
|
||||
[time]
|
||||
label=
|
||||
command=date '+%H:%M %d.%m.%Y' && date '+%H:%M'
|
||||
interval=20
|
Loading…
Add table
Reference in a new issue