mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Fix volume desync with xbindkeys
This commit is contained in:
parent
7301d2476e
commit
30c680db3f
@ -175,8 +175,8 @@ bindsym XF86AudioPause exec --no-startup-id mpc pause
|
|||||||
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
||||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||||
bindsym XF86AudioPrev exec --no-startup-id mpc previous
|
bindsym XF86AudioPrev exec --no-startup-id mpc previous
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1000 && pkill -RTMIN+10 i3blocks
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2% && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1000 && pkill -RTMIN+10 i3blocks
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+10 i3blocks
|
||||||
exec --no-startup-id "ip monitor | while read line; do pkill -RTMIN+15 i3blocks; done"
|
exec --no-startup-id "ip monitor | while read line; do pkill -RTMIN+15 i3blocks; done"
|
||||||
|
|
||||||
|
28
.xbindkeysrc
28
.xbindkeysrc
@ -1,15 +1,15 @@
|
|||||||
# thumb wheel up => increase volume and unmute
|
# thumb wheel up => increase volume and unmute
|
||||||
"amixer -D pulse set Master 1000+ unmute ; pkill -RTMIN+10 i3blocks"
|
"xdotool key --clearmodifiers XF86AudioRaiseVolume"
|
||||||
b:6
|
b:6
|
||||||
|
|
||||||
# thumb wheel down => lower volume
|
# thumb wheel down => lower volume
|
||||||
"amixer -D pulse set Master 1000- ; pkill -RTMIN+10 i3blocks"
|
"xdotool key --clearmodifiers XF86AudioLowerVolume"
|
||||||
b:7
|
b:7
|
||||||
|
|
||||||
# backward button => previous song
|
# backward button => previous song
|
||||||
"xte 'key XF86AudioPrev'"
|
"xte 'key XF86AudioPrev'"
|
||||||
b:8
|
b:8
|
||||||
|
|
||||||
# forward button => next song
|
# forward button => next song
|
||||||
"xte 'key XF86AudioNext'"
|
"xte 'key XF86AudioNext'"
|
||||||
b:9
|
b:9
|
||||||
|
Loading…
Reference in New Issue
Block a user