From 0a06e46a3b888123780eecd1cb81757b431dd7c4 Mon Sep 17 00:00:00 2001 From: Kirottu <56396750+Kirottu@users.noreply.github.com> Date: Mon, 18 Aug 2025 20:26:27 +0300 Subject: [PATCH] anyrun: Added `margin` config option (#7687) Added the new `margin` config option to the Anyrun module --- modules/programs/anyrun.nix | 7 +++++++ tests/modules/programs/anyrun/basic-config.nix | 1 + 2 files changed, 8 insertions(+) diff --git a/modules/programs/anyrun.nix b/modules/programs/anyrun.nix index 87dbebf92..7424316a3 100644 --- a/modules/programs/anyrun.nix +++ b/modules/programs/anyrun.nix @@ -127,6 +127,12 @@ in ''; }; + margin = mkOption { + type = int; + default = 0; + description = "Add a margin around the window to allow for CSS shadow styling"; + }; + hideIcons = mkOption { type = bool; default = false; @@ -259,6 +265,7 @@ in y: ${stringifyNumeric cfg.config.y}, width: ${stringifyNumeric cfg.config.width}, height: ${stringifyNumeric cfg.config.height}, + margin: ${toString cfg.config.margin}, hide_icons: ${boolToString cfg.config.hideIcons}, ignore_exclusive_zones: ${boolToString cfg.config.ignoreExclusiveZones}, layer: ${capitalize cfg.config.layer}, diff --git a/tests/modules/programs/anyrun/basic-config.nix b/tests/modules/programs/anyrun/basic-config.nix index 4420598c1..4a4b431a8 100644 --- a/tests/modules/programs/anyrun/basic-config.nix +++ b/tests/modules/programs/anyrun/basic-config.nix @@ -72,6 +72,7 @@ y: Fraction(0.020000), width: Absolute(800), height: Absolute(0), + margin: 0, hide_icons: false, ignore_exclusive_zones: false, layer: Overlay,