mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
test(aerospace): assert config values
This commit is contained in:
parent
9a59556018
commit
55d46b8997
1 changed files with 12 additions and 1 deletions
|
@ -8,6 +8,7 @@ in
|
||||||
services.aerospace.enable = true;
|
services.aerospace.enable = true;
|
||||||
services.aerospace.package = aerospace;
|
services.aerospace.package = aerospace;
|
||||||
services.aerospace.settings = {
|
services.aerospace.settings = {
|
||||||
|
after-startup-command = [ "layout tiles" ];
|
||||||
gaps = {
|
gaps = {
|
||||||
outer.left = 8;
|
outer.left = 8;
|
||||||
outer.bottom = 8;
|
outer.bottom = 8;
|
||||||
|
@ -31,6 +32,16 @@ in
|
||||||
${config.out}/user/Library/LaunchAgents/org.nixos.aerospace.plist`
|
${config.out}/user/Library/LaunchAgents/org.nixos.aerospace.plist`
|
||||||
|
|
||||||
echo >&2 "checking config in $conf"
|
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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue