diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 9dcc4c1..f5efbf8 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -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 diff --git a/.local/bin/player b/.local/bin/player new file mode 100755 index 0000000..e1bb1b7 --- /dev/null +++ b/.local/bin/player @@ -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"