From ee5246d97d338b2b9b3562f7d483d498b78e19c8 Mon Sep 17 00:00:00 2001 From: brustybee Date: Sun, 5 Apr 2026 22:02:44 +0530 Subject: window screenshot in bspwm and dwm --- common/modules/x11/bspwm/default.nix | 4 ++++ flake.lock | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/common/modules/x11/bspwm/default.nix b/common/modules/x11/bspwm/default.nix index 8072fe2..711959a 100644 --- a/common/modules/x11/bspwm/default.nix +++ b/common/modules/x11/bspwm/default.nix @@ -20,6 +20,9 @@ let selection) ${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png ;; + window) + ${pkgs.maim}/bin/maim -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png + ;; esac ''; @@ -138,6 +141,7 @@ in "Print" = "${snip} full"; "super + Print" = "${snip} selection"; + "super + shift + Print" = "${snip} window"; "super + {h,j,k,l}" = "bspc node -f {west,south,north,east}"; "super + shift + {h,j,k,l}" = "bspc node -s {west,south,north,east}"; diff --git a/flake.lock b/flake.lock index bfbf0f1..0eff539 100644 --- a/flake.lock +++ b/flake.lock @@ -306,11 +306,11 @@ ] }, "locked": { - "lastModified": 1773988994, - "narHash": "sha256-B89dboqh+sv8mHyxALtQia9/pEQpwI62BZG+F3oZ9C0=", + "lastModified": 1775406579, + "narHash": "sha256-YGWNg4tPaNLNseHrCZQTHQOLYN+RVv8sErUso2DDDn0=", "ref": "refs/heads/main", - "rev": "8a12dea75168890059315da02eb9bd9680936ac9", - "revCount": 8, + "rev": "4516a3335501d1f832e808eeb5ba2c8ff879500b", + "revCount": 9, "type": "git", "url": "https://codeberg.org/brustybee/mydwm" }, -- cgit v1.3.1