mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #1095 from aspauldingcode/master
jankyborders service option order above or below
This commit is contained in:
commit
8c8388ade7
2 changed files with 13 additions and 4 deletions
|
@ -80,6 +80,15 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
order = mkOption {
|
||||
type = types.enum [ "above" "below" ];
|
||||
default = "below";
|
||||
example = "above";
|
||||
description = ''
|
||||
Specifies whether borders should be drawn above or below windows.
|
||||
'';
|
||||
};
|
||||
|
||||
blur_radius = mkOption {
|
||||
type = types.float;
|
||||
default = 0.0;
|
||||
|
@ -149,7 +158,8 @@ in {
|
|||
else "off"
|
||||
))
|
||||
++ (optionalArg "blacklist" (joinStrings cfg.blacklist))
|
||||
++ (optionalArg "whitelist" (joinStrings cfg.whitelist));
|
||||
++ (optionalArg "whitelist" (joinStrings cfg.whitelist))
|
||||
++ (optionalArg "order" cfg.order);
|
||||
serviceConfig.KeepAlive = true;
|
||||
serviceConfig.RunAtLoad = true;
|
||||
};
|
||||
|
|
|
@ -12,8 +12,7 @@ in
|
|||
services.jankyborders.width = 5.0;
|
||||
services.jankyborders.hidpi = true;
|
||||
services.jankyborders.active_color = "0xFFFFFFFF";
|
||||
|
||||
|
||||
services.jankyborders.order = "below";
|
||||
|
||||
test = ''
|
||||
echo >&2 "checking jankyborders service in ~/Library/LaunchAgents"
|
||||
|
@ -24,6 +23,6 @@ in
|
|||
grep "width=5.000000" ${config.out}/user/Library/LaunchAgents/org.nixos.jankyborders.plist
|
||||
grep "hidpi=on" ${config.out}/user/Library/LaunchAgents/org.nixos.jankyborders.plist
|
||||
grep "active_color=0xFFFFFFFF" ${config.out}/user/Library/LaunchAgents/org.nixos.jankyborders.plist
|
||||
|
||||
grep "order=below" ${config.out}/user/Library/LaunchAgents/org.nixos.jankyborders.plist
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue