From c414b2b4bb3a5be82ce48c054b35803a04c8517e Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 20 Mar 2025 18:08:17 +0900 Subject: updated some scripts to reflect new images on swaync --- config/hypr/scripts/Kitty_themes.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts/Kitty_themes.sh') diff --git a/config/hypr/scripts/Kitty_themes.sh b/config/hypr/scripts/Kitty_themes.sh index 471b7143..31c19a1d 100755 --- a/config/hypr/scripts/Kitty_themes.sh +++ b/config/hypr/scripts/Kitty_themes.sh @@ -9,12 +9,18 @@ kitty_config="$HOME/.config/kitty/kitty.conf" iDIR="$HOME/.config/swaync/images" rofi_theme="$HOME/.config/rofi/config-kitty-theme.rasi" +# Check if the Kitty Themes directory exists +if [ ! -d "$kitty_themes_DiR" ]; then + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Unable to locate Kitty Themes directory. Exiting....." + exit 1 +fi + # List the kitty-theme files from the themes directory theme=$(ls "$kitty_themes_DiR"/*.conf | xargs -n 1 basename | sed 's/\.conf$//' | rofi -dmenu -config $rofi_theme) -# Check if the user selected a theme +# Check if no theme was selected, and exit if empty if [ -z "$theme" ]; then - echo "No theme selected, exiting..." + notify-send -u low -i "$iDIR/note.png" "No kitty theme" "selected. Exiting....." exit 1 fi -- cgit v1.2.3