You could use ${XDG_CONFIG_HOME:-~/.config}
, so if the XDG_CONFIG_HOME variable is set, it'll use that, otherwise defaults to ~/.config.
This is for the case if the user has defined a custom directory for their configs it'll point there instead.
dedicated to the Sway window manager, a drop-in replacement for the i3 window manager, but for Wayland instead of X11.
You could use ${XDG_CONFIG_HOME:-~/.config}
, so if the XDG_CONFIG_HOME variable is set, it'll use that, otherwise defaults to ~/.config.
This is for the case if the user has defined a custom directory for their configs it'll point there instead.