From c35b1026d16cff151b763ee484d9fc773952aeb1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 21 Feb 2025 16:14:38 +0900 Subject: pushing for monitor profiles, changed the version to dev first indicating still in dev branch. Enhance functionality of KooL Quick Settings --- config/hypr/UserScripts/Kool_Quick_Settings.sh | 83 ++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100755 config/hypr/UserScripts/Kool_Quick_Settings.sh (limited to 'config/hypr/UserScripts/Kool_Quick_Settings.sh') diff --git a/config/hypr/UserScripts/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh new file mode 100755 index 00000000..7b2f7f0e --- /dev/null +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -0,0 +1,83 @@ +#!/bin/bash +# /* ---- πŸ’« https://github.com/JaKooLit πŸ’« ---- */ ## +# Rofi menu for Quick Edit/View of Settings (SUPER SHIFT E) + +# Define preferred text editor and terminal +edit=${EDITOR:-nano} +tty=kitty + +# variables +configs="$HOME/.config/hypr/configs" +UserConfigs="$HOME/.config/hypr/UserConfigs" +rofi_theme="~/.config/rofi/config-edit.rasi" +msg=' ⁉️ Choose what to do ⁉️' +iDIR="$HOME/.config/swaync/images" +scriptsDir="$HOME/.config/hypr/scripts" +UserScripts="$HOME/.config/hypr/UserScripts" + +# Function to display the menu options +menu() { + cat </dev/null; then + notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" + exit 1 + fi + nwg-displays ;; + 11) if ! command -v nwg-displays &>/dev/null; then + notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" + exit 1 + fi + nwg-displays ;; + 12) $scriptsDir/Animations.sh ;; + 13) $scriptsDir/MonitorProfiles.sh ;; + 14) $scriptsDir/RofiThemeSelector.sh ;; + 15) $scriptsDir/KeyBinds.sh ;; + + *) return ;; # Do nothing for invalid choices + esac + + # Open the selected file in the terminal with the text editor + if [ -n "$file" ]; then + $tty -e $edit "$file" + fi +} + +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + +main \ No newline at end of file -- cgit v1.2.3 From 6be9f677691bbca3e0b0c82f65862a566a60da07 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 21 Feb 2025 20:30:41 +0900 Subject: updated --- config/hypr/UserScripts/Kool_Quick_Settings.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/UserScripts/Kool_Quick_Settings.sh') diff --git a/config/hypr/UserScripts/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh index 7b2f7f0e..663b51ed 100755 --- a/config/hypr/UserScripts/Kool_Quick_Settings.sh +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -27,8 +27,8 @@ menu() { 7. view/edit Animations 8. view/edit Laptop Keybinds 9. view/edit Default Keybinds -10. view/edit Monitors (via nwg-displays) -11. view/edit Workspace Rules (nwg-displays) +10. Configure Monitors (nwg-displays) +11. Configure Workspace Rules (nwg-displays) 12. Choose Hyprland Animations 13. Choose Monitor Profiles 14. Choose Rofi Themes -- cgit v1.2.3 From cac7771a124a3a480bc8cf7c91896d560d917e43 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 21 Feb 2025 23:04:38 +0900 Subject: adjusted rofi configs to have better compatibility? --- config/hypr/UserScripts/Kool_Quick_Settings.sh | 87 +++++++++++++------------- config/rofi/config-Animations.rasi | 6 +- config/rofi/config-clipboard.rasi | 7 ++- config/rofi/config-edit.rasi | 7 ++- config/rofi/config-emoji.rasi | 5 +- config/rofi/config-keybinds.rasi | 3 + config/rofi/config-rofi-Beats-menu.rasi | 2 + config/rofi/config-rofi-Beats.rasi | 5 +- config/rofi/config-rofi-theme.rasi | 8 ++- config/rofi/config-wallpaper-effect.rasi | 8 ++- config/rofi/config-wallpaper.rasi | 15 ++--- config/rofi/config-waybar-layout.rasi | 4 +- config/rofi/config-waybar-style.rasi | 4 +- 13 files changed, 94 insertions(+), 67 deletions(-) (limited to 'config/hypr/UserScripts/Kool_Quick_Settings.sh') diff --git a/config/hypr/UserScripts/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh index 663b51ed..a6dc2885 100755 --- a/config/hypr/UserScripts/Kool_Quick_Settings.sh +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -15,57 +15,58 @@ iDIR="$HOME/.config/swaync/images" scriptsDir="$HOME/.config/hypr/scripts" UserScripts="$HOME/.config/hypr/UserScripts" -# Function to display the menu options +# Function to display the menu options without numbers menu() { cat </dev/null; then - notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" - exit 1 - fi - nwg-displays ;; - 11) if ! command -v nwg-displays &>/dev/null; then - notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" - exit 1 - fi - nwg-displays ;; - 12) $scriptsDir/Animations.sh ;; - 13) $scriptsDir/MonitorProfiles.sh ;; - 14) $scriptsDir/RofiThemeSelector.sh ;; - 15) $scriptsDir/KeyBinds.sh ;; - + case "$choice" in + "view/edit ENV variables") file="$UserConfigs/ENVariables.conf" ;; + "view/edit Window Rules") file="$UserConfigs/WindowRules.conf" ;; + "view/edit User Keybinds") file="$UserConfigs/UserKeybinds.conf" ;; + "view/edit User Settings") file="$UserConfigs/UserSettings.conf" ;; + "view/edit Startup Apps") file="$UserConfigs/Startup_Apps.conf" ;; + "view/edit Decorations") file="$UserConfigs/UserDecorations.conf" ;; + "view/edit Animations") file="$UserConfigs/UserAnimations.conf" ;; + "view/edit Laptop Keybinds") file="$UserConfigs/Laptops.conf" ;; + "view/edit Default Keybinds") file="$configs/Keybinds.conf" ;; + "Configure Monitors (nwg-displays)") + if ! command -v nwg-displays &>/dev/null; then + notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "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" "Missing nwg-displays" "Install nwg-displays first" + exit 1 + fi + nwg-displays ;; + "Choose Hyprland Animations") $scriptsDir/Animations.sh ;; + "Choose Monitor Profiles") $scriptsDir/MonitorProfiles.sh ;; + "Choose Rofi Themes") $scriptsDir/RofiThemeSelector.sh ;; + "Search for Keybinds") $scriptsDir/KeyBinds.sh ;; *) return ;; # Do nothing for invalid choices esac @@ -80,4 +81,4 @@ if pidof rofi > /dev/null; then pkill rofi fi -main \ No newline at end of file +main diff --git a/config/rofi/config-Animations.rasi b/config/rofi/config-Animations.rasi index c7a86361..f26eecd6 100644 --- a/config/rofi/config-Animations.rasi +++ b/config/rofi/config-Animations.rasi @@ -11,7 +11,7 @@ mainbox { /* ---- Window ---- */ window { - width: 45%; + width: inherit; height: inherit; } @@ -28,6 +28,7 @@ listview { fixed-height: false; margin: 10px; scrollbar: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -37,5 +38,6 @@ element-icon { element-text { horizontal-align: 0.0; vertical-align: 0.0; - margin: 5px 30px 5px 30px; + margin: 0px; + padding: 0px; } diff --git a/config/rofi/config-clipboard.rasi b/config/rofi/config-clipboard.rasi index 4006e646..d0d3d3ae 100644 --- a/config/rofi/config-clipboard.rasi +++ b/config/rofi/config-clipboard.rasi @@ -5,7 +5,7 @@ /* ---- Window ---- */ window { - width: 50%; + width: inherit; height: inherit; } @@ -17,7 +17,7 @@ mainbox { /* ---- Entry ---- */ entry { - width: 47%; + width: inherit; placeholder: " πŸ“‹ Search Clipboard "; } @@ -26,6 +26,7 @@ listview { columns: 1; lines: 8; fixed-height: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -40,4 +41,6 @@ element-icon { element-text { horizontal-align: 0.0; vertical-align: 0.5; + margin: 0px; + padding: 0px; } diff --git a/config/rofi/config-edit.rasi b/config/rofi/config-edit.rasi index b8a90345..4f5215ef 100644 --- a/config/rofi/config-edit.rasi +++ b/config/rofi/config-edit.rasi @@ -17,7 +17,7 @@ configuration { /* ---- Window ---- */ window { - width: 50%; + width: inherit; height: inherit; } @@ -28,6 +28,7 @@ listview { lines: 6; fixed-height: false; scrollbar: true; + spacing: 6px; } /* ---- Entry input ---- */ @@ -47,6 +48,6 @@ element-icon { } element-text { horizontal-align: 0.0; - padding-left: 0px; - margin: 5px 30px 5px 30px; + margin: 0px; + padding: 0px; } \ No newline at end of file diff --git a/config/rofi/config-emoji.rasi b/config/rofi/config-emoji.rasi index 79135a10..3ab498e3 100644 --- a/config/rofi/config-emoji.rasi +++ b/config/rofi/config-emoji.rasi @@ -11,7 +11,7 @@ mainbox { /* ---- Window ---- */ window { - width: 45%; + width: inherit; height: inherit; } @@ -28,6 +28,7 @@ listview { lines: 7; fixed-height: false; scrollbar: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -42,4 +43,6 @@ element-icon { element-text { horizontal-align: 0.0; vertical-align: 0.5; + padding: 0px; + margin: 0px; } \ No newline at end of file diff --git a/config/rofi/config-keybinds.rasi b/config/rofi/config-keybinds.rasi index 1deeccca..256c2e87 100644 --- a/config/rofi/config-keybinds.rasi +++ b/config/rofi/config-keybinds.rasi @@ -22,6 +22,7 @@ listview { lines: 8; fixed-height: false; scrollbar: true; + spacing: 6px; } window { @@ -41,4 +42,6 @@ element-icon { element-text { horizontal-align: 0.0; vertical-align: 0.5; + margin: 0px; + padding: 0px; } \ No newline at end of file diff --git a/config/rofi/config-rofi-Beats-menu.rasi b/config/rofi/config-rofi-Beats-menu.rasi index e2728ff5..ea20a09c 100644 --- a/config/rofi/config-rofi-Beats-menu.rasi +++ b/config/rofi/config-rofi-Beats-menu.rasi @@ -31,6 +31,7 @@ listview { scrollbar: false; colums: 1; lines: 3; + spacing: 6px; } /* ---- Element ---- */ @@ -39,4 +40,5 @@ element-icon { } element-text { horizontal-align: 0.5; + } \ No newline at end of file diff --git a/config/rofi/config-rofi-Beats.rasi b/config/rofi/config-rofi-Beats.rasi index 9be65e09..9c67f4e4 100644 --- a/config/rofi/config-rofi-Beats.rasi +++ b/config/rofi/config-rofi-Beats.rasi @@ -5,7 +5,7 @@ /* ---- Window ---- */ window { - width: 45%; + width: inherit; height: inherit; } @@ -27,6 +27,7 @@ listview { fixed-height: false; margin: 10px; scrollbar: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -41,4 +42,6 @@ element-icon { element-text { horizontal-align: 0.0; vertical-align: 0.5; + margin: 0px; + padding: 0px; } \ No newline at end of file diff --git a/config/rofi/config-rofi-theme.rasi b/config/rofi/config-rofi-theme.rasi index 81b20ded..83975f64 100644 --- a/config/rofi/config-rofi-theme.rasi +++ b/config/rofi/config-rofi-theme.rasi @@ -5,7 +5,7 @@ /* ---- Window ---- */ window { - width: 45%; + width: inherit; height: inherit; } @@ -26,8 +26,9 @@ listview { columns: 2; lines: 7; fixed-height: false; - margin: 0px; + margin: 10px; scrollbar: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -36,6 +37,7 @@ element-icon { } element-text { horizontal-align: 0.0; - vertical-align: 0.0; + vertical-align: 0.5; margin: 0px; + padding: 0px; } diff --git a/config/rofi/config-wallpaper-effect.rasi b/config/rofi/config-wallpaper-effect.rasi index 0909bae4..61d68a76 100644 --- a/config/rofi/config-wallpaper-effect.rasi +++ b/config/rofi/config-wallpaper-effect.rasi @@ -12,13 +12,13 @@ mainbox { /* ---- Entry ---- */ entry { + width: 32%; placeholder: " πŸ™οΈ Search / Choose desired wallpaper effect"; - padding: 12px; } /* ---- Window ---- */ window { - width: 35%; + width: inherit; height: inherit; } @@ -28,6 +28,7 @@ listview { lines: 7; fixed-height: false; scrollbar: true; + spacing: 6px; } /* ---- Inputbar ---- */ @@ -43,5 +44,6 @@ element-icon { element-text { horizontal-align: 0.0; vertical-align: 0.0; - margin: 5px 30px 5px 30px; + margin: 0px; + padding: 0px; } \ No newline at end of file diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi index aa96932f..99f68098 100644 --- a/config/rofi/config-wallpaper.rasi +++ b/config/rofi/config-wallpaper.rasi @@ -31,6 +31,7 @@ listview { columns: 6; lines: 2; spacing: 20px; + padding: 10px; columns: 6; lines: 2; flow: horizontal; @@ -41,6 +42,8 @@ listview { /* ---- Element ---- */ element { orientation: vertical; + padding: 0px; + spacing: 0px; border-radius: 10px; padding: 0px; margin: 0px; @@ -48,20 +51,18 @@ element { element selected.normal { background-color: transparent; - } element-icon { - text-color: inherit; - size: 1%; - margin: -30px; - cursor: inherit; - + text-color: inherit; + size: 10%; + margin: -30px; + cursor: inherit; } element-text { vertical-align: 0.5; horizontal-align: 0.5; - padding: 20px; + padding: 10px; margin: 0px; } diff --git a/config/rofi/config-waybar-layout.rasi b/config/rofi/config-waybar-layout.rasi index 0d98a1ad..97ebe96f 100644 --- a/config/rofi/config-waybar-layout.rasi +++ b/config/rofi/config-waybar-layout.rasi @@ -33,6 +33,7 @@ listview { fixed-height: false; margin: 10px; scrollbar: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -41,5 +42,6 @@ element-icon { } element-text { horizontal-align: 0.0; - margin: 5px 30px 5px 30px; + margin: 0px; + padding: 0px; } \ No newline at end of file diff --git a/config/rofi/config-waybar-style.rasi b/config/rofi/config-waybar-style.rasi index fd91e94f..bf9b11f2 100644 --- a/config/rofi/config-waybar-style.rasi +++ b/config/rofi/config-waybar-style.rasi @@ -32,6 +32,7 @@ listview { fixed-height: false; margin: 10px; scrollbar: true; + spacing: 6px; } /* ---- Elements ---- */ @@ -40,5 +41,6 @@ element-icon { } element-text { horizontal-align: 0.0; - margin: 5px 30px 5px 30px; + margin: 0px; + padding: 0px; } -- cgit v1.2.3 From 9df8836dc8bf17a86990bbf659105626138552cb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 23 Feb 2025 13:15:07 +0900 Subject: Not sure if important.. but whatever --- README.md | 2 +- config/hypr/UserScripts/Kool_Quick_Settings.sh | 2 +- config/hypr/UserScripts/RofiBeats.sh | 4 +-- config/hypr/UserScripts/WallpaperEffects.sh | 2 +- config/hypr/UserScripts/WallpaperSelect.sh | 2 +- config/hypr/UserScripts/Weather.py | 2 +- config/hypr/UserScripts/Weather.sh | 4 +-- config/hypr/UserScripts/ZshChangeTheme.sh | 2 +- config/hypr/hyprlock-1080p.conf | 2 +- config/hypr/hyprlock.conf | 2 +- config/hypr/initial-boot.sh | 4 +-- config/hypr/scripts/Animations.sh | 2 +- config/hypr/scripts/ClipManager.sh | 2 +- config/hypr/scripts/DarkLight.sh | 2 +- config/hypr/scripts/MonitorProfiles.sh | 4 +-- config/hypr/scripts/RofiEmoji.sh | 2 +- config/waybar/configs/[TOP] Everforest | 4 +-- copy.sh | 43 +++++++++++++------------- upgrade.sh | 10 +++--- 19 files changed, 49 insertions(+), 48 deletions(-) (limited to 'config/hypr/UserScripts/Kool_Quick_Settings.sh') diff --git a/README.md b/README.md index b6858135..58f5e712 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ chmod +x upgrade.sh ## ⚠️⚠️⚠️ ATTENTION - BACKUPS CREATED by SCRIPT > [!CAUTION] > copy.sh, release.sh and even upgrade.sh creates a backup! -> Kindly investigate manually contents on your ~/.config +> Kindly investigate manually contents on your $HOME/.config > Delete manually all the backups which you dont need #### πŸ›ŽοΈ a small note on wallpapers diff --git a/config/hypr/UserScripts/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh index a6dc2885..88e26089 100755 --- a/config/hypr/UserScripts/Kool_Quick_Settings.sh +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -9,7 +9,7 @@ tty=kitty # variables configs="$HOME/.config/hypr/configs" UserConfigs="$HOME/.config/hypr/UserConfigs" -rofi_theme="~/.config/rofi/config-edit.rasi" +rofi_theme="$HOME/.config/rofi/config-edit.rasi" msg=' ⁉️ Choose what to do ⁉️' iDIR="$HOME/.config/swaync/images" scriptsDir="$HOME/.config/hypr/scripts" diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 74a8fe54..4587e720 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -5,8 +5,8 @@ # Variables mDIR="$HOME/Music/" iDIR="$HOME/.config/swaync/icons" -rofi_theme="~/.config/rofi/config-rofi-Beats.rasi" -rofi_theme_1="~/.config/rofi/config-rofi-Beats-menu.rasi" +rofi_theme="$HOME/.config/rofi/config-rofi-Beats.rasi" +rofi_theme_1="$HOME/.config/rofi/config-rofi-Beats-menu.rasi" # Online Stations. Edit as required declare -A online_music=( diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh index c98400d2..948c637c 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -8,7 +8,7 @@ wallpaper_current="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" wallpaper_output="$HOME/.config/hypr/wallpaper_effects/.wallpaper_modified" SCRIPTSDIR="$HOME/.config/hypr/scripts" focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') -rofi_theme="~/.config/rofi/config-wallpaper-effect.rasi" +rofi_theme="$HOME/.config/rofi/config-wallpaper-effect.rasi" # Directory for swaync iDIR="$HOME/.config/swaync/images" diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 86b7dfa2..78bf8d2f 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -15,7 +15,7 @@ iDIR="$HOME/.config/swaync/images" iDIRi="$HOME/.config/swaync/icons" # variables -rofi_theme="~/.config/rofi/config-wallpaper.rasi" +rofi_theme="$HOME/.config/rofi/config-wallpaper.rasi" focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') # Get monitor width and DPI diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py index b9efe4e4..a2ad98b5 100755 --- a/config/hypr/UserScripts/Weather.py +++ b/config/hypr/UserScripts/Weather.py @@ -138,7 +138,7 @@ simple_weather = ( ) try: - with open(os.path.expanduser("~/.cache/.weather_cache"), "w") as file: + with open(os.path.expanduser("$HOME/.cache/.weather_cache"), "w") as file: file.write(simple_weather) except Exception as e: print(f"Error writing to cache: {e}") diff --git a/config/hypr/UserScripts/Weather.sh b/config/hypr/UserScripts/Weather.sh index 65613fca..9bdaff4a 100755 --- a/config/hypr/UserScripts/Weather.sh +++ b/config/hypr/UserScripts/Weather.sh @@ -4,7 +4,7 @@ # Remember to add city city= -cachedir=~/.cache/rbn +cachedir="$HOME/.cache/rbn" cachefile=${0##*/}-$1 if [ ! -d $cachedir ]; then @@ -84,4 +84,4 @@ echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \ cached_weather=" $temperature \n$condition ${weather[1]}" -echo -e $cached_weather > ~/.cache/.weather_cache \ No newline at end of file +echo -e $cached_weather > "$HOME/.cache/.weather_cache" \ No newline at end of file diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index 4ff43557..fafd7fb0 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -10,7 +10,7 @@ file_extension=".zsh-theme" # Variables iDIR="$HOME/.config/swaync/images" -rofi_theme="~/.config/rofi/config-zsh-theme.rasi" +rofi_theme="$HOME/.config/rofi/config-zsh-theme.rasi" themes_array=($(find -L "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//")) diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf index acd3258c..9fcac975 100644 --- a/config/hypr/hyprlock-1080p.conf +++ b/config/hypr/hyprlock-1080p.conf @@ -153,7 +153,7 @@ label { # see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock label { monitor = - text = cmd[update:3600000] [ -f ~/.cache/.weather_cache ] && cat ~/.cache/.weather_cache + text = cmd[update:3600000] [ -f "$HOME/.cache/.weather_cache" ] && cat "$HOME/.cache/.weather_cache" color = $color13 font_size = 16 font_family = Victor Mono Bold Oblique diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 9edb3088..bfeda4ab 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -153,7 +153,7 @@ label { # see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock label { monitor = - text = cmd[update:3600000] [ -f ~/.cache/.weather_cache ] && cat ~/.cache/.weather_cache + text = cmd[update:3600000] [ -f "$HOME/.cache/.weather_cache" ] && cat "$HOME/.cache/.weather_cache" color = $color13 font_size = 18 font_family = Victor Mono Bold Oblique diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index 4d62775d..7f92ce7d 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -21,7 +21,7 @@ swww="swww img" effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" # Check if a marker file exists. -if [ ! -f ~/.config/hypr/.initial_startup_done ]; then +if [ ! -f "$HOME/.config/hypr/.initial_startup_done" ]; then sleep 1 # Initialize wallust and wallpaper if [ -f "$wallpaper" ]; then @@ -60,7 +60,7 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then # Create a marker file to indicate that the script has been executed. - touch ~/.config/hypr/.initial_startup_done + touch "$HOME/.config/hypr/.initial_startup_done" exit fi diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh index 4f49d47a..477e5cd3 100755 --- a/config/hypr/scripts/Animations.sh +++ b/config/hypr/scripts/Animations.sh @@ -12,7 +12,7 @@ iDIR="$HOME/.config/swaync/images" SCRIPTSDIR="$HOME/.config/hypr/scripts" animations_dir="$HOME/.config/hypr/animations" UserConfigs="$HOME/.config/hypr/UserConfigs" -rofi_theme="~/.config/rofi/config-Animations.rasi" +rofi_theme="$HOME/.config/rofi/config-Animations.rasi" msg='❗NOTE:❗ This will copy animations into UserAnimations.conf' # list of animation files, sorted alphabetically with numbers first animations_list=$(find -L "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//' | sort -V) diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index 1f82c616..9937b6f4 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -3,7 +3,7 @@ # Clipboard Manager. This script uses cliphist, rofi, and wl-copy. # Variables -rofi_theme="~/.config/rofi/config-clipboard.rasi" +rofi_theme="$HOME/.config/rofi/config-clipboard.rasi" msg='πŸ‘€ **note** CTRL DEL = cliphist del (entry) or ALT DEL - cliphist wipe (all)' # Actions: # CTRL Del to delete an entry diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 662e1954..6ce1526e 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -46,7 +46,7 @@ fi # Function to update theme mode for the next cycle update_theme_mode() { - echo "$next_mode" > ~/.cache/.theme_mode + echo "$next_mode" > "$HOME/.cache/.theme_mode" } # Function to notify user diff --git a/config/hypr/scripts/MonitorProfiles.sh b/config/hypr/scripts/MonitorProfiles.sh index ebab0144..ab124335 100755 --- a/config/hypr/scripts/MonitorProfiles.sh +++ b/config/hypr/scripts/MonitorProfiles.sh @@ -12,8 +12,8 @@ iDIR="$HOME/.config/swaync/images" SCRIPTSDIR="$HOME/.config/hypr/scripts" monitor_dir="$HOME/.config/hypr/Monitor_Profiles" target="$HOME/.config/hypr/monitors.conf" -rofi_theme="~/.config/rofi/config-Monitors.rasi" -msg='❗NOTE:❗ This will overwrite ~/.config/hypr/monitors.conf' +rofi_theme="$HOME/.config/rofi/config-Monitors.rasi" +msg='❗NOTE:❗ This will overwrite $HOME/.config/hypr/monitors.conf' # Define the list of files to ignore ignore_files=( diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index 3d85d6a3..da9da61f 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -2,7 +2,7 @@ # /* ---- πŸ’« https://github.com/JaKooLit πŸ’« ---- */ ## # Variables -rofi_theme="~/.config/rofi/config-emoji.rasi" +rofi_theme="$HOME/.config/rofi/config-emoji.rasi" msg='** note ** πŸ‘€ Click or Return to choose || Ctrl V to Paste' # Check if rofi is already running diff --git a/config/waybar/configs/[TOP] Everforest b/config/waybar/configs/[TOP] Everforest index 6663425b..9d2786c6 100644 --- a/config/waybar/configs/[TOP] Everforest +++ b/config/waybar/configs/[TOP] Everforest @@ -89,8 +89,8 @@ "format-time": "{H}h {M}min", "tooltip": true, "tooltip-format": "{timeTo} {power}w", - "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", - "on-click-right": "~/.config/hypr/scripts/Wlogout.sh", + "on-click-middle": "$HOME/.config/hypr/scripts/ChangeBlur.sh", + "on-click-right": "$HOME/.config/hypr/scripts/Wlogout.sh", }, "cpu#forest": { diff --git a/copy.sh b/copy.sh index ed6cd8b3..5d0013db 100755 --- a/copy.sh +++ b/copy.sh @@ -64,9 +64,10 @@ printf "\n%.0s" {1..1} ####### Announcement echo "${WARNING}A T T E N T I O N !${RESET}" -echo "${SKY_BLUE}This version (v2.3.12) requires nwg-displays!${RESET}" +echo "${SKY_BLUE}This version (v2.3.12) requires nwg-displays and some fonts!${RESET}" +echo "${SKY_BLUE}If you ran through (Distro-Hyprland install scripts), no need to do anything${RESET}" echo "${YELLOW}previous version: Some Keybinds changes${RESET}" -echo "${MAGENTA}Kindly visit KooL Hyprland Own Wiki for the changelog${RESET}" +echo "${MAGENTA}Kindly visit KooL Hyprland Own Wiki for changelogs${RESET}" printf "\n%.0s" {1..1} # Create Directory for Copy Logs @@ -458,8 +459,8 @@ get_backup_dirname() { # Check if the ~/.config/ directory exists if [ ! -d "$HOME/.config" ]; then - echo "${ERROR} - The ~/.config directory does not exist." - exit 1 + echo "${ERROR} - $HOME/.config directory does not exist. Creating it now." + mkdir -p "$HOME/.config" && echo "Directory created successfully." || echo "Failed to create directory." fi printf "${INFO} - copying dotfiles ${SKY_BLUE}first${RESET} part\n" @@ -563,7 +564,7 @@ fi DIR="btop cava hypr Kvantum qt5ct qt6ct swappy wallust wlogout" for DIR_NAME in $DIR; do - DIRPATH=~/.config/"$DIR_NAME" + DIRPATH="$HOME/.config/$DIR_NAME" # Backup the existing directory if it exists if [ -d "$DIRPATH" ]; then @@ -582,7 +583,7 @@ for DIR_NAME in $DIR; do # Copy the new config if [ -d "config/$DIR_NAME" ]; then - cp -r "config/$DIR_NAME/" ~/.config/"$DIR_NAME" 2>&1 | tee -a "$LOG" + cp -r "config/$DIR_NAME/" "$HOME/.config/$DIR_NAME" 2>&1 | tee -a "$LOG" if [ $? -eq 0 ]; then echo "${OK} - Copy of config for ${YELLOW}$DIR_NAME${RESET} completed!" else @@ -644,7 +645,7 @@ FILES_TO_RESTORE=( "WindowRules.conf" ) -DIRPATH=~/.config/"$DIRH" +DIRPATH="$HOME/.config/$DIRH" BACKUP_DIR=$(get_backup_dirname) BACKUP_DIR_PATH="$DIRPATH-backup-$BACKUP_DIR/UserConfigs" @@ -687,7 +688,7 @@ SCRIPTS_TO_RESTORE=( "Weather.sh" ) -DIRSHPATH=~/.config/"$DIRSH" +DIRSHPATH="$HOME/.config/$DIRSH" BACKUP_DIR_PATH_S="$DIRSHPATH-backup-$BACKUP_DIR/UserScripts" if [ -d "$BACKUP_DIR_PATH_S" ]; then @@ -721,12 +722,12 @@ FILES_2_RESTORE=( "hypridle.conf" ) -DIRPATH=~/.config/"$DIR_H" +DIRPATH="$HOME/.config/$DIR_H" BACKUP_DIR=$(get_backup_dirname) BACKUP_DIR_PATH_F="$DIRPATH-backup-$BACKUP_DIR" if [ -d "$BACKUP_DIR_PATH_F" ]; then - echo -e "${NOTE} Restoring some files in ${MAGENTA}~/.config/hypr directory${RESET}..." + echo -e "${NOTE} Restoring some files in ${MAGENTA}$HOME/.config/hypr directory${RESET}..." for FILE_RESTORE in "${FILES_2_RESTORE[@]}"; do BACKUP_FILE="$BACKUP_DIR_PATH_F/$FILE_RESTORE" @@ -762,7 +763,7 @@ if [ -d "$HOME/.config/rofi/themes" ]; then if [ -z "$(ls -A $HOME/.config/rofi/themes)" ]; then echo '/* Dummy Rofi theme */' > "$HOME/.config/rofi/themes/dummy.rasi" fi - ln -snf ~/.config/rofi/themes/* ~/.local/share/rofi/themes/ + ln -snf "$HOME/.config/rofi/themes/"* "$HOME/.local/share/rofi/themes/" # Delete the dummy file if it was created if [ -f "$HOME/.config/rofi/themes/dummy.rasi" ]; then rm "$HOME/.config/rofi/themes/dummy.rasi" @@ -772,18 +773,18 @@ fi printf "\n%.0s" {1..1} # wallpaper stuff -mkdir -p ~/Pictures/wallpapers -if cp -r wallpapers ~/Pictures/; then +mkdir -p $HOME/Pictures/wallpapers +if cp -r wallpapers $HOME/Pictures/; then echo "${OK} Some ${MAGENTA}wallpapers${RESET} copied successfully!" | tee -a "$LOG" else echo "${ERROR} Failed to copy some ${YELLOW}wallpapers${RESET}" | tee -a "$LOG" fi # Set some files as executable -chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" -chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG" +chmod +x "$HOME/.config/hypr/scripts/"* 2>&1 | tee -a "$LOG" +chmod +x "$HOME/.config/hypr/UserScripts/"* 2>&1 | tee -a "$LOG" # Set executable for initial-boot.sh -chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" +chmod +x "$HOME/.config/hypr/initial-boot.sh" 2>&1 | tee -a "$LOG" # Waybar config to symlink & retain based on machine type if hostnamectl | grep -q 'Chassis: desktop'; then @@ -850,12 +851,12 @@ while true; do echo "${OK} Wallpapers downloaded successfully." 2>&1 | tee -a "$LOG" # Check if wallpapers directory exists and create it if not - if [ ! -d ~/Pictures/wallpapers ]; then - mkdir -p ~/Pictures/wallpapers + if [ ! -d "$HOME/Pictures/wallpapers" ]; then + mkdir -p "$HOME/Pictures/wallpapers" echo "${OK} Created wallpapers directory." 2>&1 | tee -a "$LOG" fi - if cp -R Wallpaper-Bank/wallpapers/* ~/Pictures/wallpapers/ >> "$LOG" 2>&1; then + if cp -R Wallpaper-Bank/wallpapers/* "$HOME/Pictures/wallpapers/" >> "$LOG" 2>&1; then echo "${OK} Wallpapers copied successfully." 2>&1 | tee -a "$LOG" rm -rf Wallpaper-Bank 2>&1 # Remove cloned repository after copying wallpapers break @@ -878,10 +879,10 @@ done # CLeaning up of ~/.config/ backups cleanup_backups() { - CONFIG_DIR=~/.config + CONFIG_DIR="$HOME/.config" BACKUP_PREFIX="-backup" - # Loop through directories in ~/.config + # Loop through directories in $HOME/.config for DIR in "$CONFIG_DIR"/*; do if [ -d "$DIR" ]; then BACKUP_DIRS=() diff --git a/upgrade.sh b/upgrade.sh index 687ba69f..8c900f44 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -141,11 +141,11 @@ if version_gt "$latest_version" "$stored_version"; then printf "\n%.0s" {1..2} echo "$NOTE Files or Folders updated successfully to version $latest_version" 2>&1 | tee -a "$LOG" - # Set some files as executable - chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" - chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG" - chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" - + # Set some files as executable + chmod +x "$HOME/.config/hypr/scripts/"* 2>&1 | tee -a "$LOG" + chmod +x "$HOME/.config/hypr/UserScripts/"* 2>&1 | tee -a "$LOG" + # 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" fi -- cgit v1.2.3