<schemalist gettext-domain="gnome-shell-extensions">
  <schema
      id="org.gnome.shell.extensions.clipboard-history"
      path="/org/gnome/shell/extensions/clipboard-history/">

    <key type="i" name="history-size">
      <default>1000</default>
      <summary>The maximum number of items to remember</summary>
      <range min="1" max="100000" />
    </key>

    <key type="i" name="display-mode">
      <default>0</default>
      <summary>What to display in top bar</summary>
      <range min="0" max="3" />
    </key>

    <key name="disable-down-arrow" type="b">
      <default>true</default>
      <summary>Remove down arrow in top bar</summary>
    </key>

    <key type="i" name="window-width-percentage">
      <default>33</default>
      <summary>Window width (%)</summary>
      <description>
        The width of the clipboard panel as a percentage of screen width.
      </description>
      <range min="0" max="100" />
    </key>

    <key type="i" name="topbar-preview-size">
      <default>10</default>
      <summary>Number of visible characters in top bar</summary>
      <description>
        The number of characters to display for the current clipboard item in the top bar.
      </description>
      <range min="1" max="100" />
    </key>

    <key type="i" name="cache-size">
      <default>100</default>
      <summary>The maximum clipboard history size (MiB)</summary>
      <description>
        Note that this is the maximum number of clipboard item bytes to store, not the maximum file
        size on disk. The clipboard history on disk may be larger than this limit due to storage
        inefficiencies.
      </description>
      <range min="1" max="1024" />
    </key>

    <key name="cache-only-favorites" type="b">
      <default>false</default>
      <summary>Only save favorites to disk</summary>
      <description>
        Non-favorite items will still be saved, but only in-memory. Restarting the Gnome Shell will
        result in the loss of those items.
      </description>
    </key>

    <key name="notify-on-copy" type="b">
      <default>false</default>
      <summary>Show a notification on copy</summary>
      <description>
        If true, a notification is shown when content is copied to clipboard with an undo button.
      </description>
    </key>

    <key name="confirm-clear" type="b">
      <default>true</default>
      <summary>Show confirmation dialog on Clear History</summary>
      <description>
        If true, a confirmation dialog is shown when attempting to Clear History.
      </description>
    </key>

    <key name="strip-text" type="b">
      <default>false</default>
      <summary>Remove whitespace around copied plaintext items</summary>
    </key>

    <key name="paste-on-selection" type="b">
      <default>true</default>
      <summary>Paste selected items into the previously active window</summary>
    </key>

    <key name="process-primary-selection" type="b">
      <default>false</default>
      <summary>Save the currently selected text to the clipboard history</summary>
      <description>
        If true, both the contents from the "CLIPBOARD" clipboard and the "PRIMARY" clipboard are added to the history.
        For more info, see https://wiki.archlinux.org/title/clipboard#Selections.
      </description>
    </key>

    <key name="move-item-first" type="b">
      <default>true</default>
      <summary>Move previously copied items to the top of the list</summary>
    </key>

    <key name="private-mode" type="b">
      <default>false</default>
      <summary>Enable private mode</summary>
      <description>
        If true, copied items are not saved in the clipboard history (be that in memory or on disk).
      </description>
    </key>

    <key name="enable-keybindings" type="b">
      <default>true</default>
      <summary>Enable keyboard shortcuts</summary>
    </key>
    <key name="clear-history" type="as">
      <default><![CDATA[[]]]></default>
      <summary>Shortcut to clear history</summary>
    </key>
    <key name="prev-entry" type="as">
      <default><![CDATA[[]]]></default>
      <summary>Shortcut to cycle to the previous clipboard entry</summary>
      <description>
      </description>
    </key>
    <key name="next-entry" type="as">
      <default><![CDATA[[]]]></default>
      <summary>Shortcut to cycle to the next clipboard entry</summary>
    </key>
    <key name="toggle-menu" type="as">
      <default><![CDATA[['<Super><Shift>V']]]></default>
      <summary>Shortcut to open the clipboard history</summary>
    </key>
    <key name="toggle-private-mode" type="as">
      <default><![CDATA[['<Super><Shift>P']]]></default>
      <summary>Toggle private mode</summary>
    </key>
    <key name="ignore-password-mimes" type="b">
      <default>true</default>
      <summary>Ignore selections containing the x-kde-passwordManagerHint mime type.</summary>
    </key>
  </schema>
</schemalist>
