From c43afa52acdf813842e4b4da73ce645ac269b9fa Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 24 Jun 2026 13:48:41 +0200 Subject: [PATCH] Simpler --- bin/omarchy-brightness-display | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/bin/omarchy-brightness-display b/bin/omarchy-brightness-display index f672b483..665464f6 100755 --- a/bin/omarchy-brightness-display +++ b/bin/omarchy-brightness-display @@ -5,17 +5,10 @@ # omarchy:examples=omarchy brightness display | omarchy brightness display +5% | omarchy brightness display --no-osd 50% | omarchy brightness display off | omarchy brightness display on no_osd=0 -args=() - -for arg in "$@"; do - if [[ $arg == "--no-osd" ]]; then - no_osd=1 - else - args+=("$arg") - fi -done - -set -- "${args[@]}" +if [[ ${1:-} == "--no-osd" ]]; then + no_osd=1 + shift +fi # Get the brightness of the passed display display_brightness() {