aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-02-03 00:10:58 +0900
committerGitHub <noreply@github.com>2025-02-03 00:10:58 +0900
commit949046ffcb2817caf32bf82f06d5cdf3d57b1a40 (patch)
treeb33733a05816c25ed01b4fa7e2c89b816c615bcc /config/hypr/scripts
parent9b67a8376e3d186edc75a482010e53c3b4e9e018 (diff)
parentc7fd362a7c2c69434890ed5edfcea58d32cfeb53 (diff)
Merge pull request #542 from JaKooLit/development
Development to Main
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/Animations.sh35
-rwxr-xr-xconfig/hypr/scripts/RofiSearch.sh2
2 files changed, 36 insertions, 1 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
diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh
index ccc73016..faf07865 100755
--- a/config/hypr/scripts/RofiSearch.sh
+++ b/config/hypr/scripts/RofiSearch.sh
@@ -13,5 +13,5 @@ if pgrep -x "rofi" >/dev/null; then
fi
# Open rofi with a dmenu and pass the selected item to xdg-open for Google search
-echo "" | rofi -dmenu -config "$rofi_config" -p "Search:" | xargs -I{} xdg-open "https://www.google.com/search?q={}"
+echo "" | rofi -dmenu -config "$rofi_config" | xargs -I{} xdg-open "https://www.google.com/search?q={}"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage