-->
import Quickshell
Decorationless window attached to screen edges by anchors.
The following snippet creates a white bar attached to the bottom of the screen.
PanelWindow {
anchors {
left: true
bottom: true
right: true
}
Text {
anchors.centerIn: parent
text: "Hello!"
}
}
If the panel should render above standard windows. Defaults to true.
Note: On Wayland this property corrosponds to WlrLayershell.layer.
Anchors attach a shell window to the sides of the screen. By default all anchors are disabled to avoid blocking the entire screen due to a misconfiguration.
NOTE
When two opposite anchors are attached at the same time, the corrosponding dimension (width or height) will be forced to equal the screen width/height. Margins can be used to create anchored windows that are also disconnected from the monitor sides.
Defaults to ExclusionMode.Auto
.
The amount of space reserved for the shell layer relative to its anchors.
Setting this property sets exclusionMode to ExclusionMode.Normal
.
NOTE
Either 1 or 3 anchors are required for the zone to take effect.
If the panel should accept keyboard focus. Defaults to false.
Note: On Wayland this property corrosponds to WlrLayershell.keyboardFocus.
Offsets from the sides of the screen.
NOTE
Only applies to edges with anchors