aboutsummaryrefslogtreecommitdiff
path: root/.config/X11/xinitrc
blob: 116c9da6f9dc03a1e83f5c3f2c8f7d425cc05656 (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
#!/bin/sh -eu

Xmodmap=$HOME/.config/X11/Xmodmap
Xresources=$HOME/.config/X11/Xresources
Xauthority=$HOME/.config/X11/Xauthority

# merge in defaults and keymaps
[ -f "$Xmodmap"    ] && xmodmap "$Xmodmap"
[ -f "$Xresources" ] && xrdb -merge "$Xresources"

# screen timeouts
xset s 0 0 &
xset dpms 3600 3600 3600 &

# set cursor
xsetroot -cursor_name left_ptr

# set keypress repeat
xset r rate 200 60

# import systemctl environment
systemctl --user import-environment

# launch environment
dbus-launch xfce4-session \
  || dbus-broker-launch xfce4-session \
  || exec awesome --no-argb