From 07df5e36da01d481df6b43be8cd9fb951ca08f35 Mon Sep 17 00:00:00 2001 From: silly Date: Mon, 16 Mar 2026 08:44:25 +0100 Subject: Update settings.sh --- .config/scripts/settings.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.config/scripts/settings.sh') diff --git a/.config/scripts/settings.sh b/.config/scripts/settings.sh index 78978a1..0a89cec 100644 --- a/.config/scripts/settings.sh +++ b/.config/scripts/settings.sh @@ -4,13 +4,17 @@ HYPR_CONF="$HOME/.config/hypr/hyprland.conf" DUNST_CONF="$HOME/.config/dunst/dunstrc" FUZZEL_CONF="$HOME/.config/fuzzel/fuzzel.ini" BTOP_CONF="$HOME/.config/btop/btop.conf" +ANIMATION_SCRIPT="$HOME/.config/scripts/animations.sh" -options="sharp/round toggle\nborder toggle\ngaps toggle" +options="sharp/round toggle\nborder toggle\ngaps toggle\nanimations" choice=$(echo -e "$options" | fuzzel -d -p "> ") [[ -z "$choice" ]] && exit case "$choice" in + *animations*) + $ANIMATION_SCRIPT + ;; *sharp/round*) if grep -q "rounding = 0 #" "$HYPR_CONF"; then sed -i '/@dynamic_rounding/c\ rounding = 15 # @dynamic_rounding' "$HYPR_CONF" @@ -32,7 +36,7 @@ case "$choice" in hyprctl reload > /dev/null killall dunst && dunst & - + if pgrep -x "btop" > /dev/null; then pkill -x "btop" sleep 0.1 @@ -54,7 +58,7 @@ case "$choice" in hyprctl reload > /dev/null killall dunst && dunst & - + if pgrep -x "btop" > /dev/null; then pkill -x "btop" sleep 0.1 @@ -87,7 +91,6 @@ case "$choice" in notify-send "action denied" "gaps must stay on in rounded mode" exit fi - if grep -q "gaps_in = 0 #" "$HYPR_CONF"; then sed -i '/@dynamic_gaps_in/c\ gaps_in = 5 # @dynamic_gaps_in' "$HYPR_CONF" sed -i '/@dynamic_gaps_out/c\ gaps_out = 10 # @dynamic_gaps_out' "$HYPR_CONF" -- cgit v1.3.1