mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2026-09-19 18:19:02 +05:30
refactor(bar): modularize bar widgets and layout
This commit is contained in:
29
config/BarLayout.qml
Normal file
29
config/BarLayout.qml
Normal file
@@ -0,0 +1,29 @@
|
||||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import qs.ui
|
||||
import qs.services
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
function widget(name: string): url {
|
||||
return `${Quickshell.shellPath("modules/bar")}/${name}.qml`;
|
||||
}
|
||||
|
||||
property var left: [
|
||||
root.widget("LauncherButton"),
|
||||
root.widget("BatteryIndicator"),
|
||||
root.widget("CavaVisualizer")
|
||||
]
|
||||
|
||||
property var center: [
|
||||
root.widget("Workspaces")
|
||||
]
|
||||
|
||||
property var right: [
|
||||
root.widget("SystemTrayWidget"),
|
||||
root.widget("ClockWidget"),
|
||||
root.widget("GhostButton")
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user