Hello ,

M. Dietrich [2025-05-27 16:23 +0200]:
> 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.

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

> - include the config ~/.config/sway/config.d/ from
>   /etc/sway/config (line 233) as well

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

> - 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)

Not necessary: You can overwrite the default bar-0 with

   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.

> - implement a mechanism to "hide" files existing in
>   /etc/sway/config.d/ once they exist in the home dir with the
>   same name

I didn't look into that yet.

Martin

Reply via email to