nixos/home-manager/modules/eww/config/scripts/get-active-monitor
Nickolaj Jepsen d68c699a7a test
2024-08-28 16:08:36 +00:00

6 lines
No EOL
217 B
Bash
Executable file

#!/usr/bin/env bash
hyprctl monitors -j | jq '.[] | select(.focused) | .name'
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 awk -F '>>|,' -e '/^focusedmon>>/ {print $2}'