From d404c8b6b94d973334a1136223fbf5c412083bdb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Feb 2025 01:16:17 +0900 Subject: Initial upload of various rofi themes --- config/hypr/scripts/Animations.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'config/hypr/scripts/Animations.sh') 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 -- cgit v1.2.3