-
Notifications
You must be signed in to change notification settings - Fork 2
/
xinitrc
55 lines (46 loc) · 1.4 KB
/
xinitrc
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
#!/bin/sh
# global startup scripts
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Read Xresources
xrdb -merge ~/.Xresources
# Key management
gpg_agent_info="${HOME}/.gnupg/gpg-agent.info"
if pgrep -u "${USER}" gpg-agent >/dev/null 2>&1; then
eval `cat ${gpg_agent_info}`
eval `cut -d= -f1 ${gpg_agent_info} | xargs echo export`
else
eval `gpg-agent --enable-ssh-support --write-env-file=${gpg_agent_info} --daemon`
fi
# Some visuals i wanna have really fast
compton --vsync opengl-swc --backend glx --unredir-if-possible --glx-no-stencil &
xsetroot -cursor_name left_ptr &
hsetroot -fill ~/.wallpapers/current &
# Blend Qt into GTK environment
export GTK2_RC_FILES="${HOME}/.gtkrc-2.0"
# Some xmonad related bonus
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
# key repeating
xset r rate 200 35 &
# Connection management
wicd-client -t &
# Clipboard synchronization
parcellite &
# Auto locker
xautolock -detectsleep &
# audio
start-pulseaudio-x11 -D &
pasystray &
# display management
xrr-events --daemonize &
# keyboard
xmodmap ~/.Xmodmap &
# Source device dependent xinitrc
. ${HOME}/.xinitrc.local
# Start xmonad
exec xmonad