summaryrefslogtreecommitdiff
path: root/.config/scripts/settings.sh
diff options
context:
space:
mode:
authorsilly <u65487754@gmail.com>2026-03-16 08:44:25 +0100
committerGitHub <noreply@github.com>2026-03-16 08:44:25 +0100
commit07df5e36da01d481df6b43be8cd9fb951ca08f35 (patch)
tree32032f71e84048fcbfe0ad8ac501dd6b25d34b5c /.config/scripts/settings.sh
parent801f80bac8f2d76f710f9d9285c6a921b715936a (diff)
Update settings.sh
Diffstat (limited to '.config/scripts/settings.sh')
-rw-r--r--.config/scripts/settings.sh11
1 files changed, 7 insertions, 4 deletions
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"