this post was submitted on 16 Aug 2023
3 points (80.0% liked)
swaywm
352 readers
5 users here now
dedicated to the Sway window manager, a drop-in replacement for the i3 window manager, but for Wayland instead of X11.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.