Skip to content

Commit 2475e42

Browse files
Add XDG specification support
Signed-off-by: Severin Kaderli <[email protected]>
1 parent b8bd592 commit 2475e42

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: nvidia-xinitrc

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/env bash
22

3-
userresources=$HOME/.Xresources
4-
usermodmap=$HOME/.Xmodmap
3+
CONFIG_DIR=${XDG_CONFIG_HOME:-$HOME/.config}/X11
4+
userresources=$CONFIG_DIR/xresources
5+
usermodmap=$CONFIG_DIR/xmodmap
56
sysresources=/etc/X11/xinit/.Xresources
67
sysmodmap=/etc/X11/xinit/.Xmodmap
7-
userxinitrc=$HOME/.nvidia-xinitrc
8+
userxinitrc=$CONFIG_DIR/nvidia-xinitrc
89

910
# merge in defaults and keymaps
1011
if [[ -f ${sysresources} ]]; then

0 commit comments

Comments
 (0)