diff --git a/.config/hypr/hyprland/execs.conf b/.config/hypr/hyprland/execs.conf index 6d92de1c..88b64f99 100644 --- a/.config/hypr/hyprland/execs.conf +++ b/.config/hypr/hyprland/execs.conf @@ -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 diff --git a/.config/quickshell/ii/services/Cliphist.qml b/.config/quickshell/ii/services/Cliphist.qml index 6e3f7a1f..3bd9cbc0 100644 --- a/.config/quickshell/ii/services/Cliphist.qml +++ b/.config/quickshell/ii/services/Cliphist.qml @@ -98,4 +98,12 @@ Singleton { } } } + + IpcHandler { + target: "cliphistService" + + function update(): void { + root.refresh() + } + } }