aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/screenshot.sh2
1 files changed, 0 insertions, 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
;;