5RHAEGTB2GZX2MRK3KKQRDKMXRRQ5PM5SUHL6NHTLCQF5SLNOMEAC if $wallpaper_success {print-notify $"Wallpaper switch for the ($new_theme) theme succeeded." 75} else {print-notify $"Wallpaper switch failed, continuing with theme switch." 75}
# if $wallpaper_success {# print-notify $"Wallpaper switch for the ($new_theme) theme succeeded." 75# } else {# print-notify $"Wallpaper switch failed, continuing with theme switch." 75# }
# Returns `true` on success and `false` on error.def switch-wallpaper [theme?: string]: nothing -> bool {# Skip wallpaper switching on non-Linux systems (swww is Wayland-only).# TODO: Handle this better.if (uname).kernel-name != "Linux" {return false}
# Using `hyprpaper` now in `modules/linux/hyprland.nix`.# # Returns `true` on success and `false` on error.# def switch-wallpaper [theme?: string]: nothing -> bool {# # Skip wallpaper switching on non-Linux systems (swww is Wayland-only).# # TODO: Handle this better.# if (uname).kernel-name != "Linux" {# return false# }
let wallpaper = if $theme == "dark" {"${config.theme.themes.wallpaper.dark}"} else if $theme == "light" {"${config.theme.themes.wallpaper.light}"} else {"${config.theme.wallpaper}"}
# let wallpaper = if $theme == "dark" {# "${config.theme.themes.wallpaper.dark}"# } else if $theme == "light" {# "${config.theme.themes.wallpaper.light}"# } else {# "${config.theme.wallpaper}"# }