diff options
| -rwxr-xr-x | .local/bin/screenshot.sh | 2 |
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) |
