summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorz0al <12673605+z0al@users.noreply.github.com>2024-12-04 21:58:31 +0000
committerz0al <12673605+z0al@users.noreply.github.com>2024-12-04 21:58:31 +0000
commit55d46b8997e16e52d8a05232f4444124e04ba686 (patch)
tree584fe042884eb24f8685232b17f6ba19bec437c1 /tests
parent9a5955601847c728ffb98e70b89a359390b24d28 (diff)
test(aerospace): assert config values
Diffstat (limited to 'tests')
-rw-r--r--tests/services-aerospace.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/services-aerospace.nix b/tests/services-aerospace.nix
index 8cbd292..28688c4 100644
--- a/tests/services-aerospace.nix
+++ b/tests/services-aerospace.nix
@@ -8,6 +8,7 @@ in
services.aerospace.enable = true;
services.aerospace.package = aerospace;
services.aerospace.settings = {
+ after-startup-command = [ "layout tiles" ];
gaps = {
outer.left = 8;
outer.bottom = 8;
@@ -31,6 +32,16 @@ in
${config.out}/user/Library/LaunchAgents/org.nixos.aerospace.plist`
echo >&2 "checking config in $conf"
- if [ `cat $conf | wc -l` -eq "27" ]; then echo "aerospace.toml config correctly contains 27 lines"; else return 1; fi
+ grep 'after-startup-command = \["layout tiles"\]' $conf
+
+ grep 'bottom = 8' $conf
+ grep 'left = 8' $conf
+ grep 'right = 8' $conf
+ grep 'top = 8' $conf
+
+ grep 'alt-h = "focus left"' $conf
+ grep 'alt-j = "focus down"' $conf
+ grep 'alt-k = "focus up"' $conf
+ grep 'alt-l = "focus right"' $conf
'';
}