Add lock and stuff
This commit is contained in:
15
IpcToggle.qml
Normal file
15
IpcToggle.qml
Normal file
@@ -0,0 +1,15 @@
|
||||
import Quickshell.Io
|
||||
|
||||
IpcHandler {
|
||||
target: target
|
||||
required property var item
|
||||
function close() {
|
||||
item.close();
|
||||
}
|
||||
function open() {
|
||||
item.open();
|
||||
}
|
||||
function toggle() {
|
||||
item.visible ? close() : open()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user