The launcher gains a clipboard mode with the same bar, position and size: the latest five entries show at once and the rest scroll, search filters in recency order, Enter copies, Shift+Delete removes an entry. >clipboard switches in place without closing or animating; glassmxrph clipboard toggles it directly. History stays with the user's cliphist watcher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
929 B
QML
35 lines
929 B
QML
pragma Singleton
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import "../core"
|
|
|
|
Singleton {
|
|
id: root
|
|
property var window: null
|
|
IpcHandler {
|
|
target: "launcher"
|
|
function toggle(): void {
|
|
ShellState.toggleLauncher();
|
|
}
|
|
function open(): void {
|
|
ShellState.openLauncher();
|
|
}
|
|
function close(): void {
|
|
ShellState.launcherOpen = false;
|
|
}
|
|
// Opens Clipboard History, or closes it when it is showing.
|
|
function clipboard(): void {
|
|
ShellState.toggleClipboard();
|
|
}
|
|
function status(): string {
|
|
return JSON.stringify({
|
|
opened: ShellState.launcherOpen,
|
|
mode: ShellState.launcherMode,
|
|
screen: root.window && root.window.screen ? root.window.screen.name : "",
|
|
ready: !!root.window
|
|
});
|
|
}
|
|
}
|
|
}
|