From d3d868bf2376b579304dd2fb4b32d657503ef1bd Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 16 Jul 2025 12:55:47 +0800 Subject: shell: ipc reload --- shell.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'shell.qml') diff --git a/shell.qml b/shell.qml index f62bf04..9717548 100644 --- a/shell.qml +++ b/shell.qml @@ -1,4 +1,5 @@ import Quickshell +import Quickshell.Io import "bar" import QtQuick @@ -6,6 +7,15 @@ import QtQuick.Layouts Scope { Bar {} + + IpcHandler { + target: "qs" + + function reload(hard: bool): void { + Quickshell.reload(hard); + } + } + Connections { target: Quickshell function onReloadCompleted() { -- cgit v1.2.3