waybar: added config
This commit is contained in:
parent
2643b14d7b
commit
2b0be912aa
38
src/dot_config/private_waybar/private_config
Normal file
38
src/dot_config/private_waybar/private_config
Normal 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": "•"
|
||||
},
|
||||
}
|
||||
}
|
27
src/dot_config/private_waybar/style.css
Normal file
27
src/dot_config/private_waybar/style.css
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user