aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/autostart
diff options
context:
space:
mode:
Diffstat (limited to '.config/herbstluftwm/autostart')
-rwxr-xr-x.config/herbstluftwm/autostart66
1 files changed, 66 insertions, 0 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index 049e084..75ecf9b 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -1,7 +1,70 @@
#!/usr/bin/env zsh
+###########
+# X setup #
+###########
+
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
+
+#theme
+export QT_STYLE_OVERRIDE=adwaita-dark
+export GTK_THEME=Adwaita:dark
+
+#input!
+export GTK_IM_MODULE=fcitx
+export QT_IM_MODULE=fcitx
+export SDL_IM_MODULE=fcitx
+export XMODIFIERS="@im=fcitx"
+fcitx5 &
+
+#keyrate
+xset r rate $kbdelay $kbrate
+
+#store sxiv cache in ram
+export XDG_CACHE_HOME="$HOME/.cache"
+mkdir -p "$HOME/.cache"
+if [ -d $tmpdir ]; then
+ mkdir -p $tmpdir/sxiv
+ cd "$HOME/.cache/"
+ ln -sf $tmpdir/sxiv .
+ cd
+fi
+
+#load more fonts
+xset +fp /usr/share/fonts/local
+xset +fp /usr/share/fonts/misc
+xset +fp "$HOME/.fonts"
+xset fp rehash
+
+#disable power saving, so screen doesn't power off
+xset -dpms
+xset s off
+
+#daemons
+picom -b --backend glx --vsync --glx-no-stencil --glx-no-rebind-pixmap
+
+xsetroot -cursor_name left_ptr
+nitrogen --restore
+xbanish &
+
+redshift -b 0.8:0.6 -t 5400K:4400K &
+
+
+###############
+# HSWM BASICS #
+###############
+
# always start frames max (pt. 1)
hc set default_frame_layout 2
hc set_layout max
@@ -10,6 +73,7 @@ hc set tree_style '╾│ ├└╼─┐'
hc emit_hook reload
+
###########
# THEME #
###########
@@ -34,6 +98,7 @@ hc set frame_padding 0
hc set smart_frame_surroundings 1
hc set smart_window_surroundings 1
+
#################
# KEYBINDINGS #
#################
@@ -215,6 +280,7 @@ fi
# unlock, just to be sure
hc unlock
+
##############
# CHILDREN #
##############