12 lines
329 B
Plaintext
12 lines
329 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
activewindow_json="$(hyprctl activewindow -j)"
|
||
|
|
||
|
x=$(echo "${activewindow_json}" | jq '.at[0]')
|
||
|
y=$(echo "${activewindow_json}" | jq '.at[1]')
|
||
|
|
||
|
width=$(echo "${activewindow_json}" | jq '.size[0]')
|
||
|
height=$(echo "${activewindow_json}" | jq '.size[1]')
|
||
|
|
||
|
/home/vtimofei/scripts/screenshot "${x},${y} ${width}x${height}"
|