Fix HDR omarchy-cmd-screenshot

This commit is contained in:
jtaw5649
2026-02-20 16:00:51 -05:00
committed by Ryan Hughes
parent cea45c4e8b
commit f93c9307ba
3 changed files with 24 additions and 25 deletions
+21 -24
View File
@@ -51,30 +51,27 @@ get_rectangles() {
# Select based on mode # Select based on mode
case "$MODE" in case "$MODE" in
region) region)
wayfreeze & hyprpicker -r -z >/dev/null 2>&1 & PID=$!
PID=$! sleep .1
sleep .1 SELECTION=$(slurp 2>/dev/null)
SELECTION=$(slurp 2>/dev/null) kill $PID 2>/dev/null
kill $PID 2>/dev/null ;;
;; windows)
windows) hyprpicker -r -z >/dev/null 2>&1 & PID=$!
wayfreeze & sleep .1
PID=$! SELECTION=$(get_rectangles | slurp -r 2>/dev/null)
sleep .1 kill $PID 2>/dev/null
SELECTION=$(get_rectangles | slurp -r 2>/dev/null) ;;
kill $PID 2>/dev/null fullscreen)
;; SELECTION=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | "\(.x),\(.y) \((.width / .scale) | floor)x\((.height / .scale) | floor)"')
fullscreen) ;;
SELECTION=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | "\(.x),\(.y) \((.width / .scale) | floor)x\((.height / .scale) | floor)"') smart|*)
;; RECTS=$(get_rectangles)
smart | *) hyprpicker -r -z >/dev/null 2>&1 & PID=$!
RECTS=$(get_rectangles) sleep .1
wayfreeze & SELECTION=$(echo "$RECTS" | slurp 2>/dev/null)
PID=$! kill $PID 2>/dev/null
sleep .1
SELECTION=$(echo "$RECTS" | slurp 2>/dev/null)
kill $PID 2>/dev/null
# If the selection area is L * W < 20, we'll assume you were trying to select whichever # If the selection area is L * W < 20, we'll assume you were trying to select whichever
# window or output it was inside of to prevent accidental 2px snapshots # window or output it was inside of to prevent accidental 2px snapshots
-1
View File
@@ -133,7 +133,6 @@ unzip
usage usage
uwsm uwsm
waybar waybar
wayfreeze
whois whois
wireless-regdb wireless-regdb
wiremix wiremix
+3
View File
@@ -0,0 +1,3 @@
echo "Drop wayfreeze as hyprpicker replaces its function"
omarchy-pkg-drop wayfreeze