dotfiles

personal configuration files and scripts
git clone https://tongong.net/git/dotfiles.git
Log | Files | Refs | README

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