diff options
Diffstat (limited to 'bin/my-dmenu-run')
-rwxr-xr-x | bin/my-dmenu-run | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/bin/my-dmenu-run b/bin/my-dmenu-run deleted file mode 100755 index e6ddd2f..0000000 --- a/bin/my-dmenu-run +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -tui_apps=( - vim - mutt - - nnn - ranger - - newsboat - podboat - cmus - ncmpcpp -) - -shell=${SHELL:-"/bin/sh"} -terminal=${TERMINAL:-"/usr/bin/xterm"} - -prog=$(dmenu_path | dmenu "$@") - -if [[ " ${tui_apps[*]} " =~ " ${prog} " ]]; then - prog="$terminal -e $prog" -fi - -if [[ "${prog}" == emacs ]]; then - prog="LC_CTYPE='zh_CN.UTF-8' emacs" -fi - -echo "$prog" | $shell & |