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 {} }