1
0
mirror of https://github.com/osmarks/random-stuff synced 2025-10-25 02:47:39 +00:00
Files
random-stuff/dotfiles/take-screenshot-window
2025-07-28 10:10:47 +01:00

4 lines
273 B
Bash
Executable File

#!/bin/sh
#grim -g "$(labwc_get_window)" ~/Pictures/$(date "+screenshot-%Y%m%d-%Hh%Mm%Ss").png
grim -g "$(swaymsg -t get_tree | jq -j '.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"')" ~/Pictures/$(date "+screenshot-%Y%m%d-%Hh%Mm%Ss").png