cli doc improvements

This commit is contained in:
David Heinemeier Hansson
2026-05-06 12:18:57 +02:00
parent 99357bf549
commit 647cae0ca0
4 changed files with 7 additions and 3 deletions
+2
View File
@@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
# omarchy:summary=Adjust the brightness on Apple Studio Displays and Apple XDR Displays using asdcontrol. # omarchy:summary=Adjust the brightness on Apple Studio Displays and Apple XDR Displays using asdcontrol.
# omarchy:args=<+N%|N%-|N%>
# omarchy:examples=omarchy brightness display apple +5% | omarchy brightness display apple 5%- | omarchy brightness display apple 50%
if (( $# == 0 )); then if (( $# == 0 )); then
echo "Adjust Apple Display brightness by passing +5%, 5%-, or 100%" echo "Adjust Apple Display brightness by passing +5%, 5%-, or 100%"
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# omarchy:summary=Cycle scaling for the focused Hyprland monitor # omarchy:summary=Cycle focused Hyprland monitor scaling through 1x, 1.25x, 1.6x, 2x, and 3x
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')
+2 -1
View File
@@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
# omarchy:summary=Display brightness level using SwayOSD on the current monitor. # omarchy:summary=Display brightness level using SwayOSD on the current monitor.
# omarchy:args=<percent> # omarchy:args=<0-100>
# omarchy:examples=omarchy swayosd brightness 0 | omarchy swayosd brightness 50 | omarchy swayosd brightness 100
percent="$1" percent="$1"
+2 -1
View File
@@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
# omarchy:summary=Display keyboard brightness level using SwayOSD on the current monitor. # omarchy:summary=Display keyboard brightness level using SwayOSD on the current monitor.
# omarchy:args=<percent> # omarchy:args=<0-100>
# omarchy:examples=omarchy swayosd kbd brightness 0 | omarchy swayosd kbd brightness 50 | omarchy swayosd kbd brightness 100
percent="$1" percent="$1"