diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-03-10 16:06:09 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-03-10 16:08:25 +0000 |
commit | 78d0281e29d31b81dd5233d7eb6bcc8ff4a982f3 (patch) | |
tree | 5380749f4aea6a4662199b969499a45cfd50b8a4 /SXHkD/.config/sxhkd/sxhkdrc | |
parent | 8670ea3980fb53c395806cb4d25ba1453761e5a7 (diff) | |
download | dotfiles-78d0281e29d31b81dd5233d7eb6bcc8ff4a982f3.tar.gz dotfiles-78d0281e29d31b81dd5233d7eb6bcc8ff4a982f3.tar.bz2 dotfiles-78d0281e29d31b81dd5233d7eb6bcc8ff4a982f3.zip |
(SXHkD)~playerctl controls instead of mpc based commands
playerctl is a bit more generic and makes it easier to script
interactions.
Diffstat (limited to 'SXHkD/.config/sxhkd/sxhkdrc')
-rw-r--r-- | SXHkD/.config/sxhkd/sxhkdrc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc index 023fa9d..d15357a 100644 --- a/SXHkD/.config/sxhkd/sxhkdrc +++ b/SXHkD/.config/sxhkd/sxhkdrc @@ -53,20 +53,14 @@ super + F12 # Music and volume super + F{6,7,8} - mpc -q {prev,toggle,next}; \ - notify-send "MPD: Track $(mpc --format '%title%' | head -1)"; + playerctl -a {previous,play-pause,next}; -XF86Audio{Prev,Next} - mpc -q {prev,next}; \ - notify-send "MPD: Track $(mpc --format '%title%' | head -1)"; - -super + {_,shift + }F{9,10} - kill -44 $(pidof dwmblocks); \ - {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%; +XF86Audio{Prev,Play,Next} + playerctl -a {previous,play-pause,next}; {_,shift + }XF86Audio{Lower,Raise}Volume kill -44 $(pidof dwmblocks); \ - {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%; + {pactl set-sink-volume 0,$HOME/.local/scripts/spotify_volume} {-,+}5%; XF86AudioMute kill -44 $(pidof dwmblocks); \ |