From 802f3c632d84cab8674e03a740a1cb177dcfd3c6 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 12 Mar 2025 12:24:30 +0900 Subject: da f is going on... --- config/hypr/scripts/KeyHints.sh | 4 ++-- config/hypr/scripts/Kool_Quick_Settings.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 2bab4b38..7917ae3a 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -28,7 +28,7 @@ GDK_BACKEND=$BACKEND yad \ " SHIFT E" "KooL Hyprland Settings Menu" "" \ "" "" "" \ " enter" "Terminal" "(kitty)" \ -" SHIFT enter" "DropDown Terminal" "(Not available in Debian and Ubuntu)" \ +" SHIFT enter" "DropDown Terminal" " Q to close" \ " B" "Launch Browser" "(Default browser)" \ " A" "Desktop Overview" "(AGS - if opted to install)" \ " D" "Application Launcher" "(rofi-wayland)" \ @@ -36,7 +36,7 @@ GDK_BACKEND=$BACKEND yad \ " S" "Google Search using rofi" "(rofi)" \ " Q" "close active window" "(not kill)" \ " Shift Q " "kills an active window" "(kill)" \ -" Z" "Desktop Zoom" "(Not available in Debian and Ubuntu)" \ +" ALT mouse scroll up/down " "Desktop Zoom" "Desktop Magnifier" \ " Alt V" "Clipboard Manager" "(cliphist)" \ " W" "Choose wallpaper" "(Wallpaper Menu)" \ " Shift W" "Choose wallpaper effects" "(imagemagick + swww)" \ diff --git a/config/hypr/scripts/Kool_Quick_Settings.sh b/config/hypr/scripts/Kool_Quick_Settings.sh index b26f5beb..95b305d9 100755 --- a/config/hypr/scripts/Kool_Quick_Settings.sh +++ b/config/hypr/scripts/Kool_Quick_Settings.sh @@ -38,6 +38,7 @@ Choose Monitor Profiles Choose Rofi Themes Search for Keybinds Toggle Game Mode +Switch Dark-Light Theme EOF } @@ -73,6 +74,7 @@ main() { "Choose Rofi Themes") $scriptsDir/RofiThemeSelector.sh ;; "Search for Keybinds") $scriptsDir/KeyBinds.sh ;; "Toggle Game Mode") $scriptsDir/GameMode.sh ;; + "Switch Dark-Light Theme") $scriptsDir/DarkLight.sh ;; *) return ;; # Do nothing for invalid choices esac @@ -87,4 +89,4 @@ if pidof rofi > /dev/null; then pkill rofi fi -main +main \ No newline at end of file -- cgit v1.2.3 From 57ba8f6cc98fba7c151075cefc3c179474fa1f25 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 13 Mar 2025 19:54:44 +0900 Subject: updated KooL_quick-Settings.sh - Added User Defaults --- config/hypr/scripts/Kool_Quick_Settings.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/Kool_Quick_Settings.sh b/config/hypr/scripts/Kool_Quick_Settings.sh index 95b305d9..d6949007 100755 --- a/config/hypr/scripts/Kool_Quick_Settings.sh +++ b/config/hypr/scripts/Kool_Quick_Settings.sh @@ -22,6 +22,7 @@ UserScripts="$HOME/.config/hypr/UserScripts" # Function to display the menu options without numbers menu() { cat < Date: Thu, 13 Mar 2025 23:05:09 +0900 Subject: edited Dark-Light.sh to not close kitty during theme switch --- config/hypr/scripts/DarkLight.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 96d43fa7..9f6ae490 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -21,7 +21,7 @@ pallete_dark="dark16" pallete_light="light16" # intial kill process -for pid in kitty waybar rofi swaync ags swaybg; do +for pid in waybar rofi swaync ags swaybg; do killall -SIGUSR1 "$pid" done @@ -115,6 +115,10 @@ else sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}" fi +for pid_kitty in $(pidof kitty); do + kill -SIGUSR1 "$pid_kitty" +done + # Set Dynamic Wallpaper for Dark or Light Mode if [ "$next_mode" = "Dark" ]; then next_wallpaper="$(find -L "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" @@ -235,7 +239,7 @@ ${SCRIPTSDIR}/WallustSwww.sh && sleep 2 # kill process -for pid1 in kitty waybar rofi swaync ags swaybg; do +for pid1 in waybar rofi swaync ags swaybg; do killall "$pid1" done -- cgit v1.2.3 From 3ed3bc0bd5c1fefc92594baa6058d4bdeb7bf35a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 13 Mar 2025 23:07:11 +0900 Subject: edited Dark-Light.sh to not close kitty during theme switch --- config/hypr/scripts/DarkLight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 9f6ae490..1bc1602f 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -1,7 +1,7 @@ #!/bin/bash ## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For Dark and Light switching -# Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate folders +# Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate directories # Paths wallpaper_base_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" -- cgit v1.2.3 From 28b889d4d121d05525b6dbda420f32cbabd63428 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 13 Mar 2025 23:22:23 +0900 Subject: replaced folders//folder with directories/directory --- README.md | 2 +- config/hypr/UserConfigs/00-Readme | 4 ++-- config/hypr/UserScripts/00-Readme | 4 ++-- config/hypr/UserScripts/RofiBeats.sh | 6 +++--- config/hypr/scripts/RofiEmoji.sh | 4 ++-- copy.sh | 2 +- upgrade.sh | 34 +++++++++++++++++----------------- 7 files changed, 28 insertions(+), 28 deletions(-) (limited to 'config/hypr/scripts') diff --git a/README.md b/README.md index 65dceaac..42430242 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ curl -sL https://raw.githubusercontent.com/JaKooLit/Hyprland-Dots/main/Distro-Hy ### 💥 Copying / Installation / Update instructions 💥 - [`MORE INFO HERE`](https://github.com/JaKooLit/Hyprland-Dots/wiki/Install_&_Update) > [!Note] -> The auto copy script "copy.sh" will create backups of intended folders to be copied. However, still a good idea to manually backup just incase script failed to backup! +> The auto copy script "copy.sh" will create backups of intended directories to be copied. However, still a good idea to manually backup just incase script failed to backup! - clone this repo by using git. Change directory, make executable and run the script > to download from Master branch diff --git a/config/hypr/UserConfigs/00-Readme b/config/hypr/UserConfigs/00-Readme index 1a20de3c..e989d2bb 100644 --- a/config/hypr/UserConfigs/00-Readme +++ b/config/hypr/UserConfigs/00-Readme @@ -2,9 +2,9 @@ KooL's Hyprland-Dots -1.) Suggest not to rename any files in this folder. As this is connected and being sourced from hyprland.conf in ~/.config/hypr +1.) Suggest not to rename any files in this directory. As this is connected and being sourced from hyprland.conf in ~/.config/hypr -2.) This folder, along with UserScripts folder will NOT be touch when running upgrade.sh +2.) This directory, along with UserScripts directory will NOT be touch when running upgrade.sh 3.) However, if hyprland has a big change in settings, i.e., blur section is moved into another group, you should managed the change yourself. diff --git a/config/hypr/UserScripts/00-Readme b/config/hypr/UserScripts/00-Readme index 7dcd9881..091bac85 100755 --- a/config/hypr/UserScripts/00-Readme +++ b/config/hypr/UserScripts/00-Readme @@ -1,5 +1,5 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # Place your new scripts here. -# If you need to edit a script from main script (~/.config/hypr/scripts), copy it on this folder, and edit. -# Make sure to update as well the keybinds in ~/.config/hypr/UserConfigs folder if any script is linked to it \ No newline at end of file +# If you need to edit a script from main script (~/.config/hypr/scripts), copy it on this directory, and edit. +# Make sure to update as well the keybinds in ~/.config/hypr/UserConfigs directory if any script is linked to it \ No newline at end of file diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 4587e720..b134c8a2 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -106,16 +106,16 @@ fi # Prompt the user to choose between local and online music -user_choice=$(printf "Play from Online Stations\nPlay from Music Folder\nShuffle Play from Music Folder" | rofi -dmenu -config $rofi_theme_1) +user_choice=$(printf "Play from Online Stations\nPlay from Music directory\nShuffle Play from Music directory" | rofi -dmenu -config $rofi_theme_1) case "$user_choice" in - "Play from Music Folder") + "Play from Music directory") play_local_music ;; "Play from Online Stations") play_online_music ;; - "Shuffle Play from Music Folder") + "Shuffle Play from Music directory") shuffle_local_music ;; *) diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index da9da61f..4570831e 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -1192,8 +1192,8 @@ exit 🖍️ crayon drawing creativity 📝 memo write documents stationery pencil paper writing legal exam quiz test study compose 💼 briefcase business documents work law legal job career -📁 file folder documents business office -📂 open file folder documents load +📁 file directory documents business office +📂 open file directory documents load 🗂️ card index dividers organizing business stationery 📅 calendar calendar schedule 📆 tear off calendar schedule date planning diff --git a/copy.sh b/copy.sh index ac834ec0..54f6109b 100755 --- a/copy.sh +++ b/copy.sh @@ -83,7 +83,7 @@ print_color() { # Set the name of the log file to include the current date and time LOG="Copy-Logs/install-$(date +%d-%H%M%S)_dotfiles.log" -# update home folders +# update home directories xdg-user-dirs-update 2>&1 | tee -a "$LOG" || true # setting up for nvidia diff --git a/upgrade.sh b/upgrade.sh index 0039cee6..034d7a2c 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -133,39 +133,39 @@ if version_gt "$latest_version" "$stored_version"; then read -r answer if [[ "$answer" =~ ^[Yy]$ ]]; then # Loop through directories for comparison - for source_folder in "${!directories[@]}"; do - target_folder="${directories[$source_folder]}" - echo "$YELLOW Comparing directories: $source_folder and $target_folder" $RESET - # Compare source and target folders - comparison=$(compare_directories "$source_folder" "$target_folder") + for source_directory in "${!directories[@]}"; do + target_directory="${directories[$source_directory]}" + echo "$YELLOW Comparing directories: $source_directory and $target_directory" $RESET + # Compare source and target directories + comparison=$(compare_directories "$source_directory" "$target_directory") if [ -n "$comparison" ]; then - echo "$NOTE Here are difference of $source_folder and $target_folder:" + echo "$NOTE Here are difference of $source_directory and $target_directory:" echo "$comparison" printf "\n%.0s" {1..2} # Prompt user for action - echo "$CAT Do you want to copy files and folders from $source_folder to $target_folder? (Y/N)" + echo "$CAT Do you want to copy files and directories from $source_directory to $target_directory? (Y/N)" read -r answer if [[ "$answer" =~ ^[Yy]$ ]]; then - # Creating backup of the target folder - create_backup "$target_folder" + # Creating backup of the target directory + create_backup "$target_directory" printf "\n%.0s" {1..2} - # Copy differences from source folder to target folder - rsync -av --delete ${exclusions[$source_folder]} "$source_folder" "$target_folder" - echo "$NOTE Differences of "$target_folder" copied successfully." 2>&1 | tee -a "$LOG" + # Copy differences from source directory to target directory + rsync -av --delete ${exclusions[$source_directory]} "$source_directory" "$target_directory" + echo "$NOTE Differences of "$target_directory" copied successfully." 2>&1 | tee -a "$LOG" printf "\n%.0s" {1..2} else - echo "$NOTE No changes were made for $target_folder" 2>&1 | tee -a "$LOG" + echo "$NOTE No changes were made for $target_directory" 2>&1 | tee -a "$LOG" fi else - echo "$OK No differences found between $source_folder and $target_folder" 2>&1 | tee -a "$LOG" + echo "$OK No differences found between $source_directory and $target_directory" 2>&1 | tee -a "$LOG" fi done printf "\n%.0s" {1..2} - echo "$NOTE Files or Folders updated successfully to version $latest_version" 2>&1 | tee -a "$LOG" + echo "$NOTE Files or directories updated successfully to version $latest_version" 2>&1 | tee -a "$LOG" # Set some files as executable chmod +x "$HOME/.config/hypr/scripts/"* 2>&1 | tee -a "$LOG" @@ -173,7 +173,7 @@ if version_gt "$latest_version" "$stored_version"; then # Set executable for initial-boot.sh chmod +x "$HOME/.config/hypr/initial-boot.sh" 2>&1 | tee -a "$LOG" else - echo "$MAGENTA Upgrade declined. No files or folders changed" 2>&1 | tee -a "$LOG" + echo "$MAGENTA Upgrade declined. No files or directories changed" 2>&1 | tee -a "$LOG" fi else echo "$OK 👌 No upgrade found. The installed version ${MAGENTA}($stored_version)${RESET} is up to date with the KooL Hyprland-Dots version ${YELLOW}($latest_version)${RESET}" 2>&1 | tee -a "$LOG" @@ -181,7 +181,7 @@ fi printf "\n%.0s" {1..3} echo "$(tput bold)$(tput setaf 3)ATTENTION!!!! VERY IMPORTANT NOTICE!!!! $(tput sgr0)" -echo "$(tput bold)$(tput setaf 7)If you updated waybar folder, and you have your own waybar layout and styles $(tput sgr0)" +echo "$(tput bold)$(tput setaf 7)If you updated waybar directory, and you have your own waybar layout and styles $(tput sgr0)" echo "$(tput bold)$(tput setaf 7)Copy those files from the created backup ~/.config/waybar-b4-upgrade $(tput sgr0)" echo "$(tput bold)$(tput setaf 7)Make sure to set your waybar and style before logout or reboot $(tput sgr0)" echo "$(tput bold)$(tput setaf 7)SUPER CTRL B for Waybar Styles and SUPER ALT B for Waybar Layout $(tput sgr0)" -- cgit v1.2.3