summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/Workspace.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
commit96429160c30ba5f6dcd25c8e6a181221195c41d8 (patch)
tree6f95bac8f3056abae67c04ae612b574ce1c37286 /modules/bar/components/workspaces/Workspace.qml
parentinternal: properly fix beat detector (diff)
downloadcaelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.gz
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.bz2
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.zip
feat: user config file
Config file at `~/.config/caelestia/shell.json`
Diffstat (limited to 'modules/bar/components/workspaces/Workspace.qml')
-rw-r--r--modules/bar/components/workspaces/Workspace.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml
index fa5fe62..6cf5c40 100644
--- a/modules/bar/components/workspaces/Workspace.qml
+++ b/modules/bar/components/workspaces/Workspace.qml
@@ -19,7 +19,7 @@ Item {
readonly property int ws: groupOffset + index + 1
readonly property bool isOccupied: occupied[ws] ?? false
- readonly property bool hasWindows: isOccupied && BarConfig.workspaces.showWindows
+ readonly property bool hasWindows: isOccupied && Config.bar.workspaces.showWindows
Layout.preferredWidth: childrenRect.width
Layout.preferredHeight: size
@@ -27,24 +27,24 @@ Item {
StyledText {
id: indicator
- readonly property string label: BarConfig.workspaces.label || root.ws
- readonly property string occupiedLabel: BarConfig.workspaces.occupiedLabel || label
- readonly property string activeLabel: BarConfig.workspaces.activeLabel || (root.isOccupied ? occupiedLabel : label)
+ readonly property string label: Config.bar.workspaces.label || root.ws
+ readonly property string occupiedLabel: Config.bar.workspaces.occupiedLabel || label
+ readonly property string activeLabel: Config.bar.workspaces.activeLabel || (root.isOccupied ? occupiedLabel : label)
animate: true
text: Hyprland.activeWsId === root.ws ? activeLabel : root.isOccupied ? occupiedLabel : label
- color: BarConfig.workspaces.occupiedBg || root.isOccupied || Hyprland.activeWsId === root.ws ? Colours.palette.m3onSurface : Colours.palette.m3outlineVariant
+ color: Config.bar.workspaces.occupiedBg || root.isOccupied || Hyprland.activeWsId === root.ws ? Colours.palette.m3onSurface : Colours.palette.m3outlineVariant
horizontalAlignment: StyledText.AlignHCenter
verticalAlignment: StyledText.AlignVCenter
- width: BarConfig.sizes.innerHeight
- height: BarConfig.sizes.innerHeight
+ width: Config.bar.sizes.innerHeight
+ height: Config.bar.sizes.innerHeight
}
Loader {
id: windows
- active: BarConfig.workspaces.showWindows
+ active: Config.bar.workspaces.showWindows
asynchronous: true
anchors.horizontalCenter: indicator.horizontalCenter