fix slow starting gtk applications be restructuring xinitrc
[dotfiles.git] / x / .xinitrc
1 #!/bin/bash
2 #To fix java applications in tiling (e.g. arduino)
3 export _JAVA_AWT_WM_NONREPARENTING=1
4
5 # notifications
6 dunst &
7
8 # gpg agent
9 eval "$(gpg-agent --daemon)"
10
11 # XResources
12 xrdb -merge ~/.Xresources
13
14 # auto locking but only on laptop
15 if [ $(hostname) != ygdrassil ]; then
16 xautolock -locker slock -time 10 &
17 fi
18
19 # status bar
20 slstatus &
21
22 # compositor
23 xcompmgr -a -c -l0 -t0 -r0 -o.00 &
24
25 # Other system wide xinit files
26 if [ -f /etc/X11/xinit/xinitrc ]; then
27 . /etc/X11/xinit/xinitrc
28 fi