aboutsummaryrefslogtreecommitdiffstats
path: root/.xinitrc
blob: 1d837a84561d8979e9880ada147e730384399aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pull inna vars
source "$HOME/.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 &

exec herbstluftwm