From 07d3eea1d1d523bd19fd0ca2031083fe318044a7 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:06:39 +0200 Subject: [PATCH] workspace_action.sh: format --- dots/.config/hypr/hyprland/scripts/workspace_action.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dots/.config/hypr/hyprland/scripts/workspace_action.sh b/dots/.config/hypr/hyprland/scripts/workspace_action.sh index ebb0c0c89..fa63d71c6 100755 --- a/dots/.config/hypr/hyprland/scripts/workspace_action.sh +++ b/dots/.config/hypr/hyprland/scripts/workspace_action.sh @@ -10,9 +10,9 @@ fi if [[ "$1" == *"+"* || "$1" == *"-"* ]]; then ## Is this something like r+1 or -1? hyprctl dispatch "${dispatcher}" "$1" ## $1 = workspace id since we shifted earlier. elif [[ "$1" =~ ^[0-9]+$ ]]; then ## Is this just a number? - target_workspace=$(((($curr_workspace - 1) / 10 ) * 10 + $1)) + target_workspace=$((((curr_workspace - 1) / 10 ) * 10 + $1)) hyprctl dispatch "${dispatcher}" "${target_workspace}" else - hyprctl dispatch "${dispatcher}" "$1" ## In case the target in a string, required for special workspaces. - exit 1 + hyprctl dispatch "${dispatcher}" "$1" ## In case the target in a string, required for special workspaces. + exit 1 fi