From 4ff0fea900d940f02b7657ccdfb95e2f0b95e153 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 1 Aug 2023 21:44:25 +0200 Subject: [PATCH] Revert "screenshot: "freeze" screen before screenshot" This reverts commit 1ff1f29f5dec655b2b8ab1deac0714bbb1ff33fe. This works, but then, I cannot just select a window. --- bin/screenshot | 6 ------ config | 1 - 2 files changed, 7 deletions(-) diff --git a/bin/screenshot b/bin/screenshot index 74bae1e..110c6e5 100755 --- a/bin/screenshot +++ b/bin/screenshot @@ -10,14 +10,8 @@ case $1 in echo -n $target | xclip -selection clipboard ;; window) - target=/dev/shm/screenshot.png - maim -u $target - nsxiv -N nsxiv-screenshot --anti-alias=no -b /dev/shm/screenshot.png & - nsxiv_pid=$! maim -u -s -b 5 -l -c 0.3,0.4,0.6,0.4 -d 0.1 \ | xclip -selection clipboard -t image/png - kill "$nsxiv_pid" - # rm -f $target notify-send -i camera-photo "Screenshot" "Saved to clipboard" ;; ocr) diff --git a/config b/config index 90e4015..64245df 100644 --- a/config +++ b/config @@ -157,7 +157,6 @@ for_window [class="Nm-connection-editor"] floating enable for_window [class="Shadow"] fullscreen enable for_window [window_role="PictureInPicture"] floating enable for_window [class="Pavucontrol"] floating enable -for_window [instance="nsxiv-screenshot"] floating enable, fullscreen enable global # Firefox sharing indicator for_window [floating_from="auto" title="Firefox — Sharing Indicator"] border none, sticky enable, move position 10 ppt -5 px no_focus [floating_from="auto" title="Firefox — Sharing Indicator"]