summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-16 12:55:47 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-16 12:55:47 +0800
commitd3d868bf2376b579304dd2fb4b32d657503ef1bd (patch)
tree0b2c3efccb9c73798d379a941fe4b30b86492f78
parentdd22826761494037945d439c70b3accf6701a198 (diff)
shell: ipc reload
-rw-r--r--shell.qml10
1 files changed, 10 insertions, 0 deletions
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() {