diff options
author | Botond Hende <nettingman@gmail.com> | 2024-04-14 06:38:49 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-04-14 06:38:49 +0200 |
commit | 0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 (patch) | |
tree | f91b7ada571a4dab7ae99c8f3ee252616baff2db /home/.selfconfigs/sway |
squashed init
Diffstat (limited to 'home/.selfconfigs/sway')
-rwxr-xr-x | home/.selfconfigs/sway/capture_current_window | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/home/.selfconfigs/sway/capture_current_window b/home/.selfconfigs/sway/capture_current_window new file mode 100755 index 0000000..4a5d428 --- /dev/null +++ b/home/.selfconfigs/sway/capture_current_window @@ -0,0 +1,3 @@ +#!/usr/bin/bash -eu + +grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" ~/screenshot.png |