diff --git a/.config/quickshell/ii/modules/overview/SearchWidget.qml b/.config/quickshell/ii/modules/overview/SearchWidget.qml index 53df4b75b..e58a300d0 100644 --- a/.config/quickshell/ii/modules/overview/SearchWidget.qml +++ b/.config/quickshell/ii/modules/overview/SearchWidget.qml @@ -81,6 +81,12 @@ Item { // Wrapper GlobalStates.wallpaperSelectorOpen = true; } }, + { + action: "wipeclipboard", + execute: () => { + Cliphist.wipe(); + } + }, ] function focusFirstItem() { diff --git a/.config/quickshell/ii/services/Cliphist.qml b/.config/quickshell/ii/services/Cliphist.qml index 32b2a0203..568526c12 100644 --- a/.config/quickshell/ii/services/Cliphist.qml +++ b/.config/quickshell/ii/services/Cliphist.qml @@ -95,6 +95,18 @@ Singleton { deleteProc.deleteEntry(entry); } + Process { + id: wipeProc + command: [root.cliphistBinary, "wipe"] + onExited: (exitCode, exitStatus) => { + root.refresh(); + } + } + + function wipe() { + wipeProc.running = true; + } + Connections { target: Quickshell function onClipboardTextChanged() {