From 5346bc6db1ba38cf9b312527c2e8ccaeae209886 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 10 May 2026 15:08:33 +0200 Subject: [PATCH] Only return state when we are toggling Otherwise we know it! --- bin/omarchy-hyprland-toggle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-hyprland-toggle b/bin/omarchy-hyprland-toggle index 69e6f273..30345e74 100755 --- a/bin/omarchy-hyprland-toggle +++ b/bin/omarchy-hyprland-toggle @@ -12,7 +12,6 @@ on() { if [[ -f $FLAG_SOURCE ]]; then mkdir -p "$(dirname "$FLAG")" cp "$FLAG_SOURCE" "$FLAG" - echo "on" else echo "Flag not found: $FLAG_NAME" exit 1 @@ -21,14 +20,15 @@ on() { off() { rm -f "$FLAG" - echo "off" } toggle() { if [[ -f $FLAG ]]; then off + echo "off" else on + echo "on" fi }