summaryrefslogtreecommitdiff
path: root/.config/x/xinitrc
blob: cf1e016009df31b13e134d426a78447e62aab647 (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
# For automatic lock on suspend/hibernation
systemctl --user import-environment DISPLAY

# Notification daemon
dunst &

# Composite manager, for blur and other neat effects
picom \
 --blur-method dual_kawase --blur-strength 2 --backend glx --glx-no-stencil \
 --fading --fade-in-step 0.05 --fade-out-step 0.1 \
 --corner-radius 10 --detect-rounded-corners \
 --rounded-corners-exclude 'class_g = "dwm"' \
 --rounded-corners-exclude 'window_type = "dock"' \
 --vsync --daemon

# Fonts
xset +fp "${XDG_FONTS:-$HOME/.local/share/fonts}"

# Disable mouse acceleration
xset m 0 0 &
xset r rate 300 50 &

xmodmap -e "clear lock"
xmodmap -e "keysym Multi_key = Multi_key Caps_Lock"
xmodmap -e "keycode 9 = Multi_key"
xmodmap -e "keycode 108 = Multi_key"
xmodmap -e "keycode 66 = Escape"

autorandr -c

feh --no-fehbg --bg-scale ~/pictures/background.png
dwmblocks &
xrdb $XDEFAULTS
exec /usr/local/bin/dwm