aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/ZshChangeTheme.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-02-25 18:53:27 +0900
committerGitHub <noreply@github.com>2025-02-25 18:53:27 +0900
commitb898e3a20eb228fd50c8b010a37b44019b0937b7 (patch)
tree6e3d0b76d0da981dd36100b107d02d27d29f6a0e /config/hypr/UserScripts/ZshChangeTheme.sh
parent87fc8f08dfa28a0e9bc801f1356bf2ad1737e5c3 (diff)
parent9d8b2c12c7ed867ce704d035033f2637e62e40b8 (diff)
Merge pull request #583 from JaKooLit/main
main to development
Diffstat (limited to 'config/hypr/UserScripts/ZshChangeTheme.sh')
-rwxr-xr-xconfig/hypr/UserScripts/ZshChangeTheme.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh
index fafd7fb0..4919a890 100755
--- a/config/hypr/UserScripts/ZshChangeTheme.sh
+++ b/config/hypr/UserScripts/ZshChangeTheme.sh
@@ -5,13 +5,19 @@
# preview of theme can be view here: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# after choosing theme, TTY need to be closed and re-open
-themes_dir="$HOME/.oh-my-zsh/themes"
-file_extension=".zsh-theme"
-
# Variables
iDIR="$HOME/.config/swaync/images"
rofi_theme="$HOME/.config/rofi/config-zsh-theme.rasi"
+if [ -n "$(grep -i nixos < /etc/os-release)" ]; then
+ notify-send -i "$iDIR/ja.png" "NOT Supported" "Sorry NixOS does not support this KooL feature"
+ exit 1
+fi
+
+themes_dir="$HOME/.oh-my-zsh/themes"
+file_extension=".zsh-theme"
+
+
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage