From f4e547ed45806f534e3a678d1092bdeb5d900c16 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 30 Jan 2026 11:26:42 -0500 Subject: Added check for waybar-weather for NixOS waybar-weather has to be installed as part of NixOS-Hyprland project On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: copy.sh --- copy.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/copy.sh b/copy.sh index 7fe72336..05d80e2e 100755 --- a/copy.sh +++ b/copy.sh @@ -316,6 +316,16 @@ fi detect_nvidia_adjust "$LOG" detect_vm_adjust "$LOG" detect_nixos_adjust "$LOG" +# NixOS: report missing waybar-weather without attempting to install +is_nixos() { + grep -qi '^ID=nixos' /etc/os-release 2>/dev/null +} + +report_waybar_weather_missing() { + if ! command -v waybar-weather >/dev/null 2>&1; then + echo "${WARN} waybar-weather binary is missing." 2>&1 | tee -a "$LOG" + fi +} # activating hyprcursor on env by checking if the directory ~/.icons/Bibata-Modern-Ice/hyprcursors exists if [ -d "$HOME/.icons/Bibata-Modern-Ice/hyprcursors" ]; then @@ -335,7 +345,11 @@ enable_blueman "$LOG" enable_ags "$LOG" enable_quickshell "$LOG" ensure_keybinds_init "$LOG" -install_waybar_weather "$LOG" +if is_nixos; then + report_waybar_weather_missing +else + install_waybar_weather "$LOG" +fi printf "\n%.0s" {1..1} choose_default_editor "$LOG" @@ -660,6 +674,10 @@ printf "\n%.0s" {1..1} # initialize wallust to avoid config error on hyprland wallust run -s $wallpaper 2>&1 | tee -a "$LOG" +if is_nixos && ! command -v waybar-weather >/dev/null 2>&1; then + echo "${WARN} waybar-weather binary is missing." 2>&1 | tee -a "$LOG" + echo "Install the current NixOS-Hyprland version to install waybar-weather applet for Waybar" 2>&1 | tee -a "$LOG" +fi printf "\n%.0s" {1..2} printf "${OK} GREAT! KooL's Hyprland-Dots is now Loaded & Ready !!! " -- cgit v1.2.3