mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
swap usage: don't show when zero and there's music
This commit is contained in:
parent
f9a8138264
commit
9164ad2471
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ Rectangle {
|
|||
Resource {
|
||||
iconName: "swap_horiz"
|
||||
percentage: ResourceUsage.swapUsedPercentage
|
||||
shown: ConfigOptions.bar.resources.alwaysShowSwap || (MprisController.activePlayer?.trackTitle == null)
|
||||
shown: (ConfigOptions.bar.resources.alwaysShowSwap && percentage > 0) || (MprisController.activePlayer?.trackTitle == null)
|
||||
Layout.leftMargin: shown ? 4 : 0
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue