From 0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 Mon Sep 17 00:00:00 2001
From: Botond Hende <nettingman@gmail.com>
Date: Sun, 14 Apr 2024 06:38:49 +0200
Subject: squashed init

---
 home/.selfconfigs/sway/capture_current_window | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100755 home/.selfconfigs/sway/capture_current_window

(limited to 'home/.selfconfigs/sway')

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
-- 
cgit v1.2.3-70-g09d2