feat: `player` script

mpc wrapper to send notifications when controlling mpd
add keybindings for sxhkd
This commit is contained in:
David 2021-02-05 21:48:22 +01:00
parent f3da2228dc
commit dbfec34131
2 changed files with 17 additions and 0 deletions

View File

@ -45,5 +45,8 @@ super + shift + {w,z}
super + shift + p
$BROWSER --private-window
super + shift + {h,j,k,l}
player {prev,stop,toggle,next}
super + shift + b
script="$(printf "bibinput\nbibshow" | dmenu -i -p "which script?")" && $script

14
.local/bin/player Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env sh
######################################################################
# @author : swytch (swytch@$HOSTNAME)
# @file : player
# @license : MIT
# @created : Friday Feb 05, 2021 21:42:00 CET
#
# @description : Simple wrapper to mpc, to send notifications
######################################################################
out="$(mpc $1 | head -n2)"
dunstify -r 10010 -u "normal" MPD "$out"