1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 12:49:44 +01:00
home-manager/tests/modules/services/window-managers/sway
Emily 4c0357ff87
sway: fix workspace 10 missing from default config (#4636)
workspace 10 is part of upstream's default config, but was missing in home-manager.

The initial "sway: add module" PR (02d6040003) went through multiple iterations and had workspace 10 included for a brief moment.
Until the author removed it in a force-push commenting

> Have removed the last change which added bound ${modifer}+0 to workspace number 10 as this messed up workspace numbering in sway.

The reason might have been, that sway used to sort the workspaces in the order they appeared in the config.

Attribute sets in nix are sorted, but not "naturally sorted", meaning `bindsym Mod1+0 workspace number 10` comes before `bindsym Mod1+0 workspace number 1`.

It's unclear if that's what really happened. A workaround would have been to use `lib.lists.naturalSort` in `keybindingsStr`.

But I cannot reproduce this anymore in any way.
I assume this has been fixed many years ago by now.

upstream config: 020a572ed6/config.in (L113-L134)
2024-02-10 19:59:52 +01:00
..
default.nix sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-bar-focused-colors.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-bar-focused-colors.nix sway: import dbus env vars and explicitly specify them (#3031) 2022-07-07 11:03:58 -06:00
sway-bindkeys-to-code-and-extra-config.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-bindkeys-to-code-and-extra-config.nix sway, bspwm: add extraConfigEarly (#2847) 2022-08-27 00:09:46 -04:00
sway-default.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-default.nix sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-default.target sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-followmouse-expected.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-followmouse-legacy-expected.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-followmouse-legacy.nix tests: various minor cleanups 2023-05-13 00:09:52 +02:00
sway-followmouse.nix tests: various minor cleanups 2023-05-13 00:09:52 +02:00
sway-modules.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-modules.nix tests: various minor cleanups 2023-05-13 00:09:52 +02:00
sway-no-xwayland.nix sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-null-config.nix sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-null-package.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-null-package.nix sway: import dbus env vars and explicitly specify them (#3031) 2022-07-07 11:03:58 -06:00
sway-post-2003.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-post-2003.nix programs.sway: separate trayOutput values for sway (#4489) 2023-09-23 20:53:45 +02:00
sway-stubs.nix sway: fix failing tests 2023-12-20 22:29:00 +01:00
sway-systemd-autostart.nix sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-systemd-autostart.target sway: add support for XDG autostart using systemd (#3747) 2023-06-10 12:10:40 +02:00
sway-workspace-default-expected.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-workspace-default.nix sway: import dbus env vars and explicitly specify them (#3031) 2022-07-07 11:03:58 -06:00
sway-workspace-output-expected.conf sway: fix workspace 10 missing from default config (#4636) 2024-02-10 19:59:52 +01:00
sway-workspace-output.nix i3-sway: multiple outputs (#4223) 2023-07-14 21:25:55 +02:00
swaynag-empty-settings.nix tests: various minor cleanups 2023-05-13 00:09:52 +02:00
swaynag-example-settings-expected.conf swaynag: add module 2021-11-21 18:37:50 +01:00
swaynag-example-settings.nix swaynag: add module 2021-11-21 18:37:50 +01:00