From 66e9a024b901034a311cab145e1d6935f66f30bb Mon Sep 17 00:00:00 2001 From: Enrico Stemmer Date: Sat, 4 Oct 2025 00:10:55 +0200 Subject: [PATCH] hyprshell: fixed tests to use correct name for style file --- tests/modules/services/hyprshell/config.json | 16 ++++++++++---- .../services/hyprshell/example-config.nix | 22 +++++++++++++------ .../hyprshell/{style.css => styles.css} | 0 3 files changed, 27 insertions(+), 11 deletions(-) rename tests/modules/services/hyprshell/{style.css => styles.css} (100%) diff --git a/tests/modules/services/hyprshell/config.json b/tests/modules/services/hyprshell/config.json index 51a13a438..f50965036 100644 --- a/tests/modules/services/hyprshell/config.json +++ b/tests/modules/services/hyprshell/config.json @@ -1,9 +1,17 @@ { - "kill_bind": "ctrl+shift+alt, h", - "layerrules": true, - "version": 1, + "version": 3, "windows": { "items_per_row": 5, - "scale": 8.5 + "overview": { + "key": "super_l", + "launcher": { + "default_terminal": "alacritty" + }, + "modifier": "super" + }, + "scale": 8.5, + "switch": { + "modifier": "alt" + } } } diff --git a/tests/modules/services/hyprshell/example-config.nix b/tests/modules/services/hyprshell/example-config.nix index b0b34876e..5938b5d50 100644 --- a/tests/modules/services/hyprshell/example-config.nix +++ b/tests/modules/services/hyprshell/example-config.nix @@ -2,25 +2,33 @@ services.hyprshell = { enable = true; settings = { - layerrules = true; - kill_bind = "ctrl+shift+alt, h"; - version = 1; + version = 3; windows = { scale = 8.5; items_per_row = 5; + overview = { + key = "super_l"; + modifier = "super"; + launcher = { + default_terminal = "alacritty"; + }; + }; + switch = { + modifier = "alt"; + }; }; }; - style = ./style.css; + style = ./styles.css; }; nmt.script = '' assertFileExists home-files/.config/hyprshell/config.json - assertFileExists home-files/.config/hyprshell/style.css + assertFileExists home-files/.config/hyprshell/styles.css assertFileContent home-files/.config/hyprshell/config.json \ ${./config.json} - assertFileContent home-files/.config/hyprshell/style.css \ - ${./style.css} + assertFileContent home-files/.config/hyprshell/styles.css \ + ${./styles.css} ''; } diff --git a/tests/modules/services/hyprshell/style.css b/tests/modules/services/hyprshell/styles.css similarity index 100% rename from tests/modules/services/hyprshell/style.css rename to tests/modules/services/hyprshell/styles.css