diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-02-22 21:46:08 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-02-22 21:46:08 +0900 |
| commit | d9257e3377abba6fe81edd5876dc432b8218df48 (patch) | |
| tree | af96595fc5d1f25f37ca77f66f57e73635366109 /config/hypr | |
| parent | 8209d12217bf6174ef00d7d6efd640f99c180ea3 (diff) | |
some final changes for next release
Diffstat (limited to 'config/hypr')
| -rwxr-xr-x | config/hypr/UserScripts/RofiBeats.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/scripts/RofiThemeSelector.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarLayout.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarStyles.sh | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 1f2f3e48..74a8fe54 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -79,7 +79,9 @@ shuffle_local_music() { # Main function for playing online music play_online_music() { - choice=$(printf "%s\n" "${!online_music[@]}" | rofi -i -dmenu -config $rofi_theme) + choice=$(for online in "${!online_music[@]}"; do + echo "$online" + done | sort | rofi -i -dmenu -config "$rofi_theme") if [ -z "$choice" ]; then exit 1 @@ -93,6 +95,7 @@ play_online_music() { mpv --shuffle --vid=no "$link" } + # Check if an online music process is running and send a notification, otherwise run the main function pkill mpv && notify-send -u low -i "$iDIR/music.png" "Music stopped" || { diff --git a/config/hypr/scripts/RofiThemeSelector.sh b/config/hypr/scripts/RofiThemeSelector.sh index 2e840ea1..6fd8a6f8 100755 --- a/config/hypr/scripts/RofiThemeSelector.sh +++ b/config/hypr/scripts/RofiThemeSelector.sh @@ -15,8 +15,8 @@ rofi_theme="$HOME/.config/rofi/config-rofi-theme.rasi" menu() { options=() while IFS= read -r file; do - options+=("$(basename "$file")") - done < <(find -L "$rofi_theme_dir" -maxdepth 1 -type f -exec basename {} \; | sort) + options+=("$file") + done < <(find -L "$rofi_theme_dir" -maxdepth 1 -type f -exec basename {} \; | sort -V) printf '%s\n' "${options[@]}" } diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index 604ec3af..0bea6ffe 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -16,7 +16,7 @@ menu() { options=() while IFS= read -r file; do options+=("$(basename "$file")") - done < <(find -L "$waybar_layouts" -maxdepth 1 -type f -exec basename {} \; | sort) + done < <(find -L "$waybar_layouts" -maxdepth 1 -type f -exec basename {} \; | sort ) printf '%s\n' "${options[@]}" } diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index 5cba7d6a..246a66a2 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -18,7 +18,7 @@ menu() { if [ -f "$waybar_styles/$file" ]; then options+=("$(basename "$file" .css)") fi - done < <(find -L "$waybar_styles" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort) + done < <(find -L "$waybar_styles" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort ) printf '%s\n' "${options[@]}" } |
