aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2023-12-16 11:35:00 -0700
committerkatherine <ageha@airen-no-jikken.icu>2023-12-16 11:35:00 -0700
commitc45f01583f6151fd542326cee5ecab934f4c4165 (patch)
tree385a2e8fb1cc4d39ac392efb0315a1fe12575e87 /.config/herbstluftwm
parent6996e6d377f8560d5fe2feccc58615c86f4257ae (diff)
downloaddotfiles-c45f01583f6151fd542326cee5ecab934f4c4165.tar.gz
clean up hlwm startup tasks a bit
Diffstat (limited to '.config/herbstluftwm')
-rwxr-xr-x.config/herbstluftwm/autostart17
1 files changed, 5 insertions, 12 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index 1d60817..02531ab 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -7,17 +7,8 @@
source ~/.config/init/vars
#merge Xresources
-if [ -s "$HOME/.Xresources" ]
-then
- xrdb -override "$HOME/.Xresources"
-fi
-
-if [ -s $tmpdir/x-theme ]
-then
- xrdb -override $tmpdir/x-theme
-fi
-
-fcitx5 &
+[[ -s $HOME/.Xresources ]] && xrdb -override $HOME/.Xresources
+[[ -s $tmpdir/x-theme ]] && xrdb -override $tmpdir/x-theme
#keyrate
xset r rate $kbdelay $kbrate
@@ -25,7 +16,7 @@ xset r rate $kbdelay $kbrate
#store sxiv cache in ram
export XDG_CACHE_HOME="$HOME/.cache"
mkdir -p "$HOME/.cache"
-if [ -d $tmpdir ]; then
+if [[ -d $tmpdir ]]; then
mkdir -p $tmpdir/sxiv
cd "$HOME/.cache/"
ln -sf $tmpdir/sxiv .
@@ -45,6 +36,8 @@ xset s off
#daemons
picom -b --backend glx --vsync --glx-no-stencil --glx-no-rebind-pixmap
+fcitx5 &
+
xsetroot -cursor_name left_ptr
nitrogen --restore
xbanish &