initial commit

This commit is contained in:
lucy 2026-05-14 16:17:08 +02:00
commit d0900383e3
7 changed files with 137 additions and 0 deletions

36
modules/bar/Ws.qml Normal file
View file

@ -0,0 +1,36 @@
pragma ComponentBehavior: Bound
import Quickshell
import Quickshell.Hyprland
import Quickshell.Widgets
import QtQuick
import QtQuick.Layouts
import qs
import qs.widgets
WrapperRectangle {
id: root
required property ShellScreen barScreen
required property int barHeight
readonly property double vertMargin: barHeight / 4 - 4
color: Colors.base01
topMargin: vertMargin
bottomMargin: vertMargin
leftMargin: 8
rightMargin: 8
RowLayout {
Repeater {
id: wsRepeater
model: Hyprland.workspaces
delegate: WrapperRectangle {
id: wsWrapper
color: 'transparent'
visible: modelData.monitor == Hyprland.monitorFor(root.barScreen)
required property var modelData
child: StyledText {
text: wsWrapper.modelData.id
opacity: wsWrapper.modelData.active ? 1.0 : 0.6
}
}
}
}
}