blob: 50fb29b77430044a681058bb918ce6ab8f83e81f (
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
|
#!/bin/sh
xrandr -s 0
xrdb -load $HOME/.Xdefaults
xsetroot -cursor_name left_ptr
xset b off
xset s off
xset -dpms
start-pulseaudio-x11
feh --bg-center ~/chai.jpg
# hide cursor when unused (DONT FORGET -noevents / BUG)
unclutter -idle 3 -root -noevents &
# Turn CapsLock into Control
xmodmap -e "clear lock" -e "keycode 66 = Control_R" -e "add Control = Control_R"
# starting gpg daemon
gpg-agent --daemon --use-standard-socket
# activating xscreensaver
acpi -b | grep -qE 'Discharging'
if [ $? -ne 0 ]; then
xscreensaver -nosplash &
fi
# akonadi server (kde4.* compat)
if [ -x /usr/bin/akonadi_agent_server ]; then
akonadi_agent_server &
fi
# activate trickled network bandwith control
trickled
if [ -x /usr/bin/xcompmgr ]; then
/usr/bin/xcompmgr &
fi
if [ -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch ~/.cabal/bin/xmonad
else
exec dbus-launch ~/.cabal/bin/xmonad
fi
|