nixdots/config/hypr/scripts/screenshot_window.sh
2025-10-18 17:35:04 +03:00

5 lines
209 B
Bash
Executable file

#!/bin/bash
# .config/hypr/scripts/screenshot_window.sh
# Screenshot a window Ctrl+Print
grim -g "$(hyprctl -j activewindow | jq -r '.at + .size | "\(.[0]),\(.[1]) \(.[2])x\(.[3])"' | slurp)" - | swappy -f -