summaryrefslogtreecommitdiff
path: root/common/modules/x11
diff options
context:
space:
mode:
authorbrustybee <beebeeb5k@gmail.com>2026-04-05 22:02:44 +0530
committerbrustybee <beebeeb5k@gmail.com>2026-04-05 22:02:44 +0530
commitee5246d97d338b2b9b3562f7d483d498b78e19c8 (patch)
tree6136a5afddf11b6c2a23797a83e63de2507f82ed /common/modules/x11
parent7efc508e6919ba9b0e08372541e06ddc5ff2c2e1 (diff)
window screenshot in bspwm and dwm
Diffstat (limited to 'common/modules/x11')
-rw-r--r--common/modules/x11/bspwm/default.nix4
1 files changed, 4 insertions, 0 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}";