Add Clipboard History as a launcher mode backed by cliphist
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>
This commit is contained in:
1 parent
44a5aedbb2
commit
5a10469efe
15 files changed
+392
-24
No files matched your search
@@ -54,12 +54,16 @@ Singleton {
|
||||
}
|
||||
property bool launcherOpen: false
|
||||
property var launcherScreen: null
|
||||
// "apps" searches applications and commands; "clipboard" is Clipboard History.
|
||||
// Changing it on an open launcher switches in place.
|
||||
property string launcherMode: "apps"
|
||||
function activeScreen() {
|
||||
return ScreenService.active;
|
||||
}
|
||||
function openLauncher() {
|
||||
function openLauncher(mode) {
|
||||
wallpaperPickerOpen=false;
|
||||
dashboardOpen = false;
|
||||
launcherMode = mode === "clipboard" ? "clipboard" : "apps";
|
||||
if (launcherOpen)
|
||||
return;
|
||||
controlCenterOpen = false;
|
||||
@@ -73,6 +77,12 @@ Singleton {
|
||||
else
|
||||
openLauncher();
|
||||
}
|
||||
function toggleClipboard() {
|
||||
if (launcherOpen && launcherMode === "clipboard")
|
||||
launcherOpen = false;
|
||||
else
|
||||
openLauncher("clipboard");
|
||||
}
|
||||
property var settingsWindow: null
|
||||
property bool settingsOpen: false
|
||||
property string settingsPage: "about"
|
||||
|
||||
Reference in new issue
Block a user