mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 13:28:16 +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 {
|
blur_radius = mkOption {
|
||||||
type = types.float;
|
type = types.float;
|
||||||
default = 0.0;
|
default = 0.0;
|
||||||
|
@ -149,7 +158,8 @@ in {
|
||||||
else "off"
|
else "off"
|
||||||
))
|
))
|
||||||
++ (optionalArg "blacklist" (joinStrings cfg.blacklist))
|
++ (optionalArg "blacklist" (joinStrings cfg.blacklist))
|
||||||
++ (optionalArg "whitelist" (joinStrings cfg.whitelist));
|
++ (optionalArg "whitelist" (joinStrings cfg.whitelist))
|
||||||
|
++ (optionalArg "order" cfg.order);
|
||||||
serviceConfig.KeepAlive = true;
|
serviceConfig.KeepAlive = true;
|
||||||
serviceConfig.RunAtLoad = true;
|
serviceConfig.RunAtLoad = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,8 +12,7 @@ in
|
||||||
services.jankyborders.width = 5.0;
|
services.jankyborders.width = 5.0;
|
||||||
services.jankyborders.hidpi = true;
|
services.jankyborders.hidpi = true;
|
||||||
services.jankyborders.active_color = "0xFFFFFFFF";
|
services.jankyborders.active_color = "0xFFFFFFFF";
|
||||||
|
services.jankyborders.order = "below";
|
||||||
|
|
||||||
|
|
||||||
test = ''
|
test = ''
|
||||||
echo >&2 "checking jankyborders service in ~/Library/LaunchAgents"
|
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 "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 "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 "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…
Add table
Reference in a new issue