diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-01-19 22:00:38 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-01-19 22:00:38 +0900 |
| commit | 780d762f3ab2fbb9d72f04402de031df5ee1863b (patch) | |
| tree | 5fbca820a7cfdd7d1aa01cdf040e279dfd2f7494 /config/hypr/UserScripts/ZshChangeTheme.sh | |
| parent | 466b077ec3b504a99c72543a82720f1529cdbbfc (diff) | |
minor scripts updated for better notification
Diffstat (limited to 'config/hypr/UserScripts/ZshChangeTheme.sh')
| -rwxr-xr-x | config/hypr/UserScripts/ZshChangeTheme.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index 7fe7eb39..5132cd66 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -29,7 +29,7 @@ main() { # if nothing selected, script won't change anything if [ -z "$choice" ]; then - notify-send -u low -i "$iDIR/bell.png" " No theme selected." " No changes made!" + notify-send -u low -i "$iDIR/bell.png" "No theme selected." "No changes made!" exit 0 fi @@ -40,18 +40,18 @@ main() { # Pick a random theme from the original themes_array (excluding "Random") random_theme=${themes_array[$((RANDOM % (${#themes_array[@]} - 1) + 1))]} theme_to_set="$random_theme" - notify-send -i "$iDIR/bell.png" " Random theme selected: $random_theme" + notify-send -i "$iDIR/bell.png" "Random theme:" "selected: $random_theme" else # Set theme to the selected choice theme_to_set="$choice" - notify-send -i "$iDIR/bell.png" " Theme selected: $choice" + notify-send -i "$iDIR/bell.png" "Theme selected:" "$choice" fi if [ -f "$zsh_path" ]; then sed -i "s/^$var_name=.*/$var_name=\"$theme_to_set\"/" "$zsh_path" - notify-send -i "$iDIR/bell.png" " OMZ Theme updated" " restart your terminal" + notify-send -i "$iDIR/bell.png" "OMZ theme" "applied. restart your terminal" else - notify-send " Error: .zshrc file not found!" + notify-send "Error:" "~.zshrc file not found!" fi } |
