aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/autostart2
-rwxr-xr-xbin/autostart-wayland10
-rwxr-xr-xbin/my-dmenu (renamed from bin/my-dmenu-run)3
3 files changed, 13 insertions, 2 deletions
diff --git a/bin/autostart b/bin/autostart
index 29b1d25..ac4bc3a 100755
--- a/bin/autostart
+++ b/bin/autostart
@@ -7,3 +7,5 @@
[ -f /usr/bin/udiskie ] && udiskie -a -n -s &
[ -f /usr/bin/clipmenud ] && clipmenud &
+
+[ -x "$HOME/.local/autostart" ] && "$HOME/.local/autostart"
diff --git a/bin/autostart-wayland b/bin/autostart-wayland
new file mode 100755
index 0000000..f725c20
--- /dev/null
+++ b/bin/autostart-wayland
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+[ -f /usr/bin/fcitx5 ] && fcitx5 -d
+
+[ -f /usr/bin/dunst ] && dunst &
+[ -f /usr/bin/udiskie ] && udiskie -a -n -s --appindicator &
+
+[ -f /usr/bin/clipmenud ] && clipmenud &
+
+[ -x "$HOME/.local/autostart" ] && "$HOME/.local/autostart"
diff --git a/bin/my-dmenu-run b/bin/my-dmenu
index e6ddd2f..fe514b0 100755
--- a/bin/my-dmenu-run
+++ b/bin/my-dmenu
@@ -13,7 +13,6 @@ tui_apps=(
ncmpcpp
)
-shell=${SHELL:-"/bin/sh"}
terminal=${TERMINAL:-"/usr/bin/xterm"}
prog=$(dmenu_path | dmenu "$@")
@@ -26,4 +25,4 @@ if [[ "${prog}" == emacs ]]; then
prog="LC_CTYPE='zh_CN.UTF-8' emacs"
fi
-echo "$prog" | $shell &
+echo "$prog"