waybar: added config

This commit is contained in:
dogeystamp 2024-11-08 20:53:45 -05:00
parent 2643b14d7b
commit 2b0be912aa
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{
"layer": "top",
"reload_style_on_change": true,
"modules-left": ["niri/workspaces"],
"modules-center": ["niri/window"],
"modules-right": ["mpris", "network", "battery", "clock"],
"niri/window": {
"max-length": 50
},
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
}
},
"battery": {
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"states": {
"warning": 40,
"critical": 10,
}
},
"clock": {
"format": "{:%H:%M}",
},
"network": {
"format-wifi": "⇌",
"format-disconnected": "⚠"
},
"mpris": {
"format": "{artist} - {title} {status_icon}",
"format-paused": "{artist} - {title} {status_icon}",
"status-icons": {
"playing": "✗",
"paused": "•"
},
}
}

View File

@ -0,0 +1,27 @@
@import url("file:///etc/xdg/waybar/style.css");
.modules-left {
padding-left: 0.5em;
}
.modules-right {
padding-right: 0.5em;
}
#network,
#battery,
#clock {
background-color: transparent;
color: #ffffff;
}
#mpris {
margin-right: 0.5em;
}
#battery.warning:not(.charging) {
background-color: #99AABB;
}
window#waybar.chromium {
background-color: rgba(43, 48, 59, 0.5);
}