dmenu_run (331B)
1 #!/bin/sh 2 # This modified version of dmenu_run allows to run all programs listet in ~/.config/dmenu/terminal in terminal mode 3 4 terminal="st -e" 5 6 command=$(dmenu_path | dmenu "$@") 7 8 if grep -Fxq "$command" ~/.config/dmenu/terminal 9 then 10 echo $terminal $command | ${SHELL:-"/bin/sh"} & 11 else 12 echo $command | ${SHELL:-"/bin/sh"} & 13 fi