From 7a49b4668499b9f8457c2c5a7ed2536b954b7ebe Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 29 Jan 2025 17:21:47 +0900 Subject: Added Hyprland animations from different popular Hyprland users. default keybind to toggle animation is SUPER SHIFT A --- config/hypr/UserScripts/Animations.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 config/hypr/UserScripts/Animations.sh (limited to 'config/hypr/UserScripts/Animations.sh') 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" -- cgit v1.2.3