diff options
Diffstat (limited to 'desktop/modules/clipboard/ClipboardModule.qml')
| -rw-r--r-- | desktop/modules/clipboard/ClipboardModule.qml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/desktop/modules/clipboard/ClipboardModule.qml b/desktop/modules/clipboard/ClipboardModule.qml new file mode 100644 index 0000000..25a8cc3 --- /dev/null +++ b/desktop/modules/clipboard/ClipboardModule.qml @@ -0,0 +1,39 @@ +// Copyright (C) 2026 Danilo M. <danix@danix.xyz> +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +import QtQuick +import "../.." + +// The clipboard history kept by `wl-paste --watch cliphist store`, which +// autostart runs. Nothing runs here while the drawer is closed: the page +// reads cliphist when it opens. +Module { + name: "clipboard" + label: "Clipboard" + + // fa-clipboard, present in Inconsolata Nerd Font. + icon: "" + + page: Component { + Page { + id: pg + title: "Clipboard" + ClipboardPage { + width: parent.width + // Page wraps its content in a ScrollView. The list is + // virtualized and scrolls itself, so it takes exactly the + // visible height and the outer view never scrolls. + height: pg.height - 57 + onCopied: pg.dismiss() + } + } + } +} |
