Merge pull request #3107 from jtaw5649/fix/omarchy-cmd-screenshot

Fix HDR omarchy-cmd-screenshot
This commit is contained in:
Ryan Hughes
2026-02-20 16:34:03 -05:00
committed by GitHub
3 changed files with 24 additions and 25 deletions
+21 -24
View File
@@ -51,30 +51,27 @@ get_rectangles() {
# Select based on mode
case "$MODE" in
region)
wayfreeze &
PID=$!
sleep .1
SELECTION=$(slurp 2>/dev/null)
kill $PID 2>/dev/null
;;
windows)
wayfreeze &
PID=$!
sleep .1
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)"')
;;
smart | *)
RECTS=$(get_rectangles)
wayfreeze &
PID=$!
sleep .1
SELECTION=$(echo "$RECTS" | slurp 2>/dev/null)
kill $PID 2>/dev/null
region)
hyprpicker -r -z >/dev/null 2>&1 & PID=$!
sleep .1
SELECTION=$(slurp 2>/dev/null)
kill $PID 2>/dev/null
;;
windows)
hyprpicker -r -z >/dev/null 2>&1 & PID=$!
sleep .1
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)"')
;;
smart|*)
RECTS=$(get_rectangles)
hyprpicker -r -z >/dev/null 2>&1 & PID=$!
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
# window or output it was inside of to prevent accidental 2px snapshots
-1
View File
@@ -134,7 +134,6 @@ unzip
usage
uwsm
waybar
wayfreeze
whois
wireless-regdb
wiremix
+3
View File
@@ -0,0 +1,3 @@
echo "Drop wayfreeze as hyprpicker replaces its function"
omarchy-pkg-drop wayfreeze