aboutsummaryrefslogtreecommitdiff
path: root/bin/my-dmenu-run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/my-dmenu-run')
-rwxr-xr-xbin/my-dmenu-run4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/my-dmenu-run b/bin/my-dmenu-run
index 6596b52..83dc194 100755
--- a/bin/my-dmenu-run
+++ b/bin/my-dmenu-run
@@ -21,4 +21,8 @@ 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 &