<?xml version="1.0" encoding="UTF-8"?>

<!--
SPDX-FileCopyrightText: 2023 Deminder <tremminder@gmail.com>
SPDX-License-Identifier: GPL-3.0-or-later
-->

<schemalist gettext-domain="ShutdownTimer">
  <schema path="/org/gnome/shell/extensions/shutdowntimer-deminder/" id="org.gnome.shell.extensions.shutdowntimer-deminder">

    <key type="i" name="shutdown-max-timer-value">
      <default>180</default>
      <summary>Maximum shutdown time (in minutes)</summary>
      <description>Set maximum selectable shutdown time of the slider (in minutes). Use only values greater zero.</description>
    </key>

    <key type="i" name="wake-max-timer-value">
      <default>1440</default>
      <summary>Maximum wake time (in minutes)</summary>
      <description>Set maximum selectable wake time of the slider (in minutes). Use only values greater zero.</description>
    </key>

    <key type="s" name="shutdown-ref-timer-value">
      <default>"now"</default>
      <summary>Reference start time for shutdown</summary>
      <description>Reference start time for shutdown either now or HH:MM</description>
    </key>

    <key type="b" name="show-shutdown-absolute-timer-value">
      <default>true</default>
      <summary>Display shutdown time as absolute timestamp</summary>
      <description>Display shutdown time as absolute timestamp "HH:MM"</description>
    </key>

    <key type="s" name="wake-ref-timer-value">
      <default>"now"</default>
      <summary>Reference start time for wake</summary>
      <description>Reference start time for wake either now, shutdown, or HH:MM</description>
    </key>

    <key type="b" name="show-wake-absolute-timer-value">
      <default>true</default>
      <summary>Display wake time as absolute timestamp</summary>
      <description>Display wake time as absolute timestamp "HH:MM"</description>
    </key>

    <key type="b" name="auto-wake-value">
      <default>false</default>
      <summary>Automatically start and stop wake on shutdown timer toggle</summary>
      <description>Enable/Disable the wake alarm when the shutdown timer is started/stopped.</description>
    </key>

    <key type="i" name="shutdown-timestamp-value">
      <default>-1</default>
      <summary>Scheduled shutdown timestamp.</summary>
      <description>Unix time in seconds of scheduled shutdown or -1 if disabled.</description>
    </key>

    <key type="d" name="wake-slider-value">
      <default>70</default>
      <summary>Wake slider position (in percent)</summary>
      <description>Set wake slider position as percent of the maximum time. Must be in range 0 and 100.</description>
    </key>

    <key type="d" name="nonlinear-wake-slider-value">
      <default>1.5</default>
      <summary>Ramp-up of non-linear wake slider value</summary>
      <description>Exponential ramp-up for wake time slider</description>
    </key>

    <key type="d" name="shutdown-slider-value">
      <default>70</default>
      <summary>Shutdown slider position (in percent)</summary>
      <description>Set shutdown slider position as percent of the maximum time. Must be in range 0 and 100.</description>
    </key>

    <key type="d" name="nonlinear-shutdown-slider-value">
      <default>0</default>
      <summary>Ramp-up of non-linear shutdown slider value</summary>
      <description>Exponential ramp-up for shutdown time slider</description>
    </key>

    <key type="b" name="show-settings-value">
      <default>true</default>
      <summary>Show settings button</summary>
      <description>Show/hide settings button in widget.</description>
    </key>

    <key type="b" name="show-shutdown-slider-value">
      <default>true</default>
      <summary>Show shutdown slider</summary>
      <description>Show/hide shutdown  slider in widget.</description>
    </key>

    <key type="b" name="show-wake-slider-value">
      <default>true</default>
      <summary>Show wake slider</summary>
      <description>Show/hide wake slider in widget.</description>
    </key>

    <key type="b" name="show-wake-items-value">
      <default>false</default>
      <summary>Show all wake items</summary>
      <description>Show/hide all wake items in widget.</description>
    </key>

    <key type="b" name="show-textboxes-value">
      <default>true</default>
      <summary>Show notification text boxes</summary>
      <description>Show/hide notification text boxes on screen.</description>
    </key>

    <key type="b" name="root-mode-value">
      <default>false</default>
      <summary>Root mode</summary>
      <description>Set root mode on/off. In root mode powering off is done via 'pkexec' and 'shutdown' terminal command.</description>
    </key>

    <key type="b" name="show-end-session-dialog-value">
      <default>true</default>
      <summary>Show end-session dialog</summary>
      <description>Show the end-session dialog for reboot and shutdown if screensaver is inactive.</description>
    </key>

    <key type="s" name="show-shutdown-mode-value">
      <default>"p,s"</default>
      <summary>Shown shutdown modes</summary>
      <description>Comma-separated shutdown modes which are shown in the popup menu (p: poweroff, s: suspend, r: reboot)</description>
    </key>

    <key type="s" name="shutdown-mode-value">
      <default>"poweroff"</default>
      <summary>Use mode</summary>
      <description>Mode to use for timer action</description>
    </key>

    <key type="b" name="show-shutdown-indicator-value">
      <default>true</default>
      <summary>Show shutdown indicator</summary>
      <description>Shows the remaining time until shutdown action</description>
    </key>

    <key type="i" name="preferences-selected-page-value">
      <default>0</default>
      <summary>Last selected page in the preferences.</summary>
      <description>Last selected page in the preferences.</description>
    </key>

  </schema>
</schemalist>
