diff options
Diffstat (limited to 'config/hypr/UserScripts')
| -rwxr-xr-x | config/hypr/UserScripts/Animations.sh | 35 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/QuickEdit.sh | 18 |
2 files changed, 45 insertions, 8 deletions
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" diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 48d5f49a..e5c26e20 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -20,10 +20,11 @@ menu() { 5. View / Edit Monitors 6. View / Edit Laptop-Keybinds 7. View / Edit User-Settings -8. View / Edit Decorations & Animations -9. View / Edit Workspace-Rules -10. View / Edit Default-Settings -11. View / Edit Default-Keybinds +8. View / Edit Decorations +9. View / Edit Animations +10. View / Edit Workspace-Rules +11. View / Edit Default-Settings +12. View / Edit Default-Keybinds EOF } @@ -40,10 +41,11 @@ main() { 5) file="$UserConfigs/Monitors.conf" ;; 6) file="$UserConfigs/Laptops.conf" ;; 7) file="$UserConfigs/UserSettings.conf" ;; - 8) file="$UserConfigs/UserDecorAnimations.conf" ;; - 9) file="$UserConfigs/WorkspaceRules.conf" ;; - 10) file="$configs/Settings.conf" ;; - 11) file="$configs/Keybinds.conf" ;; + 8) file="$UserConfigs/UserDecorations.conf" ;; + 9) file="$UserConfigs/UserAnimations.conf" ;; + 10) file="$UserConfigs/WorkspaceRules.conf" ;; + 11) file="$configs/Settings.conf" ;; + 12) file="$configs/Keybinds.conf" ;; *) return ;; # Do nothing for invalid choices esac |
