allow swap and cpu usage to always be shown (#1210)

This commit is contained in:
end-4 2025-04-07 17:40:59 +02:00
parent 9c5dad1cc6
commit 5546384cd5
2 changed files with 3 additions and 1 deletions

View file

@ -277,6 +277,8 @@
}
},
"bar": {
// Whether to show Swap and CPU usage when there's media. RAM is always shown.
"alwaysShowFullResources": false,
// Array of bar modes for each monitor. Hit Ctrl+Alt+Slash to cycle.
// Modes: "normal", "focus" (workspace indicator only), "nothing"
// Example for four monitors: ["normal", "focus", "normal", "nothing"]

View file

@ -210,7 +210,7 @@ export default () => {
}),
setup: (self) => self.hook(Mpris, label => {
const mpris = Mpris.getPlayer('');
self.revealChild = (!mpris);
self.revealChild = (!mpris || userOptions.bar.alwaysShowFullResources);
}),
})
],