sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dmenu_run_i (257B)


      1 #!/bin/sh
      2 
      3 # dmenu_run improved
      4 # command ending with '!', is started in the terminal.
      5 
      6 test -s "$HOME"/.dmenurc && . "$HOME"/.dmenurc
      7 
      8 cmd="$(dmenu_path | dmenu "$@")"
      9 
     10 case $cmd in
     11     *\!) "${TERMINAL:-st}" -e "${cmd%?}" & ;;
     12     *)   "${cmd}" & ;;
     13 esac