Try using python script to handle sound

This commit is contained in:
RealStickman 2021-03-17 15:41:32 +01:00
parent 2a7d1ab16c
commit 6008fd6331

View File

@ -620,9 +620,12 @@ bindsym XF86AudioMute exec --no-startup-id bash $HOME/scripts/dunst-volume.sh mu
#bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
#bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
#https://github.com/acrisci/playerctl/
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
#bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioPlay exec --no-startup-id ~/scripts/polybar/player-mpris-tail.py play-pause &
#bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioNext exec --no-startup-id ~/scripts/polybar/player-mpris-tail.py next &
#bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioPrev exec --no-startup-id ~/scripts/polybar/player-mpris-tail.py previous &
bindsym XF86AudioStop exec --no-startup-id playerctl stop