1
0
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:
Joe Groocock 2018-02-14 18:52:26 +00:00
parent 7301d2476e
commit 30c680db3f
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
2 changed files with 16 additions and 16 deletions

View File

@ -175,8 +175,8 @@ bindsym XF86AudioPause exec --no-startup-id mpc pause
bindsym XF86AudioStop exec --no-startup-id mpc stop
bindsym XF86AudioNext exec --no-startup-id mpc next
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 XF86AudioLowerVolume 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@ -1000 && 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"

View File

@ -1,15 +1,15 @@
# thumb wheel up => increase volume and unmute
"amixer -D pulse set Master 1000+ unmute ; pkill -RTMIN+10 i3blocks"
b:6
# thumb wheel down => lower volume
"amixer -D pulse set Master 1000- ; pkill -RTMIN+10 i3blocks"
b:7
# backward button => previous song
"xte 'key XF86AudioPrev'"
b:8
# forward button => next song
"xte 'key XF86AudioNext'"
# thumb wheel up => increase volume and unmute
"xdotool key --clearmodifiers XF86AudioRaiseVolume"
b:6
# thumb wheel down => lower volume
"xdotool key --clearmodifiers XF86AudioLowerVolume"
b:7
# backward button => previous song
"xte 'key XF86AudioPrev'"
b:8
# forward button => next song
"xte 'key XF86AudioNext'"
b:9