aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-01 00:39:54 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-01 00:39:54 +0900
commita11c37353f7e825322fcd3b75a4ab48c55f73874 (patch)
tree2255f561dec073b78141aa185d8b8d6353675abe /config/hypr/scripts
parent3dfdc7c76cbeb7a6ee20e868bb46026e51c2abf9 (diff)
Moved the animations script in scripts directory.
Some Minor tweak on copy.sh. Need to tweak more as its already abit late
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/Animations.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh
new file mode 100755
index 00000000..48ac0f85
--- /dev/null
+++ b/config/hypr/scripts/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-Animations.rasi)
+
+# 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 -u low -i "$iDIR/ja.png" "$chosen_file" "Hyprland Animation Loaded"
+else
+ notify-send -u low -i "$iDIR/ja.png" "You chose NOT" "to apply other Hyprland animations"
+fi
+
+sleep 1
+"$SCRIPTSDIR/RefreshNoWaybar.sh" \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage