diff options
-rwxr-xr-x | bin/setup.sh | 1 | ||||
-rw-r--r-- | i3/config | 2 | ||||
-rw-r--r-- | i3blocks.conf | 106 | ||||
-rw-r--r-- | xbindkeysrc-pincer | 14 |
4 files changed, 115 insertions, 8 deletions
diff --git a/bin/setup.sh b/bin/setup.sh index 441b8e8..e3b7c4f 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -68,6 +68,7 @@ if which i3 >/dev/null; then mkdir -p .i3 create_symlink ../dotfiles/i3/config .i3/config create_symlink dotfiles/i3status.conf .i3status.conf + create_symlink dotfiles/i3blocks.conf .i3blocks.conf else printf "${orange}[SKIPPED]${none} i3 not installed.\n" fi @@ -158,7 +158,7 @@ mode "resize" { # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status + status_command i3blocks font xft:Droid Sans Mono 8 } diff --git a/i3blocks.conf b/i3blocks.conf new file mode 100644 index 0000000..62df263 --- /dev/null +++ b/i3blocks.conf @@ -0,0 +1,106 @@ +# i3blocks config file +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +command=/usr/lib/i3blocks/$BLOCK_NAME +separator_block_width=15 +markup=none + +# Volume indicator +# +# The first parameter sets the step (and units to display) +# The second parameter overrides the mixer selection +# See the script for details. +[volume] +label=♪ +instance=Master +#instance=PCM +interval=once +signal=10 + +[brightness] +label=☼ +command=xbacklight | awk -F. '{print $1}' +interval=once +signal=10 + +[disk] +label=/ +instance=/ +interval=30 + +# Network interface monitoring +# +# If the instance is not specified, use the interface used for default route. +# The address can be forced to IPv4 or IPv6 with -4 or -6 switches. +[iface] +#instance=wlan0 +color=#00FF00 +interval=10 +separator=false + +[wifi] +#instance=wlp3s0 +interval=10 +separator=false + +[ipv6] +label= +command=ip -6 a show scope global | grep -q global && echo -e "ipv6\nipv6\n#A8FF00" || echo -e "ipv4\nipv4\n#cc0000" +interval=10 + +[bandwidth] +#instance=eth0 +interval=5 + +[load_average] +interval=10 + +# Battery indicator +# +# The battery instance defaults to 0. +[battery] +label=bat +#label=⚡ +#instance=1 +interval=30 +separator=false + +[power] +label= +command=zsh -c '[[ $(cat /sys/class/power_supply/BAT0/status) == "Discharging" ]] && printf "%.2f W" $(( $(cat /sys/class/power_supply/BAT0/power_now) / 1000000.0 )) || echo ""' +color=77bb33 +interval=30 +signal=10 + +# Date Time +# +[time] +command=date '+%Y-%m-%d %H:%M' +interval=60 + +# Temperature +# +# Support multiple chips, though lm-sensors. +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +[temperature] +label= +interval=10 + +# Key indicators +# +# Add the following bindings to i3 config file: +# +# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks +# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks +#[keyindicator] +#instance=CAPS +#interval=once +#signal=11 + +#[keyindicator] +#instance=NUM +#interval=once +#signal=11 diff --git a/xbindkeysrc-pincer b/xbindkeysrc-pincer index 569df58..a72b809 100644 --- a/xbindkeysrc-pincer +++ b/xbindkeysrc-pincer @@ -1,20 +1,20 @@ -"/home/orbekk/bin/brightness.sh + && pkill -SIGUSR1 i3status" +"/home/orbekk/bin/brightness.sh + && pkill -RTMIN+10 i3blocks" XF86MonBrightnessUp -"/home/orbekk/bin/brightness.sh - && pkill -SIGUSR1 i3status" +"/home/orbekk/bin/brightness.sh - && pkill -RTMIN+10 i3blocks" XF86MonBrightnessDown -"amixer -c 1 set Master 1dB- && pkill -SIGUSR1 i3status" +"amixer -c 1 set Master 1dB- && pkill -RTMIN+10 i3blocks" XF86AudioLowerVolume -"amixer -c 1 set Master 1dB+ && pkill -SIGUSR1 i3status" +"amixer -c 1 set Master 1dB+ && pkill -RTMIN+10 i3blocks" XF86AudioRaiseVolume -"amixer -c 1 set Master toggle && pkill -SIGUSR1 i3status" +"amixer -c 1 set Master toggle && pkill -RTMIN+10 i3blocks" XF86AudioMute -"amixer -c 1 set Mic toggle && pkill -SIGUSR1 i3status" +"amixer -c 1 set Mic toggle && pkill -RTMIN+10 i3blocks" XF86AudioMicMute -"i3lock -c 2A3462 && pkill -SIGUSR1 i3status" +"i3lock -c 2A3462" XF86Tools |