4 files changed,
31 insertions(+),
12 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2025-06-13 17:04:07 +0300
Parent:
e30bf56
M
config/niri/waybar.jsonc
··· 13 13 "modules-left": ["niri/workspaces", "niri/window"], 14 14 "modules-center": ["clock"], 15 15 "modules-right": [ 16 - "memory", 17 - "cpu", 16 + "niri/language", 18 17 "tray", 19 - "niri/language", 18 + "pulseaudio", 19 + "battery", 20 20 "backlight", 21 - "battery", 22 - "pulseaudio", 21 + "power-profiles-daemon", 23 22 "network" 24 23 ] 25 24 }
M
config/waybar/modules/info.json
··· 6 6 7 7 "clock": { 8 8 "format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format 9 - "tooltip": true, 10 - "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", 11 - "on-click": "morgen" 12 9 }, 13 10 14 11 "battery": { 15 12 "format": "{icon} {capacity}%", 16 13 "format-charging": "{icon} {capacity}%", 17 14 "format-plugged": "{capacity}% ", 18 - "format-alt": "{icon} {time}", 19 15 "format-icons": ["", "", "", "", ""], 20 - "tooltip": false, 16 + "tooltip": true, 17 + "tooltip-format": "Left {time} \nHealth: {health}", 21 18 "states": { 22 19 "good": 95, 23 20 "warning": 30, 24 21 "critical": 15 22 + } 23 + }, 24 + 25 + "power-profiles-daemon": { 26 + "format": "{icon}", 27 + "tooltip-format": "{profile}", 28 + "tooltip": true, 29 + "format-icons": { 30 + "default": "", 31 + "performance": "", 32 + "balanced": "", 33 + "power-saver": "" 25 34 } 26 35 }, 27 36
M
config/waybar/style.css
··· 24 24 color: @fg-color; 25 25 } 26 26 27 -#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #pulseaudio, #network, #backlight { 27 +tooltip { 28 + background: @bg-color; 29 + border: 1px solid @bg-darker-color; 30 +} 31 + 32 +#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight { 28 33 background-color: @bg-darker-color; 29 34 color: @fg-color; 30 35 border-radius: 16px; ··· 55 60 color: black; 56 61 } 57 62 58 -#clock { font-weight: bold; } 59 63 #battery.charging { color: @green; } 60 64 #battery.warning:not(.charging) { color: @red; } 65 + 66 +#clock { font-weight: bold; } 61 67 #pulseaudio.muted { color: @red; } 68 + 69 +#power-profiles-daemon.performance { color: @blue; } 70 +#power-profiles-daemon.balanced { color: @green; } 71 +#power-profiles-daemon.power-saver { color: @red; }