From 3371ac471d0a59ad6a47b3ec849c2806825ff748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 17 Oct 2024 17:35:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(hypr):=202=20spaces=20of?= =?UTF-8?q?=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/scripts/toggle_floating | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.config/hypr/scripts/toggle_floating b/.config/hypr/scripts/toggle_floating index e1019cc2..3aefbf7e 100755 --- a/.config/hypr/scripts/toggle_floating +++ b/.config/hypr/scripts/toggle_floating @@ -4,28 +4,28 @@ floating=$(hyprctl activewindow -j | jq '.floating') window=$(hyprctl activewindow -j | jq '.initialClass' | tr -d "\"") function toggle() { - width=$1 - height=$2 + width=$1 + height=$2 - hyprctl --batch "dispatch togglefloating; dispatch resizeactive exact ${width} ${height}; dispatch centerwindow" + hyprctl --batch "dispatch togglefloating; dispatch resizeactive exact ${width} ${height}; dispatch centerwindow" } function untoggle() { - hyprctl dispatch togglefloating + hyprctl dispatch togglefloating } function handle() { - width=$1 - height=$2 + width=$1 + height=$2 - if [ "$floating" == "false" ]; then - toggle "$width" "$height" - else - untoggle - fi + if [ "$floating" == "false" ]; then + toggle "$width" "$height" + else + untoggle + fi } case $window in kitty) handle "50%" "55%" ;; -*) handle "65%" "70%" ;; +*) handle "70%" "70%" ;; esac