mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-04-08 10:09:38 +00:00
Merge pull request #200 from shardulbee/master
Separate yabai config and extra config by newline
This commit is contained in:
commit
600bd4f9ed
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ let
|
|||
(if (cfg.config != {})
|
||||
then "${toYabaiConfig cfg.config}"
|
||||
else "")
|
||||
+ optionalString (cfg.extraConfig != "") cfg.extraConfig)}";
|
||||
+ optionalString (cfg.extraConfig != "") ("\n" + cfg.extraConfig + "\n"))}";
|
||||
in
|
||||
|
||||
{
|
||||
|
|
|
@ -23,5 +23,6 @@ in
|
|||
echo >&2 "checking config in $conf"
|
||||
grep "yabai -m config focus_follows_mouse autoraise" $conf
|
||||
grep "yabai -m rule --add app='System Preferences' manage=off" $conf
|
||||
if [ `cat $conf | wc -l` -eq "2" ]; then echo "yabairc correctly contains 2 lines"; else return 1; fi
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue