Compare commits

..

2 Commits

Author SHA1 Message Date
Sem
225538148d Add separate file for workspaces list 2026-04-07 23:37:14 +02:00
Sem
553a7b3ad4 Add comment for nerd fonts cheat sheet 2026-04-07 22:58:10 +02:00
3 changed files with 38 additions and 31 deletions

View File

@@ -8,6 +8,7 @@ Text {
id: root
// Nerd Font Bluetooth icon (nf-fa-bluetooth)
// cheat sheet: https://www.nerdfonts.com/cheat-sheet
property string iconGlyph: "\udb80\udcaf"
property string connectedIconGlyph: "\udb80\udcb1"
property string disconnectedIconGlyph: "\udb80\udcaf"

View File

@@ -28,37 +28,8 @@ Item {
id: workspaceHelpers
}
// =====================
// LEFT: Workspaces
// =====================
RowLayout {
spacing: 10
Repeater {
model: 10
Text {
required property int index
property int wsId: index + 1
property var ws: workspaceHelpers.getWorkspace(wsId)
text: wsId
color: workspaceHelpers.isWorkspaceActive(wsId) ? Colors.md3.primary : (ws ? Colors.md3.on_background : Colors.md3.on_secondary)
font {
family: Constants.fontFamily
pixelSize: Constants.fontSize
bold: true
}
MouseArea {
anchors.fill: parent
onClicked: Hyprland.dispatch("workspace " + wsId)
}
}
}
WorkspacesList {
id: workspacesList
}
// Spacer

View File

@@ -0,0 +1,35 @@
import Quickshell.Hyprland
import QtQuick
import QtQuick.Layouts
import "../constants"
RowLayout {
spacing: 10
Repeater {
model: 10
Text {
required property int index
property int wsId: index + 1
property var ws: workspaceHelpers.getWorkspace(wsId)
text: wsId
color: workspaceHelpers.isWorkspaceActive(wsId) ? Colors.md3.primary : (ws ? Colors.md3.on_background : Colors.md3.on_secondary)
font {
family: Constants.fontFamily
pixelSize: Constants.fontSize
bold: true
}
MouseArea {
anchors.fill: parent
onClicked: Hyprland.dispatch("workspace " + wsId)
}
}
}
}