summaryrefslogtreecommitdiff
path: root/config/x11
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-11-09 00:56:24 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-11-09 00:56:24 +0400
commitbb10d3ea28bd1bd0a590f4a0b5c0f1a2c6f2ef1c (patch)
tree3d860761cea3dab02ea40bffbd2efe362b5599fa /config/x11
parentacff25c75734f002c35e3315e77f1181f4fbbf3c (diff)
feat(x11): support XDG paths and add wallpaper setup
Diffstat (limited to 'config/x11')
-rw-r--r--config/x11/xinitrc15
1 files changed, 8 insertions, 7 deletions
diff --git a/config/x11/xinitrc b/config/x11/xinitrc
index 1888136..14334c9 100644
--- a/config/x11/xinitrc
+++ b/config/x11/xinitrc
@@ -1,6 +1,6 @@
#!/bin/sh
-userresources="$HOME/.config/x11/xresources"
+userresources="${XDG_CONFIG_HOME:-${HOME}/.config}/x11/xresources"
# merge in defaults and keymaps
if [ -f "$userresources" ]; then
@@ -19,12 +19,13 @@ dunst &
picom &
dcheck_battery &
dcheck_mail &
-setxkbmap -option "caps:ctrl_modifier" # Map Caps Lock to Ctrl
-setxkbmap us # Set US keyboard layout
+setxkbmap -option "caps:ctrl_modifier" # Map Caps Lock to Ctrl
+setxkbmap us # Set US keyboard layout
slstatus &
-unclutter & # Hide mouse cursor if inactive
-xgamma -gamma 0.8 # Change gamma
-xset r rate 300 50 # Increase cursor speed
-xset s off && xset -dpms # Disable screen blackening
+unclutter & # Hide mouse cursor if inactive
+xgamma -gamma 0.8 # Change gamma
+swall -d "${DATADIR:-${HOME}/.local/share}/wallpapers" # Set a wallpaper
+xset r rate 300 50 # Increase cursor speed
+xset s off && xset -dpms # Disable screen blackening
exec dwm