diff options
| author | brustybee <beebeeb5k@gmail.com> | 2026-04-05 20:06:17 +0530 |
|---|---|---|
| committer | brustybee <beebeeb5k@gmail.com> | 2026-04-05 20:06:17 +0530 |
| commit | ba04fee6795b806d14ee3aa1d1edec60de831a39 (patch) | |
| tree | 041379fb83bf6f5fd7e344e2b3d0af0b7ab6b5c8 /common | |
| parent | f8223622fed02aef1075d41e4dba090df81bf6c1 (diff) | |
keybind to take window screenshot
Diffstat (limited to 'common')
| -rw-r--r-- | common/modules/mango/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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, |
