Madic-/Sway-DE

"Screenshot current window" not working

Madic- opened this issue · 1 comments

I'm using the following command to create a screenshot from the currently focused application:

bindsym $mod+Print exec grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" - | swappy -f -

If running the command from terminal, it's working

Fixed with e7eca52