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
+7 -10
View File
@@ -51,27 +51,24 @@ 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)
wayfreeze & hyprpicker -r -z >/dev/null 2>&1 & PID=$!
PID=$!
sleep .1 sleep .1
SELECTION=$(get_rectangles | slurp -r 2>/dev/null) SELECTION=$(get_rectangles | slurp -r 2>/dev/null)
kill $PID 2>/dev/null kill $PID 2>/dev/null
;; ;;
fullscreen) fullscreen)
SELECTION=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | "\(.x),\(.y) \((.width / .scale) | floor)x\((.height / .scale) | floor)"') SELECTION=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | "\(.x),\(.y) \((.width / .scale) | floor)x\((.height / .scale) | floor)"')
;; ;;
smart | *) smart|*)
RECTS=$(get_rectangles) RECTS=$(get_rectangles)
wayfreeze & hyprpicker -r -z >/dev/null 2>&1 & PID=$!
PID=$!
sleep .1 sleep .1
SELECTION=$(echo "$RECTS" | slurp 2>/dev/null) SELECTION=$(echo "$RECTS" | slurp 2>/dev/null)
kill $PID 2>/dev/null kill $PID 2>/dev/null
-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