asdflkjfkj;asdfkj;sdfkj;sadf;jkas;dfk
This commit is contained in:
parent
d559faa063
commit
d7c5a4e81b
|
@ -3,4 +3,9 @@ import QtQuick.Layouts
|
|||
import Quickshell
|
||||
import Quickshell.Hyprland
|
||||
|
||||
Repeater {}
|
||||
Repeater {
|
||||
id: repeater
|
||||
|
||||
model: Hyprland.workspaces.values.map(ws => ws.id)
|
||||
property list<HyprlandWorkspace> workspaces: HyprlandIO.sortedworkspaces
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ import Quickshell.Hyprland
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
// thanks ImNotTwig for giving me your shell.qml as reference
|
||||
|
||||
ShellRoot {
|
||||
|
||||
ReloadPopup {}
|
||||
|
@ -13,7 +15,14 @@ ShellRoot {
|
|||
model: Quickshell.screens
|
||||
|
||||
PanelWindow {
|
||||
property var modelData
|
||||
property var modelData
|
||||
property var workspaceArray: Array.from({ length: 7 }, (_, i) => ({
|
||||
id: i + 1,
|
||||
text: getWorkspaceIcon((i + 1)),
|
||||
visible: Hyprland.workspaces.values.some(e => e.id === i + 1),
|
||||
active: Hyprland.focusedMonitor.activeWorkspace.id === i + 1
|
||||
}))
|
||||
|
||||
screen: modelData
|
||||
|
||||
anchors {
|
||||
|
@ -31,8 +40,6 @@ ShellRoot {
|
|||
anchors.bottom: parent.bottom
|
||||
spacing: 5
|
||||
|
||||
Workspaces {}
|
||||
|
||||
Text {
|
||||
text: "Left side"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue