From adb08d1aeae5162e5db44cf4daf3c3978747094f Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 12 Feb 2025 13:21:58 -0600 Subject: [PATCH] menu: add silent command to clear clipboard Signed-off-by: Myned --- options/custom/menus/default.nix | 3 ++- options/custom/menus/rofi/default.nix | 1 + options/custom/menus/walker/default.nix | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/options/custom/menus/default.nix b/options/custom/menus/default.nix index fc731d2..42a4828 100644 --- a/options/custom/menus/default.nix +++ b/options/custom/menus/default.nix @@ -12,8 +12,9 @@ in { calculator.show = mkOption {default = "";}; clipboard = { - clear = mkOption {default = "";}; show = mkOption {default = "";}; + clear = mkOption {default = "";}; + clear-silent = mkOption {default = "";}; }; dmenu.show = mkOption {default = "";}; diff --git a/options/custom/menus/rofi/default.nix b/options/custom/menus/rofi/default.nix index 2b8c03b..7582e0a 100644 --- a/options/custom/menus/rofi/default.nix +++ b/options/custom/menus/rofi/default.nix @@ -31,6 +31,7 @@ in { clipboard = { show = "${quit} || ${rofi} -show clipboard -show-icons"; clear = "${cliphist} wipe && ${notify-send} '> cliphist' 'Clipboard cleared' --urgency low"; + clear-silent = "${cliphist} wipe"; }; dmenu.show = "${quit} || ${rofi} -dmenu"; diff --git a/options/custom/menus/walker/default.nix b/options/custom/menus/walker/default.nix index 02ac1c2..71759de 100644 --- a/options/custom/menus/walker/default.nix +++ b/options/custom/menus/walker/default.nix @@ -26,6 +26,7 @@ in { clipboard = { show = "${walker} --modules clipboard"; clear = "${rm} ~/.cache/walker/clipboard.gob && ${notify-send} '> walker' 'Clipboard cleared' --urgency low"; + clear-silent = "${rm} ~/.cache/walker/clipboard.gob"; }; dmenu.show = "${walker} --modules dmenu";