aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/ZshChangeTheme.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-02-16 11:09:08 +0900
committerGitHub <noreply@github.com>2025-02-16 11:09:08 +0900
commit8acfbb16d5ef45960a13cb9768517d3c418771a6 (patch)
tree7b618f6cca7942c3d2876740fca3963092b2da21 /config/hypr/UserScripts/ZshChangeTheme.sh
parent349f564bf307ad1ed99c87d028fccdecf7c1bdeb (diff)
parent0c53ef536ca2f028672004e909daac5473e6110f (diff)
Merge pull request #556 from JaKooLit/development
Development to main feat. Rofi Themes
Diffstat (limited to 'config/hypr/UserScripts/ZshChangeTheme.sh')
-rwxr-xr-xconfig/hypr/UserScripts/ZshChangeTheme.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh
index edfc2ecd..4ff43557 100755
--- a/config/hypr/UserScripts/ZshChangeTheme.sh
+++ b/config/hypr/UserScripts/ZshChangeTheme.sh
@@ -8,15 +8,16 @@
themes_dir="$HOME/.oh-my-zsh/themes"
file_extension=".zsh-theme"
-# Directory for swaync
+# Variables
iDIR="$HOME/.config/swaync/images"
+rofi_theme="~/.config/rofi/config-zsh-theme.rasi"
-themes_array=($(find "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//"))
+themes_array=($(find -L "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//"))
# Add "Random" option to the beginning of the array
themes_array=("Random" "${themes_array[@]}")
-rofi_command="rofi -i -dmenu -config ~/.config/rofi/config-zsh-theme.rasi"
+rofi_command="rofi -i -dmenu -config $rofi_theme"
menu() {
for theme in "${themes_array[@]}"; do
@@ -29,7 +30,6 @@ main() {
# if nothing selected, script won't change anything
if [ -z "$choice" ]; then
- notify-send -u low -i "$iDIR/ja.png" "No theme selected." "No changes made!"
exit 0
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage