dmenu-dwmblocks (324B)
1 #!/bin/sh 2 [ -z "$DOTFILES" ] && notify "Error" "DOTFILES not set." 3 scriptname="$(find "$DOTFILES/scripts/" -name "dwmblock-*" | dmenu -i -l 5 -p "Script to run")" 4 [ -z "$scriptname" ] && exit 5 button="$(printf '1\n2\n3\n4\n5\n6' | dmenu -i -l 6 -p "Button to press:")" 6 [ -z "$button" ] && exit 7 BUTTON="$button" "$scriptname"