diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-01-12 14:51:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-12 14:51:49 +0900 |
| commit | 1a51c1c781bd92be657a9bb74685a86d9c76c733 (patch) | |
| tree | 48d22a66e91b124f517ce52b5455a868d4cc982e /config/hypr/UserScripts | |
| parent | b0168284df23c1d5c4967685d814732f354ed8f6 (diff) | |
| parent | 4a8b493fdb60ee5b055bb8cf4e9b26826e8ef5db (diff) | |
Merge pull request #516 from JaKooLit/main
Main to development
Diffstat (limited to 'config/hypr/UserScripts')
| -rwxr-xr-x | config/hypr/UserScripts/00-Readme | 4 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/QuickEdit.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/RofiBeats.sh | 7 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/RofiCalc.sh | 1 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperEffects.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperSelect.sh | 1 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/ZshChangeTheme.sh | 5 |
7 files changed, 22 insertions, 6 deletions
diff --git a/config/hypr/UserScripts/00-Readme b/config/hypr/UserScripts/00-Readme index 1b6688f4..7dcd9881 100755 --- a/config/hypr/UserScripts/00-Readme +++ b/config/hypr/UserScripts/00-Readme @@ -1,3 +1,5 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # + # Place your new scripts here. # If you need to edit a script from main script (~/.config/hypr/scripts), copy it on this folder, and edit. -# Make sure to update as well the keybinds in ~/.config/hypr/UserConfigs folder if any script is attached to it
\ No newline at end of file +# Make sure to update as well the keybinds in ~/.config/hypr/UserConfigs folder if any script is linked to it
\ No newline at end of file diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index ed5a4e1c..29ce3506 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -51,4 +51,9 @@ main() { $tty -e $edit "$file" } +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + main diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 17ce645a..e615aadb 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -13,6 +13,7 @@ declare -A online_music=( ["Radio - Lofi Girl 🎧🎶"]="https://play.streamafrica.net/lofiradio" ["Radio - Chillhop 🎧🎶"]="http://stream.zeno.fm/fyn8eh3h5f8uv" ["FM - Easy Rock 96.3 📻🎶"]="https://radio-stations-philippines.com/easy-rock" + ["FM - Easy Rock - Baguio 91.9 📻🎶"]="https://radio-stations-philippines.com/easy-rock-baguio" ["FM - Love Radio 90.7 📻🎶"]="https://radio-stations-philippines.com/love" ["FM - WRock - CEBU 96.3 📻🎶"]="https://onlineradio.ph/126-96-3-wrock.html" ["FM - Fresh Philippines 📻🎶"]="https://onlineradio.ph/553-fresh-fm.html" @@ -93,6 +94,12 @@ play_online_music() { # 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" || { +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + + # Prompt the user to choose between local and online music user_choice=$(printf "Play from Online Stations\nPlay from Music Folder\nShuffle Play from Music Folder" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats-menu.rasi -p "Select music source") diff --git a/config/hypr/UserScripts/RofiCalc.sh b/config/hypr/UserScripts/RofiCalc.sh index 355130de..cef80b81 100755 --- a/config/hypr/UserScripts/RofiCalc.sh +++ b/config/hypr/UserScripts/RofiCalc.sh @@ -8,7 +8,6 @@ rofi_config="$HOME/.config/rofi/config-calc.rasi" # Kill Rofi if already running before execution if pgrep -x "rofi" >/dev/null; then pkill rofi - exit 0 fi # main function diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh index 5b1f38e7..9a9d289c 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -1,7 +1,7 @@ #!/bin/bash # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # -# Wallpaper Effects using ImageMagick -# Inspiration from ML4W - Stephan Raabe https://gitlab.com/stephan-raabe/dotfiles +# Wallpaper Effects using ImageMagick (SUPER SHIFT W) +# Inspiration from ML4W - Stephan Raabe https://github.com/mylinuxforwork/dotfiles # Variables current_wallpaper="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" @@ -95,7 +95,6 @@ main() { # Check if rofi is already running and kill it if pidof rofi > /dev/null; then pkill rofi - exit 0 fi main diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index d74933a3..8daa4f28 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -97,7 +97,6 @@ main() { # Check if rofi is already running if pidof rofi > /dev/null; then pkill rofi - sleep 1 # Allow some time for rofi to close fi main diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index 57fbf37d..662a36bb 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -48,4 +48,9 @@ main() { fi } +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + main |
