From bb10d3ea28bd1bd0a590f4a0b5c0f1a2c6f2ef1c Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sun, 9 Nov 2025 00:56:24 +0400 Subject: feat(x11): support XDG paths and add wallpaper setup --- config/x11/xinitrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'config/x11') 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 -- cgit v1.2.3