Now it shouldn't try to re-apply the theme that's already active but we
can still --force it if something goes wrong (e.g. theme config updated
but rebuild failed).
YJ2IRS3LECNWN4M7PVIDSOFXLN4O36FTXOSBPG2KGNDWYSG5AA6QC def main [arg: string, # Theme-related action.]: nothing -> nothing {match $arg {"dark" | "light" => {toggle-theme $argreload-applications}"pywal" | "gruvbox" => {switch-scheme $argreload-applications}"reload" => {do { $REBUILD_SCRIPT }reload-applications}_ => {print $"Invalid option: '($arg)'. Use: dark, light, pywal, gruvbox or reload."}}
def main [] {print $"Usage: tt <dark|light|pywal|gruvbox|reload>dark - Switch to dark modelight - Switch to light modepywal - Use generated pywal colours from wallpapergruvbox - Use the gruvbox themereload - Reload applications"}def "main dark" [--force] {if not $force { is-current dark }toggle-theme darkmain reload}def "main light" [--force] {if not $force { is-current light }toggle-theme lightmain reload
def "main gruvbox" [--force] {if not $force { is-current gruvbox }toggle-theme gruvboxmain reload}def "main pywal" [--force] {if not $force { is-current pywal }toggle-theme pywalmain reload}def "main reload" [] {attempt-rebuildreload-applications}