From a8405f77db725ca5262956d8079ae06566c13712 Mon Sep 17 00:00:00 2001 From: lucy Date: Thu, 14 May 2026 17:47:09 +0200 Subject: [PATCH] add ipc --- modules/ipc/Ipc.qml | 15 +++++++++++++++ shell.qml | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 modules/ipc/Ipc.qml diff --git a/modules/ipc/Ipc.qml b/modules/ipc/Ipc.qml new file mode 100644 index 0000000..1d180c1 --- /dev/null +++ b/modules/ipc/Ipc.qml @@ -0,0 +1,15 @@ +import Quickshell +import Quickshell.Hyprland +import Quickshell.Io + +IpcHandler { + id: ipcHandler + target: "util" + function refreshWs() { + Hyprland.refreshWorkspaces(); + } + function refreshMon() { + Hyprland.refreshMonitors(); + Quickshell.reload(false) + } +} diff --git a/shell.qml b/shell.qml index df0b688..c50cad9 100644 --- a/shell.qml +++ b/shell.qml @@ -1,7 +1,9 @@ //@ pragma UseQApplication import Quickshell import qs.modules.bar +import qs.modules.ipc ShellRoot { Bar {} + Ipc {} }