-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xsessionrc
71 lines (54 loc) · 1.4 KB
/
.xsessionrc
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
59
60
61
62
63
64
65
66
67
68
69
70
71
#/bin/bash
/usr/bin/xmonad &
/usr/bin/gnome-screensaver &
# set the default cursor
xsetroot -cursor_name left_ptr
if [ -f $HOME/.Xdefaults ]; then
xrdb -merge $HOME/.Xdefaults
fi
xsetroot -solid black
# set background
if [ -f $HOME/.fehbg ]; then
eval $(cat $HOME/.fehbg)
fi
# make right-alt also mod4
xmodmap -e 'remove mod1 = Alt_R'
xmodmap -e 'add mod4 = Alt_R'
# ssh agent
eval `/usr/bin/ssh-agent`
# tray icons
trayer --edge top --align right --SetDockType true --SetPartialStrut false \
--expand true --width 10 --transparent true --alpha 0 --tint 0x000000 --height 17 &
if [ -x /usr/bin/xcompmgr ] ; then
/usr/bin/xcompmgr -n &
fi
if [ -x /usr/bin/nm-applet ] ; then
/usr/bin/nm-applet --sm-disable &
fi
if [ -x /usr/bin/volti ] ; then
/usr/bin/volti &
fi
if [ -x /usr/bin/gnome-volume-control-applet ] ; then
/usr/bin/gnome-volume-control-applet &
fi
if [ -x /usr/bin/gnome-power-manager ] ; then
sleep 3
/usr/bin/gnome-power-manager &
fi
if [ -x /usr/bin/xautolock ] ; then
/usr/bin/xautolock -time 5 -locker "gnome-screensaver-command -l" -notify 10 \
-notifier "xset s activate && xset dpms force off" \
-detectsleep &
fi
if [ -x /usr/bin/terminator ] ; then
/usr/bin/terminator &
else
xterm &
fi
# screenshot utility
if [ -x /usr/bin/shutter ] ; then
/usr/bin/shutter --min_at_startup &
fi
if [ -x $HOME/.dotfiles/xsessionrc ]; then
. $HOME/.dotfiles/xsessionrc
fi