- activeWindow: shows the focused toplevel title from Quickshell.Wayland ToplevelManager. Left-click activates, middle-click closes, right-click killactive. Hidden in vertical bars to avoid title rotation noise. - nightLight: toggles omarchy-toggle-nightlight; status detected via pgrep hyprsunset. Hides when hyprsunset isn't installed. - keyboardLayout: shows current xkb layout short code, click cycles via hyprctl switchxkblayout. Refreshes on Hyprland activelayout events. - lockKeys: caps/num/scroll lock indicators read from /sys/class/leds. Uses plain A/1/S letters; hides each indicator when off. - spacer: configurable blank space (size) for layout tuning. Defaults add activeWindow to the left section and nightLight to the right section between audioPanel and brightness.
17 lines
440 B
QML
17 lines
440 B
QML
import QtQuick
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property QtObject bar: null
|
|
property string moduleName: "spacer"
|
|
property var settings: ({})
|
|
|
|
readonly property bool vertical: bar ? bar.vertical : false
|
|
readonly property int span: settings && settings.size !== undefined ? Number(settings.size) : 12
|
|
|
|
implicitWidth: vertical ? (bar ? bar.barSize : 28) : span
|
|
implicitHeight: vertical ? span : (bar ? bar.barSize : 26)
|
|
visible: span > 0
|
|
}
|