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 } } }