sites

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

dmenu_run_i (275B)


      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     '')  ;;
     12     *\!) exec "${TERMINAL:-st}" -e ${cmd%?} & ;;
     13     *)   exec ${cmd} & ;;
     14 esac