dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

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"