-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
48 lines (41 loc) · 1.24 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
#!/bin/sh
# this file is run when calling startx
# default arch init scripts
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# user init scripts and settings.
dbus-update-activation-environment --systemd --all
systemctl --user import-environment DISPLAY
# personal startup services
systemctl --user start Xsession.target &
# These guys are environment variables.
# These guys are environment variables.
if [ -f "$MODMAP" ]; then
xmodmap "$MODMAP"
else
xmodmap -pke > ~/.config/xfiles/Xmodmap
xmodmap ~/.config/xfiles/Xmodmap
fi
[ -f "$RESOURCES_FILE" ] && xrdb -load "$RESOURCES_FILE"
# more stuff (personal scripts).
xset s off -dpms
xset r rate 350 70
urxvtd -q -o -f &
numlockx on &
#pcmanfm -d &
autostart &
# launch the session, commands below these lines will be ignored
# ONLY APPLIES TO ZSH
# Starting Xsession depending on tty when multiple wm are installed.
# If you want to use this way for login, uncomment the case statement,
# and remove the last line of this file.
# refers to $HOME/.config/zsh/.zlogin
#case $(tty | cut -b9-) in
# (1) exec bspwm ;;
# (2) exec i3 ;;
# (3) exec /usr/local/bin/dk > ~/.config/dk/debbug.log ;;
#esac