#1106666 sway: please make sway better customizable

Package:
sway
Source:
sway
Description:
i3-compatible Wayland compositor
Submitter:
M. Dietrich
Date:
2026-08-15 07:21:01 UTC
Severity:
normal
#1106666#5
Date:
2025-05-27 14:23:11 UTC
From:
To:
my goal is to run sway with the existing /etc/sway/config
(and participate from all fixes there on updates) but
customize my setup in my home dir.

to make this possible i suggest to:

- include the config ~/.config/sway/config.d/ from
  /etc/sway/config (line 233) as well
- move the bar config (line 219 in /etc/sway/config) into a
  separate file in /etc/sway/config.d/ because it cannot be
  "overwritten", only added (and i didnt find a method to
  delete it)
- implement a mechanism to "hide" files existing in
  /etc/sway/config.d/ once they exist in the home dir with the
  same name

#1106666#10
Date:
2026-08-15 07:18:02 UTC
From:
To:
Hello ,

M. Dietrich [2025-05-27 16:23 +0200]:

I want to do the same, especially after switching back from Fedora, where sway
is configured OOTB *really nicely*.

In my OS image I created /etc/sway/config-vars.d/user.conf with

   include ~/.config/sway/config-vars.d/*

and /etc/sway/config.d/user.conf with

   include ~/.config/sway/config.d/*

which does that. I now have my "delta" config in
~/.config/sway/config-vars.d/menu.conf and ~/.config/sway/config.d/my.conf

   bar bar-0 {
      swaybar_command waybar
   }

Without the "bar-0", it will create a *second* bar, i.e. you'd have the default
swaybar and the new waybar. I think this is fine.

I didn't look into that yet.

Martin