diff options
author | katherine <ageha@airen-no-jikken.icu> | 2023-12-02 21:17:34 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2023-12-02 21:17:34 -0700 |
commit | 2ee034eb2b93ca5a6cb788e2882da3fec7aa9b7d (patch) | |
tree | a3e55de294206840c50e6e45922baff2da8ce2ed /.config/herbstluftwm/autostart | |
parent | 93fa0e7c59b2f6c8ad273906177492203535e0e9 (diff) | |
download | dotfiles-2ee034eb2b93ca5a6cb788e2882da3fec7aa9b7d.tar.gz |
run all xorg setup stuff from hlfwm
test-ran a wayland compositor and it borked some kind of settings
something, but shift everything this way seems to function and is
probably anyways cleaner
Diffstat (limited to '.config/herbstluftwm/autostart')
-rwxr-xr-x | .config/herbstluftwm/autostart | 66 |
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 # ############## |