aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Animations.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-10 01:16:17 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-10 01:16:17 +0900
commitd404c8b6b94d973334a1136223fbf5c412083bdb (patch)
treee7394ffef88af10c76c34e1a3df7481ead33cb49 /config/hypr/scripts/Animations.sh
parent752232f326fd82d28dac4107e5bf81818a657903 (diff)
Initial upload of various rofi themes
Diffstat (limited to 'config/hypr/scripts/Animations.sh')
-rwxr-xr-xconfig/hypr/scripts/Animations.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh
index 7789cb05..b4d368e9 100755
--- a/config/hypr/scripts/Animations.sh
+++ b/config/hypr/scripts/Animations.sh
@@ -12,23 +12,19 @@ iDIR="$HOME/.config/swaync/images"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
animations_dir="$HOME/.config/hypr/animations"
UserConfigs="$HOME/.config/hypr/UserConfigs"
+rofi_theme="~/.config/rofi/config-Animations.rasi"
# list of animation files, sorted alphabetically with numbers first
animations_list=$(find "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//' | sort -V)
# Rofi Menu
-chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config ~/.config/rofi/config-Animations.rasi)
+chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config $rofi_theme)
# 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"
-
+ 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage