mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
screenshot: "freeze" screen before screenshot
This commit is contained in:
parent
88a3406782
commit
1ff1f29f5d
2 changed files with 7 additions and 0 deletions
|
@ -10,8 +10,14 @@ 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)
|
||||
|
|
1
config
1
config
|
@ -157,6 +157,7 @@ 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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue