From 7a49b4668499b9f8457c2c5a7ed2536b954b7ebe Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 29 Jan 2025 17:21:47 +0900 Subject: Added Hyprland animations from different popular Hyprland users. default keybind to toggle animation is SUPER SHIFT A --- config/hypr/UserScripts/Animations.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 config/hypr/UserScripts/Animations.sh (limited to 'config/hypr/UserScripts/Animations.sh') diff --git a/config/hypr/UserScripts/Animations.sh b/config/hypr/UserScripts/Animations.sh new file mode 100755 index 00000000..02755a5e --- /dev/null +++ b/config/hypr/UserScripts/Animations.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# For applying Animations from different users + +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + +# Variables +iDIR="$HOME/.config/swaync/images" +SCRIPTSDIR="$HOME/.config/hypr/scripts" +animations_dir="$HOME/.config/hypr/animations" +UserConfigs="$HOME/.config/hypr/UserConfigs" + +# list of animation files +animations_list=$(find "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//') + +# Rofi Menu +chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Animations.rasi "Choose animation:") + +# Check if a file was selected +if [[ -n "$chosen_file" ]]; then + # Find the full path of the chosen file + full_path="$animations_dir/$chosen_file.conf" + + cp "$full_path" "$UserConfigs/UserAnimations.conf" + + notify-send -i "$iDIR/ja.png" "$chosen_file" "Animation Loaded" +else + notify-send -i "$iDIR/ja.png" "You chose to" "NOT apply other animations" +fi + +sleep 1 +"$SCRIPTSDIR/RefreshNoWaybar.sh" -- cgit v1.2.3 From 54d363a9aec27a9bdd92f857ac2b2253c57a690f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 30 Jan 2025 00:26:27 +0900 Subject: updated animations script and removed some animations --- config/hypr/UserScripts/Animations.sh | 6 +++--- config/hypr/animations/ITZ - diablo-1.conf | 32 ------------------------------ config/hypr/animations/ITZ - diablo-2.conf | 26 ------------------------ config/hypr/animations/default - v2.conf | 27 +++++++++++++++++++++++++ config/rofi/config-Animations.rasi | 20 +++++++++++++++++++ config/rofi/config-rofi-Animations.rasi | 20 ------------------- copy.sh | 2 +- 7 files changed, 51 insertions(+), 82 deletions(-) delete mode 100644 config/hypr/animations/ITZ - diablo-1.conf delete mode 100644 config/hypr/animations/ITZ - diablo-2.conf create mode 100644 config/hypr/animations/default - v2.conf create mode 100644 config/rofi/config-Animations.rasi delete mode 100644 config/rofi/config-rofi-Animations.rasi (limited to 'config/hypr/UserScripts/Animations.sh') diff --git a/config/hypr/UserScripts/Animations.sh b/config/hypr/UserScripts/Animations.sh index 02755a5e..71368bbe 100755 --- a/config/hypr/UserScripts/Animations.sh +++ b/config/hypr/UserScripts/Animations.sh @@ -17,7 +17,7 @@ UserConfigs="$HOME/.config/hypr/UserConfigs" animations_list=$(find "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//') # Rofi Menu -chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Animations.rasi "Choose animation:") +chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config ~/.config/rofi/config-Animations.rasi "Choose animation:") # Check if a file was selected if [[ -n "$chosen_file" ]]; then @@ -26,9 +26,9 @@ if [[ -n "$chosen_file" ]]; then cp "$full_path" "$UserConfigs/UserAnimations.conf" - notify-send -i "$iDIR/ja.png" "$chosen_file" "Animation Loaded" + notify-send -u low -i "$iDIR/ja.png" "$chosen_file" "Animation Loaded" else - notify-send -i "$iDIR/ja.png" "You chose to" "NOT apply other animations" + notify-send -u low -i "$iDIR/ja.png" "You chose to" "NOT apply other animations" fi sleep 1 diff --git a/config/hypr/animations/ITZ - diablo-1.conf b/config/hypr/animations/ITZ - diablo-1.conf deleted file mode 100644 index 81d3aa41..00000000 --- a/config/hypr/animations/ITZ - diablo-1.conf +++ /dev/null @@ -1,32 +0,0 @@ -# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # -# -# name "Diablo-1" -# credit https://github.com/Itz-Abhishek-Tiwari - -animations { - enabled = 1 - bezier = default, 0.05, 0.9, 0.1, 1.05 - bezier = wind, 0.05, 0.9, 0.1, 1.05 - bezier = overshot, 0.13, 0.99, 0.29, 1.08 - bezier = liner, 1, 1, 1, 1 - bezier = bounce, 0.4, 0.9, 0.6, 1.0 - bezier = snappyReturn, 0.4, 0.9, 0.6, 1.0 - - bezier = slideInFromRight, 0.5, 0.0, 0.5, 1.0 - animation = windows, 1, 5, snappyReturn, slidevert - animation = windowsIn, 1, 5, snappyReturn, slidevert right - - animation = windowsOut, 1, 5, snappyReturn, slide - animation = windowsMove, 1, 6, bounce, slide - animation = layersOut, 1, 5, bounce, slidevert right - animation = fadeIn, 1, 10, default - animation = fadeOut, 1, 10, default - animation = fadeSwitch, 1, 10, default - animation = fadeShadow, 1, 10, default - animation = fadeDim, 1, 10, default - animation = fadeLayers, 1, 10, default - animation = workspaces, 1, 7, overshot, slidevert - animation = border, 1, 1, liner - animation = layers, 1, 4, bounce, slidevert right - animation = borderangle, 1, 30, liner, once -} diff --git a/config/hypr/animations/ITZ - diablo-2.conf b/config/hypr/animations/ITZ - diablo-2.conf deleted file mode 100644 index 4d4b36f7..00000000 --- a/config/hypr/animations/ITZ - diablo-2.conf +++ /dev/null @@ -1,26 +0,0 @@ -# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # -# -# name "Diablo-2" -# credit https://github.com/Itz-Abhishek-Tiwari - -animations { - enabled = 1 - bezier = default, 0.05, 0.9, 0.1, 1.05 - bezier = wind, 0.05, 0.9, 0.1, 1.05 - bezier = overshot, 0.13, 0.99, 0.29, 1.08 - bezier = liner, 1, 1, 1, 1 - animation = windows, 1, 7, wind, popin - animation = windowsIn, 1, 7, overshot, popin - animation = windowsOut, 1, 5, overshot, popin - animation = windowsMove, 1, 6, overshot, slide - animation = layers, 1, 5, default, popin - animation = fadeIn, 1, 10, default - animation = fadeOut, 1, 10, default - animation = fadeSwitch, 1, 10, default - animation = fadeShadow, 1, 10, default - animation = fadeDim, 1, 10, default - animation = fadeLayers, 1, 10, default - animation = workspaces, 1, 7, overshot, slidevert - animation = border, 1, 1, liner - animation = borderangle, 1, 30, liner, once -} diff --git a/config/hypr/animations/default - v2.conf b/config/hypr/animations/default - v2.conf new file mode 100644 index 00000000..37fbe125 --- /dev/null +++ b/config/hypr/animations/default - v2.conf @@ -0,0 +1,27 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # + +# old animations + +animations { + enabled = yes + + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + bezier = linear, 0.0, 0.0, 1.0, 1.0 + bezier = wind, 0.05, 0.9, 0.1, 1.05 + bezier = winIn, 0.1, 1.1, 0.1, 1.1 + bezier = winOut, 0.3, -0.3, 0, 1 + bezier = slow, 0, 0.85, 0.3, 1 + bezier = overshot, 0.7, 0.6, 0.1, 1.1 + bezier = bounce, 1.1, 1.6, 0.1, 0.85 + bezier = sligshot, 1, -1, 0.15, 1.25 + bezier = nice, 0, 6.9, 0.5, -4.20 + + animation = windowsIn, 1, 5, slow, popin + animation = windowsOut, 1, 5, winOut, popin + animation = windowsMove, 1, 5, wind, slide + animation = border, 1, 10, linear +# animation = borderangle, 1, 180, linear, loop #used by rainbow borders and rotating colors + animation = fade, 1, 5, overshot + animation = workspaces, 1, 5, wind + animation = windows, 1, 5, bounce, popin +} \ No newline at end of file diff --git a/config/rofi/config-Animations.rasi b/config/rofi/config-Animations.rasi new file mode 100644 index 00000000..225b7d61 --- /dev/null +++ b/config/rofi/config-Animations.rasi @@ -0,0 +1,20 @@ +/* ---- 💫 https://github.com/JaKooLit 💫 ---- */ +/* Rofi Beats Config (compact) */ + +@import "~/.config/rofi/config-compact.rasi" + +/* ---- Window ---- */ +window { + width: 35%; +} + +/* ---- Entry ---- */ +entry { + width: 25%; + placeholder: "✨ Choose which Animations to load"; +} + +/* ---- Listview ---- */ +listview { + lines: 10; +} diff --git a/config/rofi/config-rofi-Animations.rasi b/config/rofi/config-rofi-Animations.rasi deleted file mode 100644 index d13f7d83..00000000 --- a/config/rofi/config-rofi-Animations.rasi +++ /dev/null @@ -1,20 +0,0 @@ -/* ---- 💫 https://github.com/JaKooLit 💫 ---- */ -/* Rofi Beats Config (compact) */ - -@import "~/.config/rofi/config-compact.rasi" - -/* ---- Window ---- */ -window { - width: 35%; -} - -/* ---- Entry ---- */ -entry { - width: 25%; - placeholder: "✨ Choose which Animations to load"; -} - -/* ---- Listview ---- */ -listview { - lines: 8; -} diff --git a/copy.sh b/copy.sh index 1f8f3567..5e85b305 100755 --- a/copy.sh +++ b/copy.sh @@ -366,7 +366,7 @@ if [[ "$border_choice" =~ ^[Yy]$ ]]; then mv config/hypr/UserScripts/RainbowBorders.sh config/hypr/UserScripts/RainbowBorders.bak.sh sed -i '/exec-once = \$UserScripts\/RainbowBorders.sh \&/s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf - sed -i '/ animation = borderangle, 1, 180, liner, loop/s/^/#/' config/hypr/UserConfigs/UserDecorAnimations.conf + sed -i '/ animation = borderangle, 1, 180, liner, loop/s/^/#/' config/hypr/UserConfigs/UserAnimations.conf echo "${OK} Rainbow borders is now disabled." 2>&1 | tee -a "$LOG" else -- cgit v1.2.3