diff options
| author | Donald Williams <129223418+dwilliam62@users.noreply.github.com> | 2026-03-31 00:01:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-31 00:01:05 -0400 |
| commit | e4b9059d346e6a6dbd6216cd1fb5e41085bb6e7b (patch) | |
| tree | f0d18c37bbc34801a7bf0a21fe49b4a22aedc57a /scripts | |
| parent | 79d42f055949b59f9c6a8f039eb4c90561b0d2ac (diff) | |
Updating Hyprland to v2.3.22 (#40)
* Updated version to 2.3.22 on development branch
v2.3.21 released on 2/23/26
v2.3.22 next release branch
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/ENVariables.conf
renamed: config/hypr/v2.3.21 -> config/hypr/v2.3.22
* Changed dotfiles name to KoolDots in fastfetch
* Added two new rofi themes
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/rofi/themes/KooL_TokyoNight.rasi
new file: config/rofi/themes/KooL_dwm.rasi
* Fixed new rofi themes
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/rofi/themes/KooL_TokyoNight.rasi
modified: config/rofi/themes/KooL_dwm.rasi
* Added DWM dmenu inspired app menus horiz & vertical
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/rofi/dwm-config-horiz.rasi
new file: config/rofi/dwm-config-vert.rasi
new file: config/rofi/dwm-dmenu-horiz.rasi
new file: config/rofi/dwm-dmenu-vert.rasi
* Had both QT5CT and QT6CT variables
Added style ENV for kvantum
```
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_STYLE_OVERRIDE,kvantum
```
Trying this to see if that allows support for kvantum but not
break existing config
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/ENVariables.conf
* Updated headers with new Project name and add GPLv3 license
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Distro-Hyprland.sh
modified: archive/release.sh
modified: archive/update-dots.sh
modified: archive/upgrade.sh
modified: copy.sh
modified: scripts/copy_menu.sh
modified: scripts/lib_apps.sh
modified: scripts/lib_backup.sh
modified: scripts/lib_copy.sh
modified: scripts/lib_detect.sh
modified: scripts/lib_prompts.sh
modified: scripts/lib_update.sh
* Updated config files and scripts to new Project name and URL
On branch development
Your branch is ahead of 'origin/development' by 1 commit.
(use "git push" to publish your local commits)
Changes to be committed:
modified: config/hypr/UserConfigs/00-Readme
modified: config/hypr/UserConfigs/01-UserDefaults.conf
modified: config/hypr/UserConfigs/ENVariables.conf
modified: config/hypr/UserConfigs/LaptopDisplay.conf
modified: config/hypr/UserConfigs/Laptops.conf
modified: config/hypr/UserConfigs/Startup_Apps.conf
modified: config/hypr/UserConfigs/UserAnimations.conf
modified: config/hypr/UserConfigs/UserDecorations.conf
modified: config/hypr/UserConfigs/UserKeybinds.conf
modified: config/hypr/UserConfigs/UserSettings.conf
modified: config/hypr/UserConfigs/WindowRules.conf
modified: config/hypr/UserConfigs/WorkSpaceRules.conf
modified: config/hypr/UserScripts/00-Readme
modified: config/hypr/UserScripts/RainbowBorders-low-cpu.sh
modified: config/hypr/UserScripts/RainbowBorders.bak.sh
modified: config/hypr/UserScripts/RofiBeats.sh
modified: config/hypr/UserScripts/RofiCalc.sh
modified: config/hypr/UserScripts/Tak0-Autodispatch.sh
modified: config/hypr/UserScripts/WallpaperAutoChange.sh
modified: config/hypr/UserScripts/WallpaperEffects.sh
modified: config/hypr/UserScripts/WallpaperRandom.sh
modified: config/hypr/UserScripts/WallpaperSelect.sh
modified: config/hypr/UserScripts/Weather.py
modified: config/hypr/UserScripts/Weather.sh
modified: config/hypr/UserScripts/WeatherWrap.sh
modified: config/hypr/UserScripts/ZshChangeTheme.sh
modified: config/hypr/configs/ENVariables.conf
modified: config/hypr/configs/Keybinds.conf
modified: config/hypr/configs/Laptops.conf
modified: config/hypr/configs/Startup_Apps.conf
modified: config/hypr/configs/SystemSettings.conf
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules-pre-53.conf
modified: config/hypr/configs/WindowRules.conf
modified: config/hypr/scripts/AirplaneMode.sh
modified: config/hypr/scripts/Animations.sh
modified: config/hypr/scripts/Battery.sh
modified: config/hypr/scripts/Brightness.sh
modified: config/hypr/scripts/BrightnessKbd.sh
modified: config/hypr/scripts/ChangeBlur.sh
modified: config/hypr/scripts/ChangeLayout.sh
modified: config/hypr/scripts/ClipManager.sh
modified: config/hypr/scripts/DarkLight.sh
modified: config/hypr/scripts/Distro_update.sh
modified: config/hypr/scripts/Dropterminal.sh
modified: config/hypr/scripts/GameMode.sh
modified: config/hypr/scripts/Hypridle.sh
modified: config/hypr/scripts/Hyprsunset.sh
modified: config/hypr/scripts/KeyBinds.sh
modified: config/hypr/scripts/KeyHints.sh
modified: config/hypr/scripts/KeybindsLayoutInit.sh
modified: config/hypr/scripts/KeyboardLayout.sh
modified: config/hypr/scripts/KillActiveProcess.sh
modified: config/hypr/scripts/Kitty_themes.sh
modified: config/hypr/scripts/KooLsDotsUpdate.sh
modified: config/hypr/scripts/Kool_Quick_Settings.sh
modified: config/hypr/scripts/LockScreen.sh
modified: config/hypr/scripts/MediaCtrl.sh
modified: config/hypr/scripts/MonitorProfiles.sh
modified: config/hypr/scripts/OverviewToggle.sh
modified: config/hypr/scripts/Polkit-NixOS.sh
modified: config/hypr/scripts/Polkit.sh
modified: config/hypr/scripts/PortalHyprland.sh
modified: config/hypr/scripts/PortalHyprlandUbuntu2604.sh
modified: config/hypr/scripts/Refresh.sh
modified: config/hypr/scripts/RefreshNoWaybar.sh
modified: config/hypr/scripts/RofiEmoji.sh
modified: config/hypr/scripts/RofiSearch.sh
modified: config/hypr/scripts/RofiThemeSelector-modified.sh
modified: config/hypr/scripts/RofiThemeSelector.sh
modified: config/hypr/scripts/ScreenShot.sh
modified: config/hypr/scripts/Sounds.sh
modified: config/hypr/scripts/Tak0-Autodispatch.sh
modified: config/hypr/scripts/Tak0-Per-Window-Switch.sh
modified: config/hypr/scripts/ThemeChanger.sh
modified: config/hypr/scripts/Toggle-Active-Window-Audio.sh
modified: config/hypr/scripts/Toggle-weather-waybar-units.sh
modified: config/hypr/scripts/TouchPad.sh
modified: config/hypr/scripts/UptimeNixOS.sh
modified: config/hypr/scripts/UserConfigsSwitcher.sh
modified: config/hypr/scripts/Volume.sh
modified: config/hypr/scripts/WallustSwww.sh
modified: config/hypr/scripts/WaybarCava.sh
modified: config/hypr/scripts/WaybarLayout.sh
modified: config/hypr/scripts/WaybarScripts.sh
modified: config/hypr/scripts/WaybarStyles.sh
modified: config/hypr/scripts/Wlogout.sh
modified: config/hypr/scripts/hyprshot.sh
modified: config/hypr/scripts/install-uv.sh
modified: config/hypr/scripts/keybinds_parser.py
modified: config/hypr/scripts/sddm_wallpaper.sh
modified: config/hypr/scripts/update_WindowRules.sh
* Added "No color" theme to Kitty, changed default to 01-Wallust.conf
This will maintain current feature of following wallust colors by
default
But user can select "no color" if they desire it
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/Kitty_themes.sh
modified: config/kitty/kitty-themes/00-Default.conf
modified: config/kitty/kitty.conf
* Added custom module for External Brightness control
For External Monitors via DDCUTIL / EDID
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/hypr/scripts/ExternalBrightness.sh
modified: config/waybar/ModulesCustom
* Updating ExternalBrightness script to hopefully better detect monitors
Currently my monitor isn't showing support for brightness
So I can't fully test this code right now
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/ExternalBrightness.sh
* Switching wallust color references to avoid washed out colors
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Wallust-ML4W-modern.css
* Fixed colors to use different wallust colors
Widgets were getting washed out
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Dark-Latte-Wallust-combined-v2.css
* Fixing opactity and color issues in Dark-Latte-Wallust-combined*
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Dark-Latte-Wallust-combined-v2.css
modified: config/waybar/style/Dark-Latte-Wallust-combined.css
* Adding fixes applied to the other wallust style sheets to these
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Wallust-Bordered-Chroma-Fusion-Edge.css
modified: config/waybar/style/Wallust-Chroma-Edge.css
modified: config/waybar/style/Wallust-Chroma-Fusion.css
modified: config/waybar/style/Wallust-ML4W-modern-mixed.css
* Updted CHANGELOG
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
* Updated CHANGELOG
* Changed proj name in CHANGELOG
* Fix: UserConfig updates were being removed on updates
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: scripts/lib_backup.sh
modified: scripts/lib_copy.sh
* Fix: Syntax error in copy.sh
* Updated ubuntu portal check for all ubuntu versions, common variants
The hyprland portals have to be manually started on recent ubuntu
distros. otherwise waybar never loads
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Startup_Apps.conf
renamed: config/hypr/scripts/PortalHyprlandUbuntu2604.sh -> config/hypr/scripts/PortalHyprlandUbuntu.sh
* Togglesplit being replaced by layoutmsg Togglesplit
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
modified: config/hypr/scripts/ChangeLayout.sh
* Update Ukrainian README translation (#22)
* Fixed Hyprshotsh output directory
* Adding scrolling to ChangeLayout script
Requires HL v0.54+
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/ChangeLayout.sh
* Fixed type, added two bindings for scrolling
bindd = $mainMod SHIFT, period, move column, layoutmsg, move +col
bindd = $mainMod SHIFT, comma, swap columns, layoutmsg, swapcol l
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Keybinds.conf
* Updated CHANGELOG
* Creating script to set the default terminal to kitty for thunar
Also creates shim for xterm for other programs that might call xterm
and as fallback
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/hypr/scripts/set-default-thunar-terminal.sh
* Fixing terminal not found and remove kitty URL handler entry
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/set-default-thunar-terminal.sh
* Fixing wallust to be more consistent and faster
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserScripts/WallpaperRandom.sh
modified: config/hypr/scripts/Refresh.sh
modified: config/hypr/scripts/RefreshNoWaybar.sh
modified: config/hypr/scripts/WallustSwww.sh
* Trying to fix rofi/waybar colors contrast to fix dark on dark colors
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/WallustSwww.sh
modified: config/waybar/style/Wallust-Box-type.css
* Fixing inconsistent colors in Wallust-Bordered-Chroma-Simple file
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css
* Fixing styling issues in waybar
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css
* Fixing style sheet #2
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css
* FIXED: style sheet no more pink on pink widgets
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/style/Wallust-Bordered-Chroma-Simple.css
* Updted Changelog
* Added scrolling options and scrolling keybinds
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: configs/Keybinds.conf
modified: configs/SystemSettings.conf
* Updated CHANGELOG with scrolling keybinds
On branch development
Your branch is ahead of 'origin/development' by 1 commit.
(use "git push" to publish your local commits)
Changes to be committed:
modified: CHANGELOG.md
* Added more scrolling bindings
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
* Fixed scrolling keybinds
* Updated layerrule for rofi to turn off blur
It's commented out in WindowRules files with comment on how to enable
and why
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserConfigs/WindowRules.conf
modified: config/hypr/configs/WindowRules.conf
* Trying new settings for cursor and master / dwindle layouts
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/SystemSettings.conf
* Adding addtional layerrules to test
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules.conf
* Updated gestures - corrected layout and added new gestures
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/SystemSettings.conf
* Fixed duplicate gesture for up motion
* Added monocle layout
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/SystemSettings.conf
modified: config/hypr/scripts/ChangeLayout.sh
* Fixing Monocle settings
* Fixing Monocle settings x2
* Updated CHANGELOG fixed monocle settings
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/configs/SystemSettings.conf
* Making sure UserConfigs dir entries not deleted from 2.3.19+
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: scripts/lib_copy.sh
* Fixed package name for waybar-weather
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: scripts/lib_apps.sh
* Updated CHANGELOG
* Added check for waybar-weather installed local binary or AUR
If local static binary then it will remove it and install from AUR
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: scripts/lib_apps.sh
* Update gestures on hyprland
* Added script to set ghostty theme to Quick settings
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
modified: config/ghostty/ghostty.config
new file: config/hypr/scripts/Ghostty_themes.sh
modified: config/hypr/scripts/Kool_Quick_Settings.sh
* Created dedicated rofi theme for ghostty added license/URL info
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/ghostty/ghostty.config
modified: config/hypr/scripts/Ghostty_themes.sh
new file: config/rofi/config-ghostty-theme.rasi
* fix: hypr windowrules for qalculate gtk
* Updted all float toggle with script to replace depreciated cmd
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
* Updated CHANGELOG
* Trying different ghostty fonts
* Moved Float-all-Windows command string to script
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/configs/Keybinds.conf
new file: config/hypr/scripts/Float-all-Windows.sh
* Made Float-all-Windows script executable
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Float-all-Windows.sh
* Trying to fix dropdown terminal dropping down again on hide
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Adding logging to Dropterminal
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Adding monitor info to better handle dropdown and other hardening
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Adding more debug info
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Changing sequence move to special workspace b4 pinning
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Fixed flashing but now doesn't hide completely
Redid pinning logic to adjust that
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Added kitty-dropdown class and improved handling
Hopefully this will fix the issue
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: ../configs/Startup_Apps.conf
modified: Dropterminal.sh
* Hopefully this fixes the hide issue
Hyprland reports the visible special workspace name as either special:scratchpad or scratchpad depending on context. My visibility check only matched the former, so the hide toggle didn’t always turn it off—hence the sliver.
I updated the visibility check to accept either name.
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Visibility check was a bust
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Using special workspace isn't working
Trying new approach
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Fixed syntax error on local outside of the function
Getting closer (I hope)
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Fixed issue where first toggle didn't drop down terminal
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Adding a state file to resolve not dropping down on first activation
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Dropterminal.sh
* Updated CHANGELOG on Dropdown terminal fix
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
* Renamed ghostty config to proper cfgname
* Dynamic Handling of WindowRules.conf (#24)
Need to set 0.53 to WindowRules.conf
* Synced WindowRules-config-v3 to WindowRules.conf layyerrules
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: WindowRules-config-v3.conf
modified: WindowRules.conf
* Improved layout toggleing and added Keybinds to set mode individually
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
modified: config/hypr/configs/WindowRules.conf
modified: config/hypr/scripts/ChangeLayout.sh
* Fixing layout for SUPER J/K and SUPER arrow keys
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: hypr/scripts/ChangeLayout.sh
modified: hypr/scripts/KeybindsLayoutInit.sh
* Added fixes for layout cycling with SUPER J/K and SUPER ARROWS
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/ChangeLayout.sh
new file: config/hypr/scripts/HyprlandCycleWindow.sh
modified: config/hypr/scripts/KeybindsLayoutInit.sh
* Fixing script had extra unbind for SUPER J/K
Implementing the single script to set layout and proper bingings
in one step
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/ChangeLayout.sh
deleted: config/hypr/scripts/HyprlandCycleWindow.sh
modified: config/hypr/scripts/KeybindsLayoutInit.sh
* Still fixing J/K for all modes and super ARROW also
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
modified: config/hypr/scripts/ChangeLayout.sh
* moved to lower case to resolve SUPER J/K
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
modified: config/hypr/scripts/KeybindsLayoutInit.sh
* Once more try to get dwindle/scrolling binds working
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/ChangeLayout.sh
* Removed hyprland if statement is loads wrong file on v0.54.1
I don't want to make gated rules and update them on every HL update.
v0.53 is available, users of 0.52.x should upgrade or copy the older rev
file manually
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules.conf
* WindowRules had CTRL-B character at end
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules.conf
* Added Antigravity icon to waybar
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/ModulesWorkspaces
* Added keybind search script and rofi menu for emacs
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/hypr/scripts/rofi-emacs-keybinds
new file: config/rofi/config-emacs-keybinds.rasi
* Added icon for emacs for waybar
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/ModulesWorkspaces
* Fixed screenshot delay issues added icon for nautilus
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/ScreenShot.sh
modified: config/waybar/ModulesWorkspaces
* Added icon for nautilus and terminal with RED X for apps w/o icons
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/ModulesWorkspaces
* Updated Sounds.sh to play sound directly
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: ../../../CHANGELOG.md
modified: ScreenShot.sh
modified: Sounds.sh
* Updated CHANGELOG
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
* FIXED long delay updating theme colors when changing wallpaper
Wallust was being run multiple times
also made updates to ghostty / kitty more asynchronous
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/WallustSwww.sh
* Updated CHANGELOG
On branch development
Your branch is ahead of 'origin/development' by 1 commit.
(use "git push" to publish your local commits)
Changes to be committed:
modified: CHANGELOG.md
* Added WallpaperDaemon to use awww if available fallback swww
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/configs/Startup_Apps.conf
new file: config/hypr/scripts/WallpaperDaemon.sh
* SWWW archived, using AWWW updated scripts to prefer AWWW if installed
Next will be to update all the Distro-Hyprland to install AWWW
NixOS-Hyprland is already done
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserScripts/WallpaperAutoChange.sh
modified: config/hypr/UserScripts/WallpaperEffects.sh
modified: config/hypr/UserScripts/WallpaperRandom.sh
modified: config/hypr/UserScripts/WallpaperSelect.sh
modified: config/hypr/initial-boot.sh
modified: config/hypr/scripts/DarkLight.sh
modified: config/hypr/scripts/GameMode.sh
modified: config/hypr/scripts/KeyHints.sh
modified: config/hypr/scripts/WallpaperDaemon.sh
modified: config/hypr/scripts/WallustSwww.sh
* Added icon for NVIDIA settings app and Centered/floating rule
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules.conf
modified: config/waybar/ModulesWorkspaces
* Tuned ddubs simple waybar config
* waybar: change thunderbird and gemini icons
* waybar: fix gemini waybar
* Added icon for mainline kernel mgr and Window rule for it
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules.conf
modified: config/waybar/ModulesWorkspaces
* Added new fastfetches for Arch, fedora, ubuntu, Gentoo
Looking for openSuse and debian logos
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: images/Arch-Logo-1.png
new file: images/Arch-Logo-2.png
new file: images/fedora.png
new file: images/gentoo-abducted-1600x1200.png
new file: images/gentoo1.png
new file: images/gentoo2.png
new file: images/gentoo3.png
new file: images/ubuntu.jpeg
new file: images/ubuntu.png
new file: kooldots-arch.jsonc
new file: kooldots-fedora.jsonc
new file: kooldots-gentoo.jsonc
new file: kooldots-ubuntu.jsonc
* Added copy.sh vs. TUI first pass analysis
* WallpaperSelect upd shows names for current/random wallpapers
Thank you S3cBar0n https://github.com/S3cBar0n
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/UserScripts/WallpaperSelect.sh
* Fixing wallpaper select
* Added fastfetches w/logos need one for OpenSuse
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/fastfetch/images/debian_swirl.png
deleted: config/fastfetch/images/gentoo-abducted-1600x1200.png
deleted: config/fastfetch/images/gentoo3.png
new file: config/fastfetch/images/nixos.png
new file: config/fastfetch/kooldots-debian.jsonc
new file: config/fastfetch/kooldots-nixos.jsonc
* Changed Arch to alternate fastfetch logo
* Building fastfetch wrapper to call distro logo
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/hypr/scripts/fastfetch-wrapper.sh
* Added ghostty config to the backup / restore process
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: copy.sh
modified: scripts/lib_apps.sh
modified: scripts/lib_copy.sh
* Updated CHANGELOG
* docs: update readme (#30)
* docs(README): clean up structure, fix typos, and improve clarity
* docs(README): fix anchor
* docs(README): remove some emojis
* docs(README): remove some emojis
* docs(README): update discord url
* docs(README): update youtube links
* docs(README): fix discord link
* docs(README): add Legacy Jak videos
* docs(README): fix spacing
* docs(README): fix unnecesary list
* fix: NVIDIA url
* Preliminary review of tasks for HL LUA conversion
List current scripts that do and do not modify hyprland configuration files
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: Hyprland-LUA-analysis-Phase1.md
* fix: change cursor config on tablets
* Updated CHANGELOG on enabling cursor on tablet
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
* Added gitnuro icon to ModulesWorkspaces
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/ModulesWorkspaces
renamed: Hyprland-LUA-analysis-Phase1.md -> docs/Hyprland-LUA-analysis-Phase1.md
renamed: copy.sh-tui-analysis-3-14-2026.md -> docs/copy.sh-tui-analysis-3-14-2026.md
* Fix: restore wallpaper failed, garbage character filename
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserScripts/WallpaperSelect.sh
modified: config/hypr/scripts/WallpaperDaemon.sh
* Fixing wallpaper restore issue
Fixed bad filename / symlink issue but WP not being restored on login
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/WallpaperDaemon.sh
* Trying a different fix for WP restore
* updated ModulesWorkspaces with boxxy-terminal icon
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/waybar/ModulesWorkspaces
* Merged in converion to awww code
this is Phase 2. Scripts check for awww or swww
Once this is tested need to add migration function
to clear the swww cache otherwise some colors weren't updated on
wallpaper change
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: build-awww.sh
modified: config/hypr/UserScripts/WallpaperRandom.sh
modified: config/hypr/UserScripts/WallpaperSelect.sh
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules.conf
modified: config/hypr/scripts/DarkLight.sh
modified: config/hypr/scripts/GameMode.sh
new file: config/hypr/scripts/WallpaperCmd.sh
modified: config/hypr/scripts/WallpaperDaemon.sh
* Added a check if awww cache has been cleared already
Looks for ~/.cache/awww/.cache_cleared otherwise runs `awww clear-cache`
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/WallpaperCmd.sh
* Fixed syntax errors
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserScripts/WallpaperSelect.sh
modified: config/hypr/scripts/WallpaperCmd.sh
* Fixed swww vs awww handling made WallpaperDaemon executable
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserScripts/WallpaperEffects.sh
modified: config/hypr/UserScripts/WallpaperRandom.sh
modified: config/hypr/UserScripts/WallpaperSelect.sh
modified: config/hypr/scripts/WallpaperDaemon.sh
* Fixed build-awww script
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: build-awww.sh
* Fixed distro detection bug
* Moved build-awww.sh to
* WallpaperCmd.sh wasn't executable
* build-awww wasn't added
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: scripts/build-awww.sh
* Add ghostty/wezterm to terminal window WindowRules
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules.conf
* Crtical fix to restore polkit function
This and addtional packages are needed to allow polit to elevate
permission for GUI apps
More updates likely but making sure these fixes are included
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/Polkit.sh
* Fixing polkit startup for NixOS
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/Polkit-NixOS.sh
* resolving Polkit startup caused issue with arch
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/Polkit.sh
* Added hyprpolkitagent override to archlinux installer
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/systemd/user/hyprpolkitagent.service.d/override.conf
modified: copy.sh
* Updated Window Rules for xfce polkit diaglog window
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserConfigs/WindowRules.conf
modified: config/hypr/configs/WindowRules-config-v3.conf
modified: config/hypr/configs/WindowRules.conf
* xfce4-polkit not in debian repo adding mate-polkit as alternative
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/WindowRules.conf
modified: config/hypr/scripts/Polkit.sh
* Added Window Rule for kwallet manager
* Fixing calculator window rule
* fix kitty font style mix-up of bold and regular (#38)
* Updated CHANGELOG, kitty font fix
* Added rofi-ssh-menu SUPER+S to pull .ssh/config entries
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Keybinds.conf
new file: config/hypr/scripts/rofi-ssh-menu.sh
* Fixed duplicate keybind
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Keybinds.conf
* Added script to disable cpu turbo and set power settings
CPU turbo will often spin up the fan, leave it high the slowly
drop the fan speed. Very noisy. 11th/12th gen notorious for this
Should be added to User Startup as needed
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
new file: config/hypr/scripts/disable.cpu.turbo.sh
---------
Co-authored-by: brockar <martin@mguz.dev>
Co-authored-by: Vyle <121424993+IvyProtocol@users.noreply.github.com>
Co-authored-by: Martin Guzman <55927935+brockar@users.noreply.github.com>
Co-authored-by: Jason Schuehlein <34405484+JasonNero@users.noreply.github.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/copy_menu.sh | 6 | ||||
| -rw-r--r-- | scripts/lib_apps.sh | 52 | ||||
| -rw-r--r-- | scripts/lib_backup.sh | 14 | ||||
| -rw-r--r-- | scripts/lib_copy.sh | 94 | ||||
| -rw-r--r-- | scripts/lib_detect.sh | 6 | ||||
| -rw-r--r-- | scripts/lib_prompts.sh | 6 | ||||
| -rw-r--r-- | scripts/lib_update.sh | 6 |
7 files changed, 143 insertions, 41 deletions
diff --git a/scripts/copy_menu.sh b/scripts/copy_menu.sh index 87f9301f..47843205 100755 --- a/scripts/copy_menu.sh +++ b/scripts/copy_menu.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # show_copy_menu # Arguments: diff --git a/scripts/lib_apps.sh b/scripts/lib_apps.sh index f19fd75a..9472831d 100644 --- a/scripts/lib_apps.sh +++ b/scripts/lib_apps.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # App enablement and editor selection helpers. enable_asusctl() { @@ -67,10 +73,18 @@ install_terminal_configs() { local base="${DOTFILES_DIR:-.}" # Ghostty - local GHOSTTY_SRC="$base/config/ghostty/ghostty.config" + local GHOSTTY_SRC="$base/config/ghostty/config" local GHOSTTY_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/ghostty" local GHOSTTY_DEST="$GHOSTTY_DIR/config" if [ -f "$GHOSTTY_SRC" ]; then + if [ -d "$GHOSTTY_DIR" ]; then + BACKUP_DIR=$(get_backup_dirname) + local GHOSTTY_BACKUP="$GHOSTTY_DIR-backup-$BACKUP_DIR" + if [ ! -d "$GHOSTTY_BACKUP" ]; then + cp -a "$GHOSTTY_DIR" "$GHOSTTY_BACKUP" 2>&1 | tee -a "$log" + echo "${NOTE:-[NOTE]} - Backed up Ghostty config to $GHOSTTY_BACKUP." 2>&1 | tee -a "$log" + fi + fi mkdir -p "$GHOSTTY_DIR" install -m 0644 "$GHOSTTY_SRC" "$GHOSTTY_DEST" 2>&1 | tee -a "$log" if [ -f "$GHOSTTY_DIR/wallust.conf" ]; then @@ -140,14 +154,32 @@ install_waybar_weather_binary() { return 0 fi + # Sudo handling for /usr/bin and /usr/local/bin + local SUDO="" + if [[ $EUID -ne 0 ]]; then + if command -v sudo >/dev/null 2>&1; then + SUDO="sudo" + else + _err "sudo not available; cannot write to ${INSTALL_PATH} as non-root" + return 1 + fi + fi + if grep -qi '^ID=arch' /etc/os-release 2>/dev/null; then - if command -v pacman >/dev/null 2>&1 && pacman -Qi weather-waybar >/dev/null 2>&1; then - _log "weather-waybar already installed via pacman." + if command -v pacman >/dev/null 2>&1 && pacman -Qi waybar-weather >/dev/null 2>&1; then + _log "waybar-weather already installed via pacman." return 0 fi + + # If no package is installed but a static binary exists, remove it before AUR install + if [ -x /usr/bin/waybar-weather ] || [ -x /usr/local/bin/waybar-weather ]; then + _log "Removing waybar-weather static binary" + ${SUDO} rm -f /usr/bin/waybar-weather /usr/local/bin/waybar-weather || _warn "Failed to remove existing waybar-weather binary." + fi + if command -v yay >/dev/null 2>&1; then - _log "Attempting to install AUR package 'weather-waybar' via yay" - if yay -S --noconfirm weather-waybar; then + _log "Attempting to install AUR package 'waybar-weather' via yay" + if yay -S --noconfirm waybar-weather; then _log "AUR install succeeded." return 0 else @@ -168,16 +200,6 @@ install_waybar_weather_binary() { return 1 fi - # Sudo handling for /usr/bin - local SUDO="" - if [[ $EUID -ne 0 ]]; then - if command -v sudo >/dev/null 2>&1; then - SUDO="sudo" - else - _err "sudo not available; cannot write to ${INSTALL_PATH} as non-root" - return 1 - fi - fi _log "Installing prebuilt binary to ${INSTALL_PATH} from ${ASSET}" if ${SUDO} sh -c "tmp=\$(mktemp '${INSTALL_PATH}.XXXXXX') && gzip -dc '$ASSET' > \"\$tmp\" && chmod 0755 \"\$tmp\" && mv -f \"\$tmp\" '${INSTALL_PATH}'"; then diff --git a/scripts/lib_backup.sh b/scripts/lib_backup.sh index 6867fb6d..b6f54f6a 100644 --- a/scripts/lib_backup.sh +++ b/scripts/lib_backup.sh @@ -1,9 +1,21 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # Backup helper utilities shared by copy.sh (and future scripts). # Create a unique backup directory name with month, day, hours, and minutes. get_backup_dirname() { - echo "back-up_$(date +"%m%d_%H%M")" + if [ -n "${BACKUP_DIR:-}" ]; then + echo "$BACKUP_DIR" + return + fi + BACKUP_DIR="back-up_$(date +"%m%d_%H%M")" + export BACKUP_DIR + echo "$BACKUP_DIR" } # Move a directory to a timestamped backup alongside the original. diff --git a/scripts/lib_copy.sh b/scripts/lib_copy.sh index 58fbe066..f6d4cdd2 100644 --- a/scripts/lib_copy.sh +++ b/scripts/lib_copy.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # Copy helpers split into phases to keep copy.sh lean. copy_phase1() { @@ -216,15 +222,15 @@ cleanup_duplicate_userconfigs() { return fi - # Run de-dupe only for existing installs up to and including v2.3.19. - # For v2.3.20 and newer, the underlying duplication bug is fixed and - # this cleanup is no longer needed (and might mask future issues). - if version_gte "$current_version" "2.3.20"; then - echo "${INFO:-[INFO]} Skipping UserConfigs duplicate cleanup for detected version v$current_version (>= 2.3.20)." 2>&1 | tee -a "$log" + # Run de-dupe only for existing installs up to and including v2.3.18. + # For v2.3.19 and newer, UserConfigs should be left as-is to avoid + # removing user modifications. + if version_gte "$current_version" "2.3.19"; then + echo "${INFO:-[INFO]} Skipping UserConfigs duplicate cleanup for detected version v$current_version (>= 2.3.19)." 2>&1 | tee -a "$log" return fi - echo "${INFO:-[INFO]} Running UserConfigs duplicate cleanup for detected version v$current_version (<= 2.3.19)." 2>&1 | tee -a "$log" + echo "${INFO:-[INFO]} Running UserConfigs duplicate cleanup for detected version v$current_version (<= 2.3.18)." 2>&1 | tee -a "$log" local HYPR_DIR="$HOME/.config/hypr" local BASE_DIR="$HYPR_DIR/configs" @@ -342,6 +348,9 @@ restore_user_configs() { local log="$1" local express_mode="$2" local old_version="$3" + if [ "${RUN_MODE:-}" = "install" ]; then + return + fi local DIRPATH="$HOME/.config/hypr" local BACKUP_DIR @@ -353,15 +362,7 @@ restore_user_configs() { exit 1 fi - # In express mode we still want to run the de-dupe logic, but we skip - # the interactive restoration prompts so the workflow stays non-blocking. - local SKIP_RESTORE_PROMPTS=0 - if [ -d "$BACKUP_DIR_PATH" ] && [ "$express_mode" -eq 1 ]; then - echo "${NOTE:-[NOTE]} Express mode: skipping UserConfigs restoration prompts." 2>&1 | tee -a "$log" - SKIP_RESTORE_PROMPTS=1 - fi - - if [ -d "$BACKUP_DIR_PATH" ] && [ "$SKIP_RESTORE_PROMPTS" -eq 0 ]; then + if [ -d "$BACKUP_DIR_PATH" ]; then local VERSION_FILE VERSION_FILE=$(find "$DIRPATH" -maxdepth 1 -name "v*.*.*" | head -n 1) local CURRENT_VERSION="999.9.9" @@ -370,6 +371,10 @@ restore_user_configs() { fi local TARGET_VERSION="2.3.19" + local AUTO_RESTORE=0 + if version_gte "$CURRENT_VERSION" "2.3.18"; then + AUTO_RESTORE=1 + fi echo -e "${NOTE:-[NOTE]} Restoring previous ${MAGENTA:-}User-Configs${RESET:-}... " 2>&1 | tee -a "$log" printf "${WARNING:-}\\ @@ -382,13 +387,19 @@ restore_user_configs() { " >&2 if version_gte "$CURRENT_VERSION" "$TARGET_VERSION"; then - read -r -p "${CAT:-[ACTION]} Do you want to restore your previous UserConfigs directory? (Y/n): " restore_userconfigs_dir - if [[ "$restore_userconfigs_dir" != [Nn]* ]]; then - echo "${NOTE:-[NOTE]} Restoring UserConfigs directory..." 2>&1 | tee -a "$log" + if [ "$express_mode" -eq 1 ] || [ "$AUTO_RESTORE" -eq 1 ]; then + echo "${NOTE:-[NOTE]} Restoring UserConfigs directory automatically." 2>&1 | tee -a "$log" rsync -a "$BACKUP_DIR_PATH/" "$DIRPATH/UserConfigs/" 2>&1 | tee -a "$log" echo "${OK:-[OK]} - UserConfigs directory restored." 2>&1 | tee -a "$log" else - echo "${NOTE:-[NOTE]} - Skipped restoring UserConfigs." 2>&1 | tee -a "$log" + read -r -p "${CAT:-[ACTION]} Do you want to restore your previous UserConfigs directory? (Y/n): " restore_userconfigs_dir + if [[ "$restore_userconfigs_dir" != [Nn]* ]]; then + echo "${NOTE:-[NOTE]} Restoring UserConfigs directory..." 2>&1 | tee -a "$log" + rsync -a "$BACKUP_DIR_PATH/" "$DIRPATH/UserConfigs/" 2>&1 | tee -a "$log" + echo "${OK:-[OK]} - UserConfigs directory restored." 2>&1 | tee -a "$log" + else + echo "${NOTE:-[NOTE]} - Skipped restoring UserConfigs." 2>&1 | tee -a "$log" + fi fi else echo -e "${NOTE:-[NOTE]} Detected version ${YELLOW:-}v$CURRENT_VERSION${RESET:-} (older than v$TARGET_VERSION). Using legacy restoration mode." 2>&1 | tee -a "$log" @@ -419,18 +430,25 @@ restore_user_configs() { echo "${OK:-[OK]} - Migrated overlay for ${YELLOW:-}$FILE_NAME${RESET:-}" 2>&1 | tee -a "$log" continue fi - - printf "\n${INFO:-[INFO]} Found ${YELLOW:-}$FILE_NAME${RESET:-} in hypr backup...\n" - read -r -p "${CAT:-[ACTION]} Do you want to restore ${YELLOW:-}$FILE_NAME${RESET:-} from backup? (Y/n): " file_restore - - if [[ "$file_restore" != [Nn]* ]]; then + if [ "$express_mode" -eq 1 ] || [ "$AUTO_RESTORE" -eq 1 ]; then if cp "$BACKUP_FILE" "$DIRPATH/UserConfigs/$FILE_NAME"; then echo "${OK:-[OK]} - $FILE_NAME restored!" 2>&1 | tee -a "$log" else echo "${ERROR:-[ERROR]} - Failed to restore $FILE_NAME!" 2>&1 | tee -a "$log" fi else - echo "${NOTE:-[NOTE]} - Skipped restoring $FILE_NAME." 2>&1 | tee -a "$log" + printf "\n${INFO:-[INFO]} Found ${YELLOW:-}$FILE_NAME${RESET:-} in hypr backup...\n" + read -r -p "${CAT:-[ACTION]} Do you want to restore ${YELLOW:-}$FILE_NAME${RESET:-} from backup? (Y/n): " file_restore + + if [[ "$file_restore" != [Nn]* ]]; then + if cp "$BACKUP_FILE" "$DIRPATH/UserConfigs/$FILE_NAME"; then + echo "${OK:-[OK]} - $FILE_NAME restored!" 2>&1 | tee -a "$log" + else + echo "${ERROR:-[ERROR]} - Failed to restore $FILE_NAME!" 2>&1 | tee -a "$log" + fi + else + echo "${NOTE:-[NOTE]} - Skipped restoring $FILE_NAME." 2>&1 | tee -a "$log" + fi fi fi done @@ -489,6 +507,32 @@ restore_user_scripts() { fi } +restore_terminal_configs() { + local log="$1" + local express_mode="$2" + + local GHOSTTY_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/ghostty" + local BACKUP_DIR + BACKUP_DIR=$(get_backup_dirname) + local GHOSTTY_BACKUP="$GHOSTTY_DIR-backup-$BACKUP_DIR" + + if [ -d "$GHOSTTY_BACKUP" ] && [ "$express_mode" -eq 1 ]; then + echo "${NOTE:-[NOTE]} Express mode: skipping Ghostty restore prompt." 2>&1 | tee -a "$log" + return + fi + + if [ -d "$GHOSTTY_BACKUP" ] && [ "$express_mode" -eq 0 ]; then + echo -e "${NOTE:-[NOTE]} Restore previous ${MAGENTA:-}Ghostty${RESET:-} config?" 2>&1 | tee -a "$log" + read -r -p "${CAT:-[ACTION]} Do you want to restore Ghostty config from backup? (y/N): " restore_ghostty + if [[ "$restore_ghostty" == [Yy]* ]]; then + rm -rf "$GHOSTTY_DIR" + cp -a "$GHOSTTY_BACKUP" "$GHOSTTY_DIR" 2>&1 | tee -a "$log" + echo "${OK:-[OK]} - Ghostty config restored." 2>&1 | tee -a "$log" + else + echo "${NOTE:-[NOTE]} - Skipped restoring Ghostty config." 2>&1 | tee -a "$log" + fi + fi +} restore_hypr_files() { local log="$1" local express_mode="$2" diff --git a/scripts/lib_detect.sh b/scripts/lib_detect.sh index 5cb26c1b..2b11baac 100644 --- a/scripts/lib_detect.sh +++ b/scripts/lib_detect.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # Detection and environment adjustment helpers shared by copy.sh. # Nvidia tweaks: uncomments envs and adjusts hardware cursor setting. diff --git a/scripts/lib_prompts.sh b/scripts/lib_prompts.sh index 6475e54d..8f2db3bc 100644 --- a/scripts/lib_prompts.sh +++ b/scripts/lib_prompts.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # User interaction helpers extracted from copy.sh. Each helper echoes state or sets # globals deliberately to minimize side effects. diff --git a/scripts/lib_update.sh b/scripts/lib_update.sh index be0b8a0a..397e7728 100644 --- a/scripts/lib_update.sh +++ b/scripts/lib_update.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== # run_repo_update # Arguments: |
