asdflkjfkj;asdfkj;sdfkj;sadf;jkas;dfk

This commit is contained in:
Sakooooo 2025-01-09 13:42:16 +04:00
parent d559faa063
commit d7c5a4e81b
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 16 additions and 4 deletions

View file

@ -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
}

View file

@ -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"
}