initial commit
This commit is contained in:
commit
d0900383e3
7 changed files with 137 additions and 0 deletions
36
modules/bar/Ws.qml
Normal file
36
modules/bar/Ws.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue