[OPEN] i3-wm_Sound/Brightness buttons

Post Reply
abaati
recruit crewman
Posts: 1
Joined: Wed Feb 10, 2021 10:23 pm

[OPEN] i3-wm_Sound/Brightness buttons

Post by abaati »

Hello everyone,

My sound and brightness buttons don't work on i3. Everything works fine with xfce4 but not with i3-wm.
the sound button only works when i open pavucontrol, but is there another way to do it without having the Pavucontrol window open all the time?
As for the brightness buttons I still can't figure it out.

Thanks for your help

User avatar
sleepyeyesvince
Crewman
Posts: 15
Joined: Thu Oct 10, 2019 3:43 pm

Re: [OPEN] i3-wm_Sound/Brightness buttons

Post by sleepyeyesvince »

You could try some of these keybindings in your i3 config file:

Code: Select all

bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && pkill -RTMIN+1 i3blocks
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && pkill -RTMIN+1 i3blocks
bindsym XF86AudioMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && pkill -RTMIN+2 i3blocks

Post Reply

Return to “i3-wm”