clipboard history: make updates happen immediately after change

Updates previously wouldn't trigger immediately because no focus = no clipboard grab
https://quickshell.org/docs/v0.2.0/types/Quickshell/Quickshell/#clipboardText
This commit is contained in:
end-4 2025-08-17 18:15:01 +07:00
parent ff7aa46cda
commit 680378e68f
2 changed files with 10 additions and 2 deletions

View file

@ -18,8 +18,8 @@ exec-once = easyeffects --gapplication-service
# Clipboard: history
# exec-once = wl-paste --watch cliphist store &
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
exec-once = wl-paste --type text --watch bash -c 'cliphist store && qs -c ii ipc call cliphistService update'
exec-once = wl-paste --type image --watch bash -c 'cliphist store && qs -c ii ipc call cliphistService update'
# Cursor
exec-once = hyprctl setcursor Bibata-Modern-Classic 24

View file

@ -98,4 +98,12 @@ Singleton {
}
}
}
IpcHandler {
target: "cliphistService"
function update(): void {
root.refresh()
}
}
}