add ipc
This commit is contained in:
parent
aa003dfe9a
commit
a8405f77db
2 changed files with 17 additions and 0 deletions
15
modules/ipc/Ipc.qml
Normal file
15
modules/ipc/Ipc.qml
Normal file
|
|
@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
//@ pragma UseQApplication
|
//@ pragma UseQApplication
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import qs.modules.bar
|
import qs.modules.bar
|
||||||
|
import qs.modules.ipc
|
||||||
|
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
Bar {}
|
Bar {}
|
||||||
|
Ipc {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue