I24IYFMOTYSSI3LAZ2PWUZP5LU4ULNPBHZDVIFDMI4WTIBGLEZJQC ZXGWQ2XANWUMPZ3WKAG37WCK5PGJFEFGOGPOO4J6Q74I5VWNBNHAC QOY7D3GZ3WF7HAMEHAW2CIUB5TDQCFE3YDZEO23R5MFQEBN635WAC IBNPMUOIC6ZWL5D2YK5HNBQ23FSLCKGDD4B7B77VDXHHW4E7FY3AC 5G7WRBMWKG6DMCOHE6WQHTYZACUHO2UPBZRWN72CFH7P45NN5E7QC I4HWXLAAKJHZUQFV23XBAAEW6VTCOXO2F3AB5R6RTOHHZBZLK2VAC DLMU5B7JBMU5J7HSRMPD7OYA7AY5OCT2ZWUKKF2X3SFHE6OTV6TAC HQ4UTQK5UQXMEUZRYQSCTEKW73UZLJQHPA4YD75FCKBKHS5NMJOAC RXJH46XLP6AFSIZZD4WEQA5A5YZLKHZ54ZUGCRH7TRAOH2Z4Q2VQC OUPAW7IENNTRLHI5ET2ZV4235FCCHNPVRGRE5HGQNDHIK63IMK6QC # Use provided theme.let new_theme = if $theme in ["light", "dark"] {$theme
# determine current theme from nix theme filelet theme_file = $"($env.HOME)/nixos/modules/common/theme.nix"let current_theme = try {let content = open $theme_fileif ($content | str contains "is_dark = true;") {"dark"} else {"light"}} catch {"light"}# use provided theme or toggle currentlet new_theme = if $theme != null {if $theme in ["light", "dark"] {$theme} else {print $"Invalid theme: ($theme). Use 'light' or 'dark'"return}
print-notify $"Activating ($new_theme) specialisation."if $new_theme == "dark" {^sudo /run/current-system/specialisation/dark-theme/bin/switch-to-configuration switch
let updated = if $new_theme == "dark" {$content | str replace "is_dark = false;" "is_dark = true;"
print-notify $"Theme switch to ($new_theme) completed!"
print-notify $"Theme switch to ($new_theme) completed!" 100}def print_notify [message: string] {print $"[Theme Switcher]: ($message)"if (which dunstify | is-not-empty) {^dunstify "[Theme Switcher]" $"($message)"}