Skip to content

Commit

Permalink
sway: allow sway specific hideEdgeBorders options
Browse files Browse the repository at this point in the history
* allow using `--i3` for hideEdgeBorders
* add `smart_no_gaps` option
  • Loading branch information
greenpsi committed Jan 12, 2025
1 parent 2532b50 commit 17b76ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/services/window-managers/i3-sway/lib/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,13 @@ in {
};

hideEdgeBorders = mkOption {
type = types.enum [ "none" "vertical" "horizontal" "both" "smart" ];
type = let
i3Options = [ "none" "vertical" "horizontal" "both" "smart" ];
swayOptions = i3Options ++ [ "smart_no_gaps" ];
in if isI3 then
types.enum i3Options
else
types.enum (swayOptions ++ (map (e: "--i3 ${e}") swayOptions));
default = "none";
description = "Hide window borders adjacent to the screen edges.";
};
Expand Down

0 comments on commit 17b76ad

Please sign in to comment.