diff options
| author | brustybee <beebeeb5k@gmail.com> | 2026-04-05 22:02:44 +0530 |
|---|---|---|
| committer | brustybee <beebeeb5k@gmail.com> | 2026-04-05 22:02:44 +0530 |
| commit | ee5246d97d338b2b9b3562f7d483d498b78e19c8 (patch) | |
| tree | 6136a5afddf11b6c2a23797a83e63de2507f82ed /common/modules/x11/bspwm | |
| parent | 7efc508e6919ba9b0e08372541e06ddc5ff2c2e1 (diff) | |
window screenshot in bspwm and dwm
Diffstat (limited to 'common/modules/x11/bspwm')
| -rw-r--r-- | common/modules/x11/bspwm/default.nix | 4 |
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}"; |
