Config override seems not to work in Fedora Sway Atomic

Hello,
I freshly installed Fedora Sway Atomic and ran rpm-ostree upgrade. Than I created an empty file ~/.config/sway/config.d/90-bar.conf as described in https://docs.fedoraproject.org/en-US/fedora-sericea/configuration-guide/#_overrides_and_load_precedence. After reloading sway or rebooting, waybar is still appearing. Copying the default /usr/share/sway/config.d/90-bar.conf to ~/.config/sway/config.d/ and reloading sway, starts waybar twice resulting in two bars. ps shows that indeed two instances of waybar are started.

Shouldn’t files in ~/.config/sway/config.d/ override /usr/share/sway/config.d/ as mentioned in the documentation?

1 Like

Can you run sway --validate --verbose |& grep -E '(Config command: include|waybar)' and check if the bar config from /usr/share/sway/config.d appears in the list or if there are any other config snippets that may exec waybar?

Nope, it doesn’t.

josh@P73 ~ $ sway --validate --verbose |& grep -E '(Config command: include|waybar)'
00:00:00.048 [INFO] [sway/commands.c:380] Config command: bar swaybar_command waybar
00:00:00.048 [INFO] [sway/commands.c:400] After replacement: bar swaybar_command waybar
00:00:00.048 [INFO] [sway/commands.c:380] Config command: include '$(/usr/libexec/sway/layered-include "/usr/share/sway/config.d/*.conf" "/etc/sway/config.d/*.conf" "${XDG_CONFIG_HOME:-$HOME/.config}/sway/config.d/*.conf")'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/etc/sway/config.d/10-systemd-cgroups.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/etc/sway/config.d/10-systemd-session.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/50-rules-browser.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/50-rules-pavucontrol.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/50-rules-policykit-agent.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/60-bindings-brightness.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/60-bindings-media.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/60-bindings-screenshot.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/60-bindings-volume.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/65-mode-passthrough.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/home/josh/.config/sway/config.d/90-bar.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: bar swaybar_command waybar
00:00:00.069 [INFO] [sway/commands.c:400] After replacement: bar swaybar_command waybar
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/90-swayidle.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/95-autostart-policykit-agent.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/95-xdg-desktop-autostart.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/usr/share/sway/config.d/95-xdg-user-dirs.conf'
00:00:00.069 [INFO] [sway/commands.c:380] Config command: include '/home/josh/.config/sway/config.d/99-p73.conf'

These first 2 lines show that there’s a bar block with waybar in the main config file, before any include direcrives.

True, my bad