Add 4x scaling too
Great for gif feature demos
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# omarchy:summary=Cycle focused Hyprland monitor scaling through 1x, 1.25x, 1.6x, 2x, and 3x
|
# omarchy:summary=Cycle focused Hyprland monitor scaling through 1x, 1.25x, 1.6x, 2x, 3x, and 4x
|
||||||
|
|
||||||
MONITOR_INFO=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true)')
|
MONITOR_INFO=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true)')
|
||||||
ACTIVE_MONITOR=$(echo "$MONITOR_INFO" | jq -r '.name')
|
ACTIVE_MONITOR=$(echo "$MONITOR_INFO" | jq -r '.name')
|
||||||
@@ -9,8 +9,8 @@ WIDTH=$(echo "$MONITOR_INFO" | jq -r '.width')
|
|||||||
HEIGHT=$(echo "$MONITOR_INFO" | jq -r '.height')
|
HEIGHT=$(echo "$MONITOR_INFO" | jq -r '.height')
|
||||||
REFRESH_RATE=$(echo "$MONITOR_INFO" | jq -r '.refreshRate')
|
REFRESH_RATE=$(echo "$MONITOR_INFO" | jq -r '.refreshRate')
|
||||||
|
|
||||||
# Cycle through scales: 1 → 1.25 → 1.6 → 2 → 3 → 1 (or reverse with --reverse)
|
# Cycle through scales: 1 → 1.25 → 1.6 → 2 → 3 → 4 → 1 (or reverse with --reverse)
|
||||||
SCALES=(1 1.25 1.6 2 3)
|
SCALES=(1 1.25 1.6 2 3 4)
|
||||||
|
|
||||||
# Find the index of the scale closest to the current one (Hyprland may
|
# Find the index of the scale closest to the current one (Hyprland may
|
||||||
# snap fractional scales to nearby values, so we can't match exactly)
|
# snap fractional scales to nearby values, so we can't match exactly)
|
||||||
|
|||||||
Reference in New Issue
Block a user