forked from Shinonome/dots-hyprland
search: add /wipeclipboard action
This commit is contained in:
@@ -81,6 +81,12 @@ Item { // Wrapper
|
|||||||
GlobalStates.wallpaperSelectorOpen = true;
|
GlobalStates.wallpaperSelectorOpen = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
action: "wipeclipboard",
|
||||||
|
execute: () => {
|
||||||
|
Cliphist.wipe();
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
function focusFirstItem() {
|
function focusFirstItem() {
|
||||||
|
|||||||
@@ -95,6 +95,18 @@ Singleton {
|
|||||||
deleteProc.deleteEntry(entry);
|
deleteProc.deleteEntry(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Process {
|
||||||
|
id: wipeProc
|
||||||
|
command: [root.cliphistBinary, "wipe"]
|
||||||
|
onExited: (exitCode, exitStatus) => {
|
||||||
|
root.refresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function wipe() {
|
||||||
|
wipeProc.running = true;
|
||||||
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: Quickshell
|
target: Quickshell
|
||||||
function onClipboardTextChanged() {
|
function onClipboardTextChanged() {
|
||||||
|
|||||||
Reference in New Issue
Block a user