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>
This commit is contained in:
1 parent
29dd64572a
commit
b3076a4cde
13 files changed
+2220
-29
No files matched your search
@@ -54,7 +54,8 @@ Singleton {
|
||||
}
|
||||
property bool launcherOpen: false
|
||||
property var launcherScreen: null
|
||||
// "apps" searches applications and commands; "clipboard" is Clipboard History.
|
||||
// "apps" searches applications and commands; "clipboard" is Clipboard History;
|
||||
// "emoji" is the Emoji Picker.
|
||||
// Changing it on an open launcher switches in place.
|
||||
property string launcherMode: "apps"
|
||||
function activeScreen() {
|
||||
@@ -63,7 +64,7 @@ Singleton {
|
||||
function openLauncher(mode) {
|
||||
wallpaperPickerOpen=false;
|
||||
dashboardOpen = false;
|
||||
launcherMode = mode === "clipboard" ? "clipboard" : "apps";
|
||||
launcherMode = mode === "clipboard" || mode === "emoji" ? mode : "apps";
|
||||
if (launcherOpen)
|
||||
return;
|
||||
controlCenterOpen = false;
|
||||
@@ -77,11 +78,14 @@ Singleton {
|
||||
else
|
||||
openLauncher();
|
||||
}
|
||||
function toggleClipboard() {
|
||||
if (launcherOpen && launcherMode === "clipboard")
|
||||
function toggleLauncherMode(mode) {
|
||||
if (launcherOpen && launcherMode === mode)
|
||||
launcherOpen = false;
|
||||
else
|
||||
openLauncher("clipboard");
|
||||
openLauncher(mode);
|
||||
}
|
||||
function toggleClipboard() {
|
||||
toggleLauncherMode("clipboard");
|
||||
}
|
||||
property var settingsWindow: null
|
||||
property bool settingsOpen: false
|
||||
|
||||
Reference in new issue
Block a user