aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-12-10 22:53:44 +0800
committerGuangxiong Lin <[email protected]>2021-12-10 22:53:44 +0800
commitfda11939e645723b4053d54f639480072a5222ef (patch)
treedbd41e424b0e9695fae62a8955ef73d298472ea7
parent1415fdb5c4e31e417afae60efd722d9ec0d070da (diff)
downloaddotfiles-fda11939e645723b4053d54f639480072a5222ef.tar.gz
dotfiles-fda11939e645723b4053d54f639480072a5222ef.tar.bz2
dotfiles-fda11939e645723b4053d54f639480072a5222ef.zip
Add autostart
-rw-r--r--.xinitrc8
-rwxr-xr-xbin/autostart11
-rwxr-xr-xbin/startdwm1
3 files changed, 12 insertions, 8 deletions
diff --git a/.xinitrc b/.xinitrc
index e40c529..7e53c46 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -38,13 +38,7 @@ fi
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
-export GTK_IM_MODULE=fcitx
-export QT_IM_MODULE=fcitx
-export XMODIFIERS=@im=fcitx
-export INPUT_METHOD=fcitx
-export SDL_IM_MODULE=fcitx
-
-[ -f ~/.fehbg ] && ~/.fehbg &
+source autostart
session=${1:-dwm}
case $session in
diff --git a/bin/autostart b/bin/autostart
new file mode 100755
index 0000000..0ea29ee
--- /dev/null
+++ b/bin/autostart
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+export GTK_IM_MODULE=fcitx
+export QT_IM_MODULE=fcitx
+export XMODIFIERS=@im=fcitx
+export INPUT_METHOD=fcitx
+export SDL_IM_MODULE=fcitx
+
+[ -f /usr/bin/fcitx5 ] && fcitx5 -d
+
+[ -f ~/.fehbg ] && ~/.fehbg &
diff --git a/bin/startdwm b/bin/startdwm
index 981669f..afa74f1 100755
--- a/bin/startdwm
+++ b/bin/startdwm
@@ -11,7 +11,6 @@ while true; do
done &
picom -b
-fcitx5 -d
csum=""
new_csum=$(sha1sum $(which dwm))