h
Size: a a a
h
I
grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible? and .focused == true) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" Screenshots/$(date +'%Y-%m-%d-%H:%M:%S_windowshot').png
I
D
M🇷
I
I
D
D
h
D
bindsym --to-code $mod+Shift+s exec grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible? and .focused == true) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" /home/dmitry/Nextcloud/Screenshots/$(date +'%Y-%m-%d-%H%M%S.png')
I
bindsym --to-code $mod+Shift+s exec grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible? and .focused == true) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" /home/dmitry/Nextcloud/Screenshots/$(date +'%Y-%m-%d-%H%M%S.png')
I
#!/bin/bash
FILE=~/Screenshots/$(date +'%Y-%m-%d-%H:%M:%S_windowshot').png
grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible? and .focused == true) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" $FILE
wl-copy -t image/png < $FILE
I
I
M🇷
M🇷
M🇷