From a60c69be106fcd2bad12bf1a57c9ae7f13a7165c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 5 Feb 2025 09:26:19 +0900 Subject: animations list now alphabetically --- config/hypr/scripts/Animations.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh index 48ac0f85..7789cb05 100755 --- a/config/hypr/scripts/Animations.sh +++ b/config/hypr/scripts/Animations.sh @@ -13,8 +13,8 @@ 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$//') +# 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) @@ -32,4 +32,4 @@ else fi sleep 1 -"$SCRIPTSDIR/RefreshNoWaybar.sh" \ No newline at end of file +"$SCRIPTSDIR/RefreshNoWaybar.sh" -- cgit v1.2.3