aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Animations.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-01-29 23:20:48 +0900
committerGitHub <noreply@github.com>2025-01-29 23:20:48 +0900
commit7fc9d2fcbd74a1ff45dc3f1d5f6161f5bc91c12d (patch)
tree2dc80bd79427479e45500352ca29e505a6e3f0fd /config/hypr/UserScripts/Animations.sh
parent65af1fcdea7f3e53174ad1ff18846f3437cb8248 (diff)
parent9f7650cb60dacfe59b3d712db776974ba816bd83 (diff)
Merge branch 'development' into windowrules
Diffstat (limited to 'config/hypr/UserScripts/Animations.sh')
-rwxr-xr-xconfig/hypr/UserScripts/Animations.sh35
1 files changed, 35 insertions, 0 deletions
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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage