Initial commit
This commit is contained in:
commit
f94fd70f07
151 changed files with 7650 additions and 0 deletions
33
quickshell/shell/Modules/Widgets.qml
Normal file
33
quickshell/shell/Modules/Widgets.qml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Io
|
||||
import Quickshell.Widgets
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import "../Config"
|
||||
|
||||
ShellRoot{
|
||||
id: widgets
|
||||
|
||||
property var open: false
|
||||
|
||||
Battery {
|
||||
visible: open ? true : false
|
||||
height: open ? 80 : 0
|
||||
}
|
||||
|
||||
Clock {
|
||||
visible: open ? true : false
|
||||
height: open ? 80 : 0
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "widgets"
|
||||
|
||||
function toggle() {
|
||||
widgets.open = !widgets.open
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue