Files
glassMxrph/quickshell/launcher/LauncherState.qml
T
mxandClaude Opus 5.5 b3076a4cde Add an Emoji Picker as a launcher mode with a searchable grid
The launcher gains an emoji mode like Clipboard History: >emoji switches in
place without closing or animating, and glassmxrph emoji toggles it. Emoji
show as a grid instead of named rows; the selected or hovered emoji's name is
the section label. Search requires every term and ranks name matches before
keyword matches; Enter copies with wl-copy.

assets/emoji.tsv comes from Unicode 17 emoji-test.txt without skin-tone
variants, with keywords from the rofi emopicker list (scripts/emoji-data).
The test driver caps snapshot results, since IPC replies have a size limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:47:14 +02:00

39 lines
1.1 KiB
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();
}
// Opens the Emoji Picker, or closes it when it is showing.
function emoji(): void {
ShellState.toggleLauncherMode("emoji");
}
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
});
}
}
}