aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/screenshot.sh
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-06-13 13:09:40 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-06-13 13:09:40 +0100
commitb3a1e85c74ac530c378e1d136ca6c83c63fcfcff (patch)
treeab5d30ad719970365cda1d4ddc7f8df6ee8691ce /.local/bin/screenshot.sh
parentcbe745e93e530f5e1ef3b95c9724ad70b9c95a9f (diff)
Updated to use new MangoWM IPC mmsg
Diffstat (limited to '.local/bin/screenshot.sh')
-rwxr-xr-x.local/bin/screenshot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/screenshot.sh b/.local/bin/screenshot.sh
index b2cc69b..19a9157 100755
--- a/.local/bin/screenshot.sh
+++ b/.local/bin/screenshot.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Get focused output
-output="$(mmsg -g | grep "selmon 1" | awk '{print$1}')"
+output="$(mmsg get all-monitors | jq -r '.monitors[] | select(.active == true) | .name')"
case $1 in
selected-region)