feat: `player` script
mpc wrapper to send notifications when controlling mpd add keybindings for sxhkd
This commit is contained in:
parent
f3da2228dc
commit
dbfec34131
|
@ -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
|
||||
|
|
|
@ -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"
|
Reference in New Issue