blob: 2299cb0780390abdfc157fb44af9a812fd7182fc (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
# get size and offset of active window
size=$(hyprctl activewindow | grep size: | awk -F" " '{print $2}')
size=${size/,/x}
offset=$(hyprctl activewindow | grep at: | awk -F" " '{print $2}')
offset=${offset/,/+}
# open gui with selected region
flameshot gui --region $size+$offset
|