diff --git a/dot_config/i3/config b/dot_config/i3/config index 89c80d0..87e5fe4 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -49,7 +49,7 @@ exec --no-startup-id dunst exec --no-startup-id i3-msg 'workspace 10; exec rocketchat-desktop; exec electron-mail;' # Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status +set $refresh_i3status pkill -RTMIN+10 i3blocks bindsym $mod+equal exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +4% && $refresh_i3status bindsym $mod+minus exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -4% && $refresh_i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status diff --git a/dot_config/i3blocks/executable_config b/dot_config/i3blocks/executable_config index 134f1e3..e325e30 100644 --- a/dot_config/i3blocks/executable_config +++ b/dot_config/i3blocks/executable_config @@ -3,6 +3,18 @@ command=curl -Ss "https://wttr.in/55404?m&format=%25c%25C+%25t+%25p\n" interval=3600 color=#A4C2F4 +[volume] +command=/usr/lib/i3blocks/volume/volume +LABEL=VOL +interval=once +signal=10 + +[battery-poly] +command=/usr/lib/i3blocks/battery-poly/battery-poly +LABEL=BAT +interval=5 +color=#999999 + [date] command=date +"%a %m[%d]%Y" interval=5