#compdef noctalia
# generated from the live CLI schema

_noctalia_plugins_enabled() {
  local -a plugins
  plugins=(${(f)"$(noctalia msg plugins list 2>/dev/null | awk '$4 == "enabled" {print $1}')"})
  if [[ ${#plugins[@]} -gt 0 ]]; then
    _values 'enabled plugin' $plugins
  else
    _message 'no enabled plugins found'
  fi
}

_noctalia_plugins_disabled() {
  local -a plugins
  plugins=(${(f)"$(noctalia msg plugins list 2>/dev/null | awk '$4 == "disabled" {print $1}')"})
  if [[ ${#plugins[@]} -gt 0 ]]; then
    _values 'disabled plugin' $plugins
  else
    _message 'no disabled plugins found'
  fi
}

_noctalia_plugin_prefix() {
  local -a plugins
  plugins=(${(f)"$(noctalia msg plugins list 2>/dev/null | awk '$4 == "enabled" {print $1":"}')"})
  if [[ ${#plugins[@]} -gt 0 ]]; then
    compadd -S '' -a plugins
  else
    _message 'no enabled plugins found'
  fi
}

_noctalia_noctalia() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'completions:Generate shell completion scripts'
    'config:Validate config and support/replay helpers'
    'dmenu:Read launcher choices from stdin'
    'firefox-theme:Manage Firefox theme integration'
    'msg:Send a command to the running instance'
    'plugins:Offline plugin author tools'
    'theme:Generate a color palette from an image'
  )
  _arguments -C \
    '(-v --version)-v[Show version information]' \
    '(--version -v)--version[Show version information]' \
    '(-d --daemon)-d[Run in background]' \
    '(--daemon -d)--daemon[Run in background]' \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        completions) _noctalia_noctalia_completions ;;
        config) _noctalia_noctalia_config ;;
        dmenu) _noctalia_noctalia_dmenu ;;
        firefox-theme) _noctalia_noctalia_firefox_theme ;;
        msg) _noctalia_noctalia_msg ;;
        plugins) _noctalia_noctalia_plugins ;;
        theme) _noctalia_noctalia_theme ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_completions() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:shell:('\''bash'\'' '\''fish'\'' '\''zsh'\'')'
}

_noctalia_noctalia_config() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'export:Print the active config as TOML'
    'replay-report:Reconstruct config and state from a support report'
    'settings-count:Count Settings UI controls'
    'validate:Check config validity'
  )
  _arguments -C \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        export) _noctalia_noctalia_config_export ;;
        replay-report) _noctalia_noctalia_config_replay_report ;;
        settings-count) _noctalia_noctalia_config_settings_count ;;
        validate) _noctalia_noctalia_config_validate ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_config_export() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:mode:('\''merged'\'' '\''full'\'')'
}

_noctalia_noctalia_config_replay_report() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '--target[Directory where replay files are written]:<dir>:_files' \
    '--flattened[Write only merged_config.content as config.toml]' \
    '--force[Remove an existing target directory before writing]' \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:report.toml:_files'
}

_noctalia_noctalia_config_settings_count() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_config_validate() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:path:_files'
}

_noctalia_noctalia_dmenu() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-p --prompt)-p[Set the launcher prompt]:<text>:_files' \
    '(--prompt -p)--prompt[Set the launcher prompt]:<text>:_files' \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_firefox_theme() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:action:('\''install'\'' '\''uninstall'\'' '\''update'\'' '\''dark'\'' '\''light'\'' '\''auto'\'' '\''host'\'' '\''start'\'' '\''help'\'')'
}

_noctalia_noctalia_msg() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'bar-auto-hide-set:Set auto-hide state for a bar'
    'bar-hide:Hide one or all bars and release their layout gaps'
    'bar-layer-set:Set one or all bar layers'
    'bar-reserve-toggle:Toggle reserve space for one or all bars'
    'bar-show:Show one or all bars'
    'bar-toggle:Toggle visibility for one or all bars'
    'bluetooth-disable:Disable Bluetooth'
    'bluetooth-enable:Enable Bluetooth'
    'bluetooth-status:Print Bluetooth state'
    'bluetooth-toggle:Toggle Bluetooth'
    'brightness-down:Decrease brightness (defaults to current monitor)'
    'brightness-list-backlight-devices:List available sysfs backlight device names'
    'brightness-osd:Show brightness OSD without changing brightness'
    'brightness-set:Set brightness (defaults to current monitor)'
    'brightness-up:Increase brightness (defaults to current monitor)'
    'caffeine-disable:Disable caffeine (idle inhibitor)'
    'caffeine-enable:Enable caffeine (idle inhibitor)'
    'caffeine-toggle:Toggle caffeine (idle inhibitor)'
    'clipboard-clear:Clear clipboard history'
    'clipboard-copy:Copy text to the clipboard'
    'clipboard-text:Print the most recent clipboard text (empty when the selection holds no text)'
    'color-scheme-get:Print active color scheme: <source> <name> (source is builtin, wallpaper, community, or custom)'
    'color-scheme-set:Set palette source and selection in settings.toml (builtin name, wallpaper generator scheme, community id, or custom scheme folder name)'
    'config-reload:Reload the config file'
    'desktop-widgets-edit:Open the desktop widgets editor'
    'desktop-widgets-exit:Close the desktop widgets editor'
    'desktop-widgets-hide:Hide desktop widgets now (runtime only; does not change the saved setting)'
    'desktop-widgets-show:Show desktop widgets now (runtime only; does not change the saved setting)'
    'desktop-widgets-toggle:Toggle desktop widgets visibility (runtime only; does not change the saved setting)'
    'desktop-widgets-toggle-edit:Toggle desktop widgets edit mode'
    'dock-hide:Hide the dock (persists override)'
    'dock-reload:Reload dock configuration'
    'dock-show:Show the dock (persists override)'
    'dock-toggle:Toggle dock visibility (persists override)'
    'dpms-off:Turn monitors off'
    'dpms-on:Turn monitors on'
    'effects-profile-set:Set the EasyEffects output or input profile'
    'greeter-sync:Sync wallpaper, colors, and monitor layout to Noctalia Greeter'
    'keyboard-backlight-down:Decrease all keyboard backlights by one level'
    'keyboard-backlight-osd:Show keyboard backlight OSD without changing brightness'
    'keyboard-backlight-set:Set all keyboard backlights (0-100 percentage)'
    'keyboard-backlight-toggle:Toggle all keyboard backlights on/off'
    'keyboard-backlight-up:Increase all keyboard backlights by one level'
    'keyboard-layout-cycle:Switch to the next keyboard layout'
    'lockscreen-widgets-edit:Open the lockscreen widgets editor'
    'lockscreen-widgets-exit:Close the lockscreen widgets editor'
    'lockscreen-widgets-toggle-edit:Toggle lockscreen widgets edit mode'
    'log-level-set:Set the console log level'
    'log-level-status:Print the current console log level'
    'media:Control active media playback'
    'mic-mute:Toggle microphone mute'
    'mic-volume-down:Decrease microphone volume'
    'mic-volume-osd:Show the microphone volume OSD without changing volume (defaults to the current volume)'
    'mic-volume-set:Set microphone volume'
    'mic-volume-up:Increase microphone volume'
    'network-toggle:Disconnect the active network, or reconnect when nothing is connected'
    'nightlight-disable:Disable night light schedule'
    'nightlight-enable:Enable night light schedule'
    'nightlight-force-toggle:Toggle forced night light mode'
    'nightlight-toggle:Toggle night light schedule'
    'notification-clear-active:Dismiss all currently active notifications'
    'notification-clear-history:Clear notification history'
    'notification-dnd-set:Set notification Do Not Disturb state'
    'notification-dnd-status:Print notification Do Not Disturb state'
    'notification-dnd-toggle:Toggle notification Do Not Disturb state'
    'notification-invoke-latest:Invoke the default action of the most recent active notification'
    'notification-show:Show an internal Noctalia notification'
    'osd-disable:Disable OSD popups'
    'osd-enable:Enable OSD popups'
    'osd-toggle:Toggle OSD popups'
    'panel-close:Close the active panel, or close the named panel if it is active'
    'panel-open:Open a panel by id, optionally with context (e.g. launcher /emo, control-center audio)'
    'panel-toggle:Toggle a panel by id, optionally with context (e.g. launcher /emo, control-center audio)'
    'plugin:Dispatch an event to a plugin entry'
    'plugins:Manage plugins and sources (list/enable/disable/update, source list/add/remove)'
    'power-cycle:Step through UPower'\''s ordered profile list, forward by default (wraps)'
    'power-set:Set the UPower power profile (e.g. performance, balanced, power-saver)'
    'screenshot-fullscreen:Capture the focused monitor by default, pick interactively with pick, or all outputs with all'
    'screenshot-region:Start an interactive region screenshot'
    'session:Run a built-in session action'
    'settings-close:Close the settings window'
    'settings-open:Open the settings window, or focus it if already open, optionally at a specific section'
    'settings-open-plugin:Open the settings window at a plugin'\''s settings (e.g. noctalia/notes)'
    'settings-open-widget:Open the settings window at a bar widget; from a widget gesture, targets that widget'
    'settings-toggle:Toggle the settings window, optionally at a specific section'
    'status:Print current state as JSON'
    'taskbar-cycle:Step to the adjacent task or workspace group in the invoking taskbar'
    'templates-apply:Apply configured theme templates for the current palette'
    'theme-mode-get:Print the current resolved theme mode'
    'theme-mode-set:Set theme mode and persist to settings.toml'
    'theme-mode-toggle:Toggle theme mode between dark and light'
    'volume-down:Decrease speaker volume'
    'volume-mute:Toggle speaker mute'
    'volume-osd:Show the volume OSD without changing volume (defaults to the current volume)'
    'volume-set:Set speaker volume'
    'volume-up:Increase speaker volume'
    'wallpaper-get:Print default wallpaper path, or effective path for an output'
    'wallpaper-next:Switch to the next wallpaper immediately'
    'wallpaper-previous:Switch to the previous wallpaper immediately'
    'wallpaper-random:Switch to a random wallpaper immediately'
    'wallpaper-set:Set wallpaper for all or a specific output (persisted)'
    'wifi-disable:Disable Wi-Fi'
    'wifi-enable:Enable Wi-Fi'
    'wifi-status:Print Wi-Fi state'
    'wifi-toggle:Toggle Wi-Fi'
    'window-switcher:Open or close the window switcher overlay'
    'workspace-alert-add:Add a workspace alert (by number, name, or id)'
    'workspace-alert-add-window:Add a workspace alert for a window'
    'workspace-alert-clear:Clear a workspace alert'
    'workspace-alert-clear-all:Clear all workspace alerts'
    'workspace-alert-status:Print workspace alerts'
    'workspace-switch:Switch to the adjacent workspace on the target monitor (stops at both ends)'
  )
  _arguments -C \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        bar-auto-hide-set) _noctalia_noctalia_msg_bar_auto_hide_set ;;
        bar-hide) _noctalia_noctalia_msg_bar_hide ;;
        bar-layer-set) _noctalia_noctalia_msg_bar_layer_set ;;
        bar-reserve-toggle) _noctalia_noctalia_msg_bar_reserve_toggle ;;
        bar-show) _noctalia_noctalia_msg_bar_show ;;
        bar-toggle) _noctalia_noctalia_msg_bar_toggle ;;
        bluetooth-disable) _noctalia_noctalia_msg_bluetooth_disable ;;
        bluetooth-enable) _noctalia_noctalia_msg_bluetooth_enable ;;
        bluetooth-status) _noctalia_noctalia_msg_bluetooth_status ;;
        bluetooth-toggle) _noctalia_noctalia_msg_bluetooth_toggle ;;
        brightness-down) _noctalia_noctalia_msg_brightness_down ;;
        brightness-list-backlight-devices) _noctalia_noctalia_msg_brightness_list_backlight_devices ;;
        brightness-osd) _noctalia_noctalia_msg_brightness_osd ;;
        brightness-set) _noctalia_noctalia_msg_brightness_set ;;
        brightness-up) _noctalia_noctalia_msg_brightness_up ;;
        caffeine-disable) _noctalia_noctalia_msg_caffeine_disable ;;
        caffeine-enable) _noctalia_noctalia_msg_caffeine_enable ;;
        caffeine-toggle) _noctalia_noctalia_msg_caffeine_toggle ;;
        clipboard-clear) _noctalia_noctalia_msg_clipboard_clear ;;
        clipboard-copy) _noctalia_noctalia_msg_clipboard_copy ;;
        clipboard-text) _noctalia_noctalia_msg_clipboard_text ;;
        color-scheme-get) _noctalia_noctalia_msg_color_scheme_get ;;
        color-scheme-set) _noctalia_noctalia_msg_color_scheme_set ;;
        config-reload) _noctalia_noctalia_msg_config_reload ;;
        desktop-widgets-edit) _noctalia_noctalia_msg_desktop_widgets_edit ;;
        desktop-widgets-exit) _noctalia_noctalia_msg_desktop_widgets_exit ;;
        desktop-widgets-hide) _noctalia_noctalia_msg_desktop_widgets_hide ;;
        desktop-widgets-show) _noctalia_noctalia_msg_desktop_widgets_show ;;
        desktop-widgets-toggle) _noctalia_noctalia_msg_desktop_widgets_toggle ;;
        desktop-widgets-toggle-edit) _noctalia_noctalia_msg_desktop_widgets_toggle_edit ;;
        dock-hide) _noctalia_noctalia_msg_dock_hide ;;
        dock-reload) _noctalia_noctalia_msg_dock_reload ;;
        dock-show) _noctalia_noctalia_msg_dock_show ;;
        dock-toggle) _noctalia_noctalia_msg_dock_toggle ;;
        dpms-off) _noctalia_noctalia_msg_dpms_off ;;
        dpms-on) _noctalia_noctalia_msg_dpms_on ;;
        effects-profile-set) _noctalia_noctalia_msg_effects_profile_set ;;
        greeter-sync) _noctalia_noctalia_msg_greeter_sync ;;
        keyboard-backlight-down) _noctalia_noctalia_msg_keyboard_backlight_down ;;
        keyboard-backlight-osd) _noctalia_noctalia_msg_keyboard_backlight_osd ;;
        keyboard-backlight-set) _noctalia_noctalia_msg_keyboard_backlight_set ;;
        keyboard-backlight-toggle) _noctalia_noctalia_msg_keyboard_backlight_toggle ;;
        keyboard-backlight-up) _noctalia_noctalia_msg_keyboard_backlight_up ;;
        keyboard-layout-cycle) _noctalia_noctalia_msg_keyboard_layout_cycle ;;
        lockscreen-widgets-edit) _noctalia_noctalia_msg_lockscreen_widgets_edit ;;
        lockscreen-widgets-exit) _noctalia_noctalia_msg_lockscreen_widgets_exit ;;
        lockscreen-widgets-toggle-edit) _noctalia_noctalia_msg_lockscreen_widgets_toggle_edit ;;
        log-level-set) _noctalia_noctalia_msg_log_level_set ;;
        log-level-status) _noctalia_noctalia_msg_log_level_status ;;
        media) _noctalia_noctalia_msg_media ;;
        mic-mute) _noctalia_noctalia_msg_mic_mute ;;
        mic-volume-down) _noctalia_noctalia_msg_mic_volume_down ;;
        mic-volume-osd) _noctalia_noctalia_msg_mic_volume_osd ;;
        mic-volume-set) _noctalia_noctalia_msg_mic_volume_set ;;
        mic-volume-up) _noctalia_noctalia_msg_mic_volume_up ;;
        network-toggle) _noctalia_noctalia_msg_network_toggle ;;
        nightlight-disable) _noctalia_noctalia_msg_nightlight_disable ;;
        nightlight-enable) _noctalia_noctalia_msg_nightlight_enable ;;
        nightlight-force-toggle) _noctalia_noctalia_msg_nightlight_force_toggle ;;
        nightlight-toggle) _noctalia_noctalia_msg_nightlight_toggle ;;
        notification-clear-active) _noctalia_noctalia_msg_notification_clear_active ;;
        notification-clear-history) _noctalia_noctalia_msg_notification_clear_history ;;
        notification-dnd-set) _noctalia_noctalia_msg_notification_dnd_set ;;
        notification-dnd-status) _noctalia_noctalia_msg_notification_dnd_status ;;
        notification-dnd-toggle) _noctalia_noctalia_msg_notification_dnd_toggle ;;
        notification-invoke-latest) _noctalia_noctalia_msg_notification_invoke_latest ;;
        notification-show) _noctalia_noctalia_msg_notification_show ;;
        osd-disable) _noctalia_noctalia_msg_osd_disable ;;
        osd-enable) _noctalia_noctalia_msg_osd_enable ;;
        osd-toggle) _noctalia_noctalia_msg_osd_toggle ;;
        panel-close) _noctalia_noctalia_msg_panel_close ;;
        panel-open) _noctalia_noctalia_msg_panel_open ;;
        panel-toggle) _noctalia_noctalia_msg_panel_toggle ;;
        plugin) _noctalia_noctalia_msg_plugin ;;
        plugins) _noctalia_noctalia_msg_plugins ;;
        power-cycle) _noctalia_noctalia_msg_power_cycle ;;
        power-set) _noctalia_noctalia_msg_power_set ;;
        screenshot-fullscreen) _noctalia_noctalia_msg_screenshot_fullscreen ;;
        screenshot-region) _noctalia_noctalia_msg_screenshot_region ;;
        session) _noctalia_noctalia_msg_session ;;
        settings-close) _noctalia_noctalia_msg_settings_close ;;
        settings-open) _noctalia_noctalia_msg_settings_open ;;
        settings-open-plugin) _noctalia_noctalia_msg_settings_open_plugin ;;
        settings-open-widget) _noctalia_noctalia_msg_settings_open_widget ;;
        settings-toggle) _noctalia_noctalia_msg_settings_toggle ;;
        status) _noctalia_noctalia_msg_status ;;
        taskbar-cycle) _noctalia_noctalia_msg_taskbar_cycle ;;
        templates-apply) _noctalia_noctalia_msg_templates_apply ;;
        theme-mode-get) _noctalia_noctalia_msg_theme_mode_get ;;
        theme-mode-set) _noctalia_noctalia_msg_theme_mode_set ;;
        theme-mode-toggle) _noctalia_noctalia_msg_theme_mode_toggle ;;
        volume-down) _noctalia_noctalia_msg_volume_down ;;
        volume-mute) _noctalia_noctalia_msg_volume_mute ;;
        volume-osd) _noctalia_noctalia_msg_volume_osd ;;
        volume-set) _noctalia_noctalia_msg_volume_set ;;
        volume-up) _noctalia_noctalia_msg_volume_up ;;
        wallpaper-get) _noctalia_noctalia_msg_wallpaper_get ;;
        wallpaper-next) _noctalia_noctalia_msg_wallpaper_next ;;
        wallpaper-previous) _noctalia_noctalia_msg_wallpaper_previous ;;
        wallpaper-random) _noctalia_noctalia_msg_wallpaper_random ;;
        wallpaper-set) _noctalia_noctalia_msg_wallpaper_set ;;
        wifi-disable) _noctalia_noctalia_msg_wifi_disable ;;
        wifi-enable) _noctalia_noctalia_msg_wifi_enable ;;
        wifi-status) _noctalia_noctalia_msg_wifi_status ;;
        wifi-toggle) _noctalia_noctalia_msg_wifi_toggle ;;
        window-switcher) _noctalia_noctalia_msg_window_switcher ;;
        workspace-alert-add) _noctalia_noctalia_msg_workspace_alert_add ;;
        workspace-alert-add-window) _noctalia_noctalia_msg_workspace_alert_add_window ;;
        workspace-alert-clear) _noctalia_noctalia_msg_workspace_alert_clear ;;
        workspace-alert-clear-all) _noctalia_noctalia_msg_workspace_alert_clear_all ;;
        workspace-alert-status) _noctalia_noctalia_msg_workspace_alert_status ;;
        workspace-switch) _noctalia_noctalia_msg_workspace_switch ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_msg_bar_auto_hide_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:state:('\''on'\'' '\''off'\'' '\''smart'\'' '\''true'\'' '\''false'\'' '\''1'\'' '\''0'\'')' \
    '2:bar-name:_files' \
    '3:monitor-selector:_files'
}

_noctalia_noctalia_msg_bar_hide() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:bar-name:_files' \
    '2:monitor-selector:_files'
}

_noctalia_noctalia_msg_bar_layer_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:layer:('\''top'\'' '\''overlay'\'')' \
    '2:bar-name:_files' \
    '3:monitor-selector:_files'
}

_noctalia_noctalia_msg_bar_reserve_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:bar-name:_files' \
    '2:monitor-selector:_files'
}

_noctalia_noctalia_msg_bar_show() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:bar-name:_files' \
    '2:monitor-selector:_files'
}

_noctalia_noctalia_msg_bar_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:bar-name:_files' \
    '2:monitor-selector:_files'
}

_noctalia_noctalia_msg_bluetooth_disable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_bluetooth_enable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_bluetooth_status() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_bluetooth_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_brightness_down() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:target:_files' \
    '2:step:_files'
}

_noctalia_noctalia_msg_brightness_list_backlight_devices() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_brightness_osd() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_brightness_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:target:_files' \
    '2:value:_files'
}

_noctalia_noctalia_msg_brightness_up() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:target:_files' \
    '2:step:_files'
}

_noctalia_noctalia_msg_caffeine_disable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_caffeine_enable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_caffeine_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_clipboard_clear() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_clipboard_copy() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:text:_files'
}

_noctalia_noctalia_msg_clipboard_text() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_color_scheme_get() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_color_scheme_set() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'builtin:Use a built-in palette'
    'wallpaper:Use a wallpaper generator scheme'
    'community:Use a community palette'
    'custom:Use a custom palette'
  )
  _arguments -C \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        builtin) _noctalia_noctalia_msg_color_scheme_set_builtin ;;
        wallpaper) _noctalia_noctalia_msg_color_scheme_set_wallpaper ;;
        community) _noctalia_noctalia_msg_color_scheme_set_community ;;
        custom) _noctalia_noctalia_msg_color_scheme_set_custom ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_msg_color_scheme_set_builtin() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:name:('\''Ayu'\'' '\''Catppuccin'\'' '\''Dracula'\'' '\''Eldritch'\'' '\''Gruvbox'\'' '\''Kanagawa'\'' '\''Noctalia'\'' '\''Nord'\'' '\''Rosé Pine'\'' '\''Tokyo-Night'\'')'
}

_noctalia_noctalia_msg_color_scheme_set_wallpaper() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:name:('\''m3-tonal-spot'\'' '\''m3-content'\'' '\''m3-fruit-salad'\'' '\''m3-rainbow'\'' '\''m3-monochrome'\'' '\''vibrant'\'' '\''faithful'\'' '\''soft'\'' '\''dysfunctional'\'' '\''muted'\'')'
}

_noctalia_noctalia_msg_color_scheme_set_community() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:name:_files'
}

_noctalia_noctalia_msg_color_scheme_set_custom() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:name:_files'
}

_noctalia_noctalia_msg_config_reload() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_desktop_widgets_edit() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_desktop_widgets_exit() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_desktop_widgets_hide() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_desktop_widgets_show() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_desktop_widgets_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_desktop_widgets_toggle_edit() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_dock_hide() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_dock_reload() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_dock_show() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_dock_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_dpms_off() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_dpms_on() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_effects_profile_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:kind:('\''output'\'' '\''input'\'')' \
    '2:profile:_files'
}

_noctalia_noctalia_msg_greeter_sync() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_keyboard_backlight_down() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_keyboard_backlight_osd() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_keyboard_backlight_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_keyboard_backlight_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_keyboard_backlight_up() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_keyboard_layout_cycle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_lockscreen_widgets_edit() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_lockscreen_widgets_exit() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_lockscreen_widgets_toggle_edit() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_log_level_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:level:('\''debug'\'' '\''info'\'' '\''warn'\'' '\''error'\'')'
}

_noctalia_noctalia_msg_log_level_status() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_media() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:action:('\''next'\'' '\''previous'\'' '\''toggle'\'' '\''play'\'' '\''pause'\'' '\''stop'\'' '\''next-player'\'' '\''previous-player'\'')'
}

_noctalia_noctalia_msg_mic_mute() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_mic_volume_down() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:step:_files'
}

_noctalia_noctalia_msg_mic_volume_osd() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_mic_volume_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_mic_volume_up() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:step:_files'
}

_noctalia_noctalia_msg_network_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_nightlight_disable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_nightlight_enable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_nightlight_force_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_nightlight_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_notification_clear_active() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_notification_clear_history() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_notification_dnd_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:state:('\''on'\'' '\''off'\'' '\''true'\'' '\''false'\'' '\''1'\'' '\''0'\'')'
}

_noctalia_noctalia_msg_notification_dnd_status() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_notification_dnd_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_notification_invoke_latest() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_notification_show() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:summary:_files' \
    '2:body:_files'
}

_noctalia_noctalia_msg_osd_disable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_osd_enable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_osd_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_panel_close() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:id:_files'
}

_noctalia_noctalia_msg_panel_open() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:id:_files' \
    '2:context:_files'
}

_noctalia_noctalia_msg_panel_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:id:_files' \
    '2:context:_files'
}

_noctalia_noctalia_msg_plugin() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:author/plugin-entry:_noctalia_plugin_prefix' \
    '2:target[-bar-name]:_files' \
    '3:event:_files' \
    '4:payload:_files'
}

_noctalia_noctalia_msg_plugins() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'list:List installed plugins'
    'enable:Enable a plugin'
    'disable:Disable a plugin'
    'update:Update a plugin source'
    'source:Manage plugin sources'
  )
  _arguments -C \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        list) _noctalia_noctalia_msg_plugins_list ;;
        enable) _noctalia_noctalia_msg_plugins_enable ;;
        disable) _noctalia_noctalia_msg_plugins_disable ;;
        update) _noctalia_noctalia_msg_plugins_update ;;
        source) _noctalia_noctalia_msg_plugins_source ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_msg_plugins_list() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_plugins_enable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:author/plugin:_noctalia_plugins_disabled'
}

_noctalia_noctalia_msg_plugins_disable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:author/plugin:_noctalia_plugins_enabled'
}

_noctalia_noctalia_msg_plugins_update() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:source-name:_files'
}

_noctalia_noctalia_msg_plugins_source() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'list:List plugin sources'
    'add:Add a plugin source'
    'remove:Remove a plugin source'
  )
  _arguments -C \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        list) _noctalia_noctalia_msg_plugins_source_list ;;
        add) _noctalia_noctalia_msg_plugins_source_add ;;
        remove) _noctalia_noctalia_msg_plugins_source_remove ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_msg_plugins_source_list() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_plugins_source_add() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:name:_files' \
    '2:kind:('\''git'\'' '\''path'\'')' \
    '3:location:_files'
}

_noctalia_noctalia_msg_plugins_source_remove() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:name:_files'
}

_noctalia_noctalia_msg_power_cycle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:direction:('\''next'\'' '\''prev'\'')'
}

_noctalia_noctalia_msg_power_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:profile:_files'
}

_noctalia_noctalia_msg_screenshot_fullscreen() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:mode:('\''pick'\'' '\''monitor'\'' '\''all'\'')'
}

_noctalia_noctalia_msg_screenshot_region() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_session() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:action:('\''lock'\'' '\''suspend'\'' '\''lock-and-suspend'\'' '\''logout'\'' '\''reboot'\'' '\''shutdown'\'')'
}

_noctalia_noctalia_msg_settings_close() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_settings_open() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:context:_files'
}

_noctalia_noctalia_msg_settings_open_plugin() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:plugin-id:_files'
}

_noctalia_noctalia_msg_settings_open_widget() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:bar-name:_files' \
    '2:widget-name:_files'
}

_noctalia_noctalia_msg_settings_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:context:_files'
}

_noctalia_noctalia_msg_status() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_taskbar_cycle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:direction:('\''next'\'' '\''prev'\'')'
}

_noctalia_noctalia_msg_templates_apply() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_theme_mode_get() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_theme_mode_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:mode:('\''dark'\'' '\''light'\'' '\''auto'\'')'
}

_noctalia_noctalia_msg_theme_mode_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_volume_down() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:step:_files'
}

_noctalia_noctalia_msg_volume_mute() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_volume_osd() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_volume_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:value:_files'
}

_noctalia_noctalia_msg_volume_up() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:step:_files'
}

_noctalia_noctalia_msg_wallpaper_get() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:connector:_files'
}

_noctalia_noctalia_msg_wallpaper_next() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:connector:_files'
}

_noctalia_noctalia_msg_wallpaper_previous() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:connector:_files'
}

_noctalia_noctalia_msg_wallpaper_random() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:connector:_files'
}

_noctalia_noctalia_msg_wallpaper_set() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:connector:_files' \
    '2:path:_files'
}

_noctalia_noctalia_msg_wifi_disable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_wifi_enable() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_wifi_status() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_wifi_toggle() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_window_switcher() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:action:_files'
}

_noctalia_noctalia_msg_workspace_alert_add() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:workspace:_files'
}

_noctalia_noctalia_msg_workspace_alert_add_window() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:window-id:_files'
}

_noctalia_noctalia_msg_workspace_alert_clear() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:workspace:_files'
}

_noctalia_noctalia_msg_workspace_alert_clear_all() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_workspace_alert_status() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    ':argument:_files'
}

_noctalia_noctalia_msg_workspace_switch() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:direction:('\''next'\'' '\''prev'\'')'
}

_noctalia_noctalia_plugins() {
  local context state state_descr line
  typeset -A opt_args
  local -a commands
  commands=(
    'lint:Cross-check declared settings against plugin code'
  )
  _arguments -C \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:command:->command' \
    '*::argument:->args'
  case $state in
    command) _describe 'command' commands ;;
    args)
      case $line[1] in
        lint) _noctalia_noctalia_plugins_lint ;;
      esac
      ;;
  esac
}

_noctalia_noctalia_plugins_lint() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '*:path:_files'
}

_noctalia_noctalia_theme() {
  local context state state_descr line
  typeset -A opt_args
  _arguments \
    '--scheme[Color generation scheme]:<name>:('\''m3-tonal-spot'\'' '\''m3-content'\'' '\''m3-fruit-salad'\'' '\''m3-rainbow'\'' '\''m3-monochrome'\'' '\''vibrant'\'' '\''faithful'\'' '\''soft'\'' '\''dysfunctional'\'' '\''muted'\'')' \
    '--dark[Emit only the dark variant]' \
    '--light[Emit only the light variant]' \
    '--both[Emit both variants under dark/light keys]' \
    '--pure-black[Re-anchor the dark surface ramp to true black (OLED)]' \
    '--theme-json[Load precomputed dark/light token maps from JSON]:<file>:_files' \
    '-o[Write JSON to file instead of stdout]:<file>:_files' \
    '(-r --render)-r[Render a template file to an output path]:<in:out>:_files' \
    '(--render -r)--render[Render a template file to an output path]:<in:out>:_files' \
    '(-c --config)-c[Process a TOML template config file]:<file>:_files' \
    '(--config -c)--config[Process a TOML template config file]:<file>:_files' \
    '--builtin-config[Process the shipped built-in template catalog]' \
    '--list-templates[List built-in, cached community, and configured user templates]' \
    '--default-mode[Template default mode]:<mode>:('\''dark'\'' '\''light'\'')' \
    '(-h --help)-h[Show this help message]' \
    '(-h --help)--help[Show this help message]' \
    '1:image:_files'
}

_noctalia() { _noctalia_noctalia }

_noctalia "$@"
