aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-19 23:56:13 +0800
committerGuangxiong Lin <[email protected]>2022-06-19 23:56:13 +0800
commitb5d772f01e410d4fe0dcdc661c958657fbf0ca28 (patch)
tree54d3a01f991613df21e2e94ae4085d9b350a7308 /bin
parent36286917b3e209fc4556d7350c065aee55a6f7ec (diff)
downloaddotfiles-b5d772f01e410d4fe0dcdc661c958657fbf0ca28.tar.gz
dotfiles-b5d772f01e410d4fe0dcdc661c958657fbf0ca28.tar.bz2
dotfiles-b5d772f01e410d4fe0dcdc661c958657fbf0ca28.zip
Switch to swaywm
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"