waybar: more style changes

This commit is contained in:
dogeystamp 2024-12-24 23:12:20 -05:00
parent 5c361a20a5
commit 85fbf31254
No known key found for this signature in database
3 changed files with 29 additions and 18 deletions

View File

@ -7,7 +7,7 @@ ttf-roboto
inter-font inter-font
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji
ttf-font-awesome ttf-nerd-fonts-symbols
gsfonts gsfonts
git git
xwallpaper xwallpaper

View File

@ -3,22 +3,26 @@
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": ["niri/workspaces"], "modules-left": ["niri/workspaces"],
"modules-center": ["niri/window"], "modules-center": ["niri/window"],
"modules-right": ["mpris", "pulseaudio", "network", "battery", "clock"], "modules-right": ["pulseaudio", "network", "battery", "clock"],
"niri/window": { "niri/window": {
"max-length": 50 "max-length": 50
}, },
"niri/workspaces": { "niri/workspaces": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"active": "", "active": "󱓻",
"default": "" "default": "󱓼"
} }
}, },
"battery": { "battery": {
"format-full": "{icon}", "format-full": "{icon}",
"format": "<small>{capacity}%</small> {icon} ", "format": "{icon} <small> {capacity}%</small>",
"format-charging": "󰂄 <small> {capacity}%</small>",
"tooltip-format": "{capacity}%", "tooltip-format": "{capacity}%",
"format-icons": ["", "", "", "", ""], "format-icons": {
"default": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"charging": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂋", "󰂅"],
},
"states": { "states": {
"warning": 40, "warning": 40,
"critical": 10, "critical": 10,
@ -30,9 +34,10 @@
"tooltip": true, "tooltip": true,
}, },
"network": { "network": {
"format-wifi": "", "format-wifi": "{icon}",
"format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"],
"tooltip-format": "{essid} ({signalStrength}%)", "tooltip-format": "{essid} ({signalStrength}%)",
"format-disconnected": "", "format-disconnected": "󱡺",
"max-length": 20 "max-length": 20
}, },
"inhibitor": { "inhibitor": {
@ -55,9 +60,9 @@
"pulseaudio": { "pulseaudio": {
"format": "{icon}", "format": "{icon}",
"tooltip-format": "{volume}%", "tooltip-format": "{volume}%",
"format-muted": "", "format-muted": "󰖁",
"format-icons": { "format-icons": {
"default": ["", ""] "default": ["󰕿", "󰖀", "󰕾"]
}, },
}, },
} }

View File

@ -1,7 +1,7 @@
@import url("file:///etc/xdg/waybar/style.css"); @import url("file:///etc/xdg/waybar/style.css");
* { * {
font-family: FontAwesome, Inter Display font-family: Symbols Nerd Font, Inter Display
} }
.modules-left { .modules-left {
@ -21,28 +21,34 @@
color: inherit; color: inherit;
} }
/* icon fonts */ /* icons */
#network, #network,
#battery, #battery,
#pulseaudio, #pulseaudio.muted, #pulseaudio:hover, #pulseaudio, #pulseaudio.muted, #pulseaudio:hover,
#mpris { #mpris {
font-size: 0.9em; padding: 0.1em;
} margin: 0.3em;
min-width: 1em;
#mpris {
margin-right: .6em;
} }
#battery.warning:not(.charging) { #battery.warning:not(.charging) {
background-color: #99AABB; background-color: #99AABB;
} }
#battery.charging {
background-color: inherit;
}
#network.disconnected {
background-color: inherit;
}
window#waybar.chromium { window#waybar.chromium {
background-color: rgba(43, 48, 59, 0.5); background-color: rgba(43, 48, 59, 0.5);
} }
#workspaces * { #workspaces * {
font-size: 0.8em; font-size: 0.9em;
} }
#workspaces button:hover { #workspaces button:hover {