How to add a custom tab in the top drawer? #249
-
|
Hello, I am completely new to linux, like extremely fresh. What I have acheived so far is only due to vibe coding, and I am trying to figure out how to add an extra tab to the top drawer (with the label of something like perf or something, where I can put a GPU switch using "supergfxctl". And also putting a wattage discharge rate monitor there. (different tab to the cpu and gpu and ram monitor tab) I have tried using AI to help me edit the ~/.config/caelestia/shell.json , which Microsoft CoPilot tells me is the right file to edit, and pasting the following code for the tools I want (or at least some of it, to test if it works) the code: { Anyway, do you(all?) know how to create a 4th tab in the top drawer, like in the demo video, because it has proven to be a difficult challenge to me. And please explain to me in baby terms since I will probably not understand anything. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Edit TabBar {
id: bar
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
currentIndex: root.state.currentTab
background: null
Tab {
iconName: "dashboard"
text: qsTr("Dashboard")
}
Tab {
iconName: "queue_music"
text: qsTr("Media")
}
Tab {
iconName: "speed"
text: qsTr("Performance")
}
// Tab {
// iconName: "workspaces"
// text: qsTr("Workspaces")
// }
} |
Beta Was this translation helpful? Give feedback.
Edit
modules/dashboard/Tabs.qmland add the fourth tab there. It actually is there still after being commented out: