From 79c2f4f17c7872663ce5a7566d0acf1c0d8b5dae Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Fri, 2 Aug 2024 13:05:49 +0400 Subject: restyle waybar - change font to the one that has nerd icons - replace some icons with better ones - battery widget shows current state of the battery - some animations - remove wrong gtk animations for workspaces widget --- .config/waybar/config | 56 +++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 29 deletions(-) (limited to '.config/waybar/config') diff --git a/.config/waybar/config b/.config/waybar/config index baf0ae8..8b60aaf 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -2,14 +2,12 @@ // vim:set syntax=json: { "layer": "top", + "reload_style_on_change": true, "modules-left": [ "hyprland/workspaces" ], - "modules-center": [ - "clock#time", - "clock#date" - ], + "modules-center": ["clock"], "modules-right": [ "network", "pulseaudio", @@ -22,17 +20,11 @@ "format-active": " {icon} ", "on-click": "activate" }, - - "clock#time": { - "format": "{:%H:%M:%S %Ez}", + "clock": { + "format": "{:%H:%M:%S %Ez %A, %Y-%m-%d}", "tooltip": false, "interval": 1 }, - "clock#date": { - "format": "{:%A, %Y-%m-%d}", - "tooltip": false - }, - "network": { "format-wifi": "{icon} {essid}", "format-ethernet": "{icon} {ifname}", @@ -46,36 +38,42 @@ "ethernet": "󰈀" } }, - "pulseaudio": { "format": "{icon} {volume:2}%", "format-bluetooth": "{icon} {volume}% ", - "format-muted": "MUTE", + "format-muted": "󰖁 MUTE", "format-icons": { "headphones": "", - "default": [ - "", - "" - ] + "default": ["󰕿", "󰖀", "󰕾"] }, "scroll-step": 5, "on-click": "pamixer -t", "on-click-right": "pavucontrol" }, "battery": { + "interval": 10, "states": { - "good": 95, - "warning": 30, - "critical": 15 + "crit": 15, + "warn": 30, + "half": 50, + "good": 75, + "high": 95, + "full": 100 }, - "format": "{icon} {capacity}%", - "format-icons": [ - "", - "", - "", - "", - "" - ] + "format-discharging-crit": "󰁺 {capacity}%", + "format-discharging-warn": "󰁼 {capacity}%", + "format-discharging-half": "󰁾 {capacity}%", + "format-discharging-good": "󰂀 {capacity}%", + "format-discharging-high": "󰂂 {capacity}%", + "format-discharging-full": "󰁹 {capacity}%", + "format-charging-crit": "󰢜 {capacity}%", + "format-charging-warn": "󰂇 {capacity}%", + "format-charging-half": "󰢝 {capacity}%", + "format-charging-good": "󰢞 {capacity}%", + "format-charging-high": "󰂋 {capacity}%", + "format-charging-full": "󰂅 {capacity}%", + "format": "{icon} {capacity}%", + "format-icons": ["󰁺", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"] }, "tray": { "spacing": 10 -- cgit v1.2.3