-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
executable file
·51 lines (38 loc) · 1.06 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
autoperipherals
# Load X resources (fixes some font issues)
xrdb -merge .Xresources
# volume & brightness notification daemon
volnoti -t 1
# Enable numlock on boot (thanks me!)
numlockx on
# Restore brightness to previous level
xbacklight -set `cat ~/.brightness`
if [ -x /usr/bin/pasystray ]; then
pasystray &
fi
if [ -x /usr/bin/nm-applet ]; then
nm-applet &
fi
if [ -x /usr/bin/xcape ]; then
xcape
fi
if [ -x /usr/bin/xsettingsd ]; then
touch ~/.xsettingsd
/usr/bin/xsettingsd &
fi
if [ -x /usr/bin/polybar ]; then
/usr/bin/polybar &
fi
if [ -x /home/james/dotfiles/my-nix/result/bin/flameshot ]; then
/home/james/dotfiles/my-nix/result/bin/flameshot &
fi
# From https://wiki.archlinux.org/index.php/GNOME/Keyring#xinitrc_method
if [ -x /usr/bin/gnome-keyring-daemon ]; then
dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
fi
# xmonad doesn't set a cursor
xsetroot -cursor_name left_ptr
# Now, finally, start xmonad
exec xmonad