diff --git a/i3/config b/i3/config index e463618..9a19c3d 100755 --- a/i3/config +++ b/i3/config @@ -201,4 +201,15 @@ client.unfocused #b38a5b #b38a5b #CCCCCC #8c5831 #7c2c09 client.background #FFFFFF - +# Volume and brightness controls +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioPause exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% # raise volume +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% # lower volume +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # toggle mute for default device +# use i3lock-fancy +bindsym $mod-z exec i3lock-fancy diff --git a/i3status/config b/i3status/config index 351d0b9..054d38b 100644 --- a/i3status/config +++ b/i3status/config @@ -4,6 +4,7 @@ general { interval = 10 } +order += "volume master" order += "cpu_usage" order += "memory" order += "disk /" @@ -39,3 +40,11 @@ memory { threshold_degraded= 10% threshold_critical= 3% } + +volume master { + format = "♪: %volume" + device = "default" + mixer = "Master" + mixer_idx = 0 +} +