From ba04fee6795b806d14ee3aa1d1edec60de831a39 Mon Sep 17 00:00:00 2001 From: brustybee Date: Sun, 5 Apr 2026 20:06:17 +0530 Subject: keybind to take window screenshot --- common/modules/mango/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common') diff --git a/common/modules/mango/default.nix b/common/modules/mango/default.nix index 9ab5fc4..b47f7ca 100644 --- a/common/modules/mango/default.nix +++ b/common/modules/mango/default.nix @@ -21,6 +21,15 @@ let GEOM=$(${pkgs.slurp}/bin/slurp) || exit ${pkgs.grim}/bin/grim -g "$GEOM" - | wl-copy ;; + window) + ${pkgs.grim}/bin/grim -g "$(mmsg -x | awk ' + / x / {x=$3} + / y / {y=$3} + / width / {w=$3} + / height / {h=$3} + END {print x "," y " " w "x" h} + ')" - | wl-copy + ;; esac ''; smart-alacritty = pkgs.writeShellScript "smart-alacritty" '' @@ -290,6 +299,7 @@ in bind=NONE,Print,spawn,${snip} full bind=SUPER,Print,spawn,${snip} selection + bind=SUPER+SHIFT,Print,spawn,${snip} window # swap window bind=SUPER+SHIFT,k,exchange_client,up @@ -302,6 +312,7 @@ in bind=ALT,Tab,toggleoverview, bind=SUPER,space,togglefloating, bind=ALT,a,togglemaximizescreen, + bind=SUPER,f,toggle_all_floating, bind=ALT,f,togglefullscreen, bind=ALT+SHIFT,f,togglefakefullscreen, bind=SUPER,i,minimized, -- cgit v1.3.1