Screenshots in Sway

NoteThis is an update to tools documented in a previous post Hyprland Screenshots Using Grim - October 20, 2023 I made some basic scripts for capturing screenshots in sway using grim as scrot doesn't have support for wayland. Changes # I updated the previous scripts by switching hyprctl with swaymsg to get the active window or active monitor. I left the code used for hyprland commented in the…