Files
laptop-config/roy-config/hypr/scripts/get-current-monitor-config.sh
T

9 lines
158 B
Bash
Raw Normal View History

2025-12-20 21:23:02 -06:00
#!/bin/sh
dir=$1
config=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | "\(.name),transform,'$dir'"')
echo $config
hyprctl keyword monitor $config