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/Monitor_Profiles/README | 9 ++++++-- config/hypr/UserScripts/WallpaperSelect.sh | 8 +++---- config/hypr/UserScripts/ZshChangeTheme.sh | 4 ++-- config/hypr/scripts/ChangeBlur.sh | 6 ++--- config/hypr/scripts/Distro_update.sh | 16 ++++++------- config/hypr/scripts/Kitty_themes.sh | 10 ++++++-- config/hypr/scripts/KooLsDotsUpdate.sh | 16 ++++++------- config/hypr/scripts/Kool_Quick_Settings.sh | 10 ++++---- config/hypr/scripts/ScreenShot.sh | 2 +- config/hypr/wallust/wallust-hyprland.conf | 36 ++++++++++++++--------------- config/swaync/images/error.png | Bin 0 -> 62849 bytes config/swaync/images/note.png | Bin 0 -> 152249 bytes 12 files changed, 64 insertions(+), 53 deletions(-) create mode 100644 config/swaync/images/error.png create mode 100644 config/swaync/images/note.png diff --git a/config/hypr/Monitor_Profiles/README b/config/hypr/Monitor_Profiles/README index b2e218c5..86075d77 100644 --- a/config/hypr/Monitor_Profiles/README +++ b/config/hypr/Monitor_Profiles/README @@ -3,7 +3,12 @@ # Create a unique file name i.e. Mirror, or Office, Scale, etc etc # tip: You can easily create a profile using nwg-displays -# after which, you can copy the ~/.config/hypr/monitors.conf file in this directory +# after creating a profile using nwg-displays, copy the ~/.config/hypr/monitors.conf file to this directory with a unique file name +# suggest not to call it default -# Note, after selecting Profiles wanted, it will copy contents into ~/.config/hypr/monitors.conf + +# Note, after selecting Profiles wanted via Rofi (SUPER SHIFT E), previous content of ~/.config/hypr/monitors.conf will be backed up and named as Previous_Profile.conf + +# Monitor profile should be loaded automatically once selected by KooL Rofi Settings ROfi Menu, unless you disabled the auto-reload function on Hyprland settings. +# However, if it does not load, kindly log out and re-login. This seem apparent if you are using a Virtual Environment. diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index fa4d9c54..e26dcd46 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -21,7 +21,7 @@ SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration # Check if package bc exists if ! command -v bc &>/dev/null; then - notify-send -i "$iDIR/ja.png" "bc missing" "Install package bc first" + notify-send -i "$iDIR/error.png" "bc missing" "Install package bc first" exit 1 fi @@ -31,7 +31,7 @@ focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') # Ensure focused_monitor is detected if [[ -z "$focused_monitor" ]]; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Could not detect focused monitor" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Could not detect focused monitor" exit 1 fi @@ -104,7 +104,7 @@ set_sddm_wallpaper() { # Check if terminal exists if ! command -v "$terminal" &>/dev/null; then - notify-send -i "$iDIR/ja.png" "Missing $terminal" "Install $terminal to enable setting of wallpaper background" + notify-send -i "$iDIR/error.png" "Missing $terminal" "Install $terminal to enable setting of wallpaper background" exit 1 fi @@ -167,7 +167,7 @@ apply_video_wallpaper() { # Check if mpvpaper is installed if ! command -v mpvpaper &> /dev/null; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "mpvpaper not found" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "mpvpaper not found" return 1 fi kill_wallpaper_for_video diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index 4919a890..cffaf5cb 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -10,7 +10,7 @@ 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" + notify-send -i "$iDIR/note.png" "NOT Supported" "Sorry NixOS does not support this KooL feature" exit 1 fi @@ -57,7 +57,7 @@ main() { sed -i "s/^$var_name=.*/$var_name=\"$theme_to_set\"/" "$zsh_path" notify-send -i "$iDIR/ja.png" "OMZ theme" "applied. restart your terminal" else - notify-send -i "$iDIR/ja.png" "Error:" "~.zshrc file not found!" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "~.zshrc file not found!" fi } diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh index 46aaad68..895987a4 100755 --- a/config/hypr/scripts/ChangeBlur.sh +++ b/config/hypr/scripts/ChangeBlur.sh @@ -2,16 +2,16 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for changing blurs on the fly -notif="$HOME/.config/swaync/images/ja.png" +notif="$HOME/.config/swaync/images" STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int") if [ "${STATE}" == "2" ]; then hyprctl keyword decoration:blur:size 2 hyprctl keyword decoration:blur:passes 1 - notify-send -e -u low -i "$notif" " Less Blur" + notify-send -e -u low -i "$notif/note.png" " Less Blur" else hyprctl keyword decoration:blur:size 5 hyprctl keyword decoration:blur:passes 2 - notify-send -e -u low -i "$notif" " Normal Blur" + notify-send -e -u low -i "$notif/ja.png" " Normal Blur" fi diff --git a/config/hypr/scripts/Distro_update.sh b/config/hypr/scripts/Distro_update.sh index c687ba0c..b0b1446b 100755 --- a/config/hypr/scripts/Distro_update.sh +++ b/config/hypr/scripts/Distro_update.sh @@ -3,11 +3,11 @@ # Simple bash script to check and will try to update your system # Local Paths -iDIR="$HOME/.config/swaync/images/ja.png" +iDIR="$HOME/.config/swaync/images" # Check for required tools (kitty) if ! command -v kitty &> /dev/null; then - notify-send -i $iDIR "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." + notify-send -i "$iDIR/error.png" "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." exit 1 fi @@ -16,25 +16,25 @@ if command -v paru &> /dev/null || command -v yay &> /dev/null; then # Arch-based if command -v paru &> /dev/null; then kitty -T update paru -Syu - notify-send -i $iDIR -u low 'Arch-based system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'Arch-based system' 'has been updated.' else kitty -T update yay -Syu - notify-send -i $iDIR -u low 'Arch-based system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'Arch-based system' 'has been updated.' fi elif command -v dnf &> /dev/null; then # Fedora-based kitty -T update sudo dnf update --refresh -y - notify-send -i $iDIR -u low 'Fedora system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'Fedora system' 'has been updated.' elif command -v apt &> /dev/null; then # Debian-based (Debian, Ubuntu, etc.) kitty -T update sudo apt update && sudo apt upgrade -y - notify-send -i $iDIR -u low 'Debian/Ubuntu system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'Debian/Ubuntu system' 'has been updated.' elif command -v zypper &> /dev/null; then # openSUSE-based kitty -T update sudo zypper dup -y - notify-send -i $iDIR -u low 'openSUSE system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'openSUSE system' 'has been updated.' else # Unsupported distro - notify-send -i $iDIR -u critical "Unsupported system" "This script does not support your distribution." + notify-send -i "$iDIR/error.png" -u critical "Unsupported system" "This script does not support your distribution." exit 1 fi 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 diff --git a/config/hypr/scripts/KooLsDotsUpdate.sh b/config/hypr/scripts/KooLsDotsUpdate.sh index 4996da82..f4b8814a 100755 --- a/config/hypr/scripts/KooLsDotsUpdate.sh +++ b/config/hypr/scripts/KooLsDotsUpdate.sh @@ -4,13 +4,13 @@ # Local Paths local_dir="$HOME/.config/hypr" -iDIR="$HOME/.config/swaync/images/ja.png" +iDIR="$HOME/.config/swaync/images/" local_version=$(ls $local_dir/v* 2>/dev/null | sort -V | tail -n 1 | sed 's/.*v\(.*\)/\1/') KooL_Dots_DIR="$HOME/Hyprland-Dots" # exit if cannot find local version if [ -z "$local_version" ]; then - notify-send -i $iDIR "ERROR "!?!?!!"" "Unable to find KooL's dots version . exiting.... " + notify-send -i "$iDIR/error.png" "ERROR "!?!?!!"" "Unable to find KooL's dots version . exiting.... " exit 1 fi @@ -28,12 +28,12 @@ fi # Comparing local and github versions if [ "$(echo -e "$github_version\n$local_version" | sort -V | head -n 1)" = "$github_version" ]; then - notify-send -i $iDIR "KooL Hyprland:" "No update available" + notify-send -i "$iDIR/note.png" "KooL Hyprland:" "No update available" exit 0 else # update available notify_cmd_base="notify-send -t 10000 -A action1=Update -A action2=NO -h string:x-canonical-private-synchronous:shot-notify" - notify_cmd_shot="${notify_cmd_base} -i $iDIR" + notify_cmd_shot="${notify_cmd_base} -i $iDIR/ja.png" response=$($notify_cmd_shot "KooL Hyprland:" "Update available! Update now?") @@ -41,7 +41,7 @@ else "action1") if [ -d $KooL_Dots_DIR ]; then if ! command -v kitty &> /dev/null; then - notify-send -i $iDIR "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Kitty terminal not found. Please install Kitty terminal." exit 1 fi kitty -e bash -c " @@ -49,12 +49,12 @@ else git stash && git pull && ./copy.sh && - notify-send -u critical -i $iDIR 'Update Completed:' 'Kindly log out and relogin to take effect' + notify-send -u critical -i "$iDIR/ja.png" 'Update Completed:' 'Kindly log out and relogin to take effect' " else if ! command -v kitty &> /dev/null; then - notify-send -i $iDIR "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Kitty terminal not found. Please install Kitty terminal." exit 1 fi kitty -e bash -c " @@ -62,7 +62,7 @@ else cd $KooL_Dots_DIR && chmod +x copy.sh && ./copy.sh && - notify-send -u critical -i $iDIR 'Update Completed:' 'Kindly log out and relogin to take effect' + notify-send -u critical -i "$iDIR/ja.png" 'Update Completed:' 'Kindly log out and relogin to take effect' " fi ;; diff --git a/config/hypr/scripts/Kool_Quick_Settings.sh b/config/hypr/scripts/Kool_Quick_Settings.sh index 85351216..e43749bf 100755 --- a/config/hypr/scripts/Kool_Quick_Settings.sh +++ b/config/hypr/scripts/Kool_Quick_Settings.sh @@ -66,31 +66,31 @@ main() { "Choose Kitty Terminal Theme") $scriptsDir/Kitty_themes.sh ;; "Configure Monitors (nwg-displays)") if ! command -v nwg-displays &>/dev/null; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install nwg-displays first" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Install nwg-displays first" exit 1 fi nwg-displays ;; "Configure Workspace Rules (nwg-displays)") if ! command -v nwg-displays &>/dev/null; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install nwg-displays first" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Install nwg-displays first" exit 1 fi nwg-displays ;; "GTK Settings (nwg-look)") if ! command -v nwg-look &>/dev/null; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install nwg-look first" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Install nwg-look first" exit 1 fi nwg-look ;; "QT Apps Settings (qt6ct)") if ! command -v qt6ct &>/dev/null; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install qt6ct first" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Install qt6ct first" exit 1 fi qt6ct ;; "QT Apps Settings (qt5ct)") if ! command -v qt5ct &>/dev/null; then - notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install qt5ct first" + notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Install qt5ct first" exit 1 fi qt5ct ;; diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index 852be4b0..b0f666aa 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -18,7 +18,7 @@ active_window_path="${dir}/${active_window_file}" notify_cmd_base="notify-send -t 10000 -A action1=Open -A action2=Delete -h string:x-canonical-private-synchronous:shot-notify" notify_cmd_shot="${notify_cmd_base} -i ${iDIR}/picture.png " notify_cmd_shot_win="${notify_cmd_base} -i ${iDIR}/picture.png " -notify_cmd_NOT="notify-send -u low -i ${iDoR}/ja.png " +notify_cmd_NOT="notify-send -u low -i ${iDoR}/note.png " # notify and view screenshot notify_view() { diff --git a/config/hypr/wallust/wallust-hyprland.conf b/config/hypr/wallust/wallust-hyprland.conf index 92bcfc7c..c7c1debe 100644 --- a/config/hypr/wallust/wallust-hyprland.conf +++ b/config/hypr/wallust/wallust-hyprland.conf @@ -1,21 +1,21 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # /* wallust template - colors-hyprland */ -$background = rgb(1E1516) -$foreground = rgb(ACF2F1) -$color0 = rgb(463C3D) -$color1 = rgb(181916) -$color2 = rgb(073122) -$color3 = rgb(073122) -$color4 = rgb(0E455E) -$color5 = rgb(0D942F) -$color6 = rgb(0DA4A1) -$color7 = rgb(80E4E2) -$color8 = rgb(59A09E) -$color9 = rgb(20211D) -$color10 = rgb(09422D) -$color11 = rgb(09422D) -$color12 = rgb(135C7D) -$color13 = rgb(11C63F) -$color14 = rgb(11DAD6) -$color15 = rgb(80E4E2) +$background = rgb(010102) +$foreground = rgb(FDF8FE) +$color0 = rgb(313131) +$color1 = rgb(09050C) +$color2 = rgb(221647) +$color3 = rgb(2C1A40) +$color4 = rgb(5E3887) +$color5 = rgb(7344A6) +$color6 = rgb(BAB0BD) +$color7 = rgb(F3ECF5) +$color8 = rgb(AAA5AC) +$color9 = rgb(0B0711) +$color10 = rgb(2D1D5F) +$color11 = rgb(3B2355) +$color12 = rgb(7D4AB4) +$color13 = rgb(9A5BDD) +$color14 = rgb(F8EAFC) +$color15 = rgb(F3ECF5) diff --git a/config/swaync/images/error.png b/config/swaync/images/error.png new file mode 100644 index 00000000..620b05af Binary files /dev/null and b/config/swaync/images/error.png differ diff --git a/config/swaync/images/note.png b/config/swaync/images/note.png new file mode 100644 index 00000000..81c82e87 Binary files /dev/null and b/config/swaync/images/note.png differ -- cgit v1.2.3