From 51772e24571d06ca03dd9a8764f5749fe1a7a446 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 16 Aug 2026 09:56:45 +0100 Subject: Remove commented out MangoWM lines as using CoW now. --- .local/bin/screenshot.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/.local/bin/screenshot.sh b/.local/bin/screenshot.sh index e241dd1..5c6baca 100755 --- a/.local/bin/screenshot.sh +++ b/.local/bin/screenshot.sh @@ -1,7 +1,6 @@ #!/bin/sh # Get focused output -#output="$(mmsg get all-monitors | jq -r '.monitors[] | select(.active == true) | .name')" output="$( moocow show windows | jq -r '.data[] | select(.focused == true) | .output')" case $1 in @@ -15,7 +14,6 @@ case $1 in ;; focused-window) # Take a screenshot of the focused window - # geometry=$(mmsg get focusing-client | jq -r '"\(.x),\(.y) \(.width)x\(.height)"') geometry=$(moocow winops -I | jq -r '.data.frame | "\(.x),\(.y) \(.width)x\(.height)"') grim -g "$geometry" -t jpeg ~/Pictures/Screenshots/"$(date +%Y-%m-%d_%H-%m-%s)".jpg ;; -- cgit v1.3