From 47cbbef34c31d8fc2cfc98f80f9279e74f491720 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Fri, 10 Jan 2025 18:47:31 -0500 Subject: [PATCH] style: enforce 2-space tabs in shell scripts --- .../wayland/eww/scripts/change-active-workspace | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/home-manager/wayland/eww/scripts/change-active-workspace b/home-manager/wayland/eww/scripts/change-active-workspace index 5c3ee89..106aea6 100755 --- a/home-manager/wayland/eww/scripts/change-active-workspace +++ b/home-manager/wayland/eww/scripts/change-active-workspace @@ -7,13 +7,13 @@ min=1 max=10 function clamp { - if test $1 -lt $min; then - echo $min - elif test $1 -gt $max; then - echo $max - else - echo $1 - fi + if test $1 -lt $min; then + echo $min + elif test $1 -gt $max; then + echo $max + else + echo $1 + fi } if test "$direction" = "down" @@ -25,5 +25,5 @@ elif test "$direction" = "up" then target=$(clamp $(($current-1))) echo "jumping to $target" - hyprctl dispatch workspace $target + hyprctl dispatch workspace $target fi