diff --git a/configs/waybar/config b/configs/waybar/config index ebfc22d..244288d 100644 --- a/configs/waybar/config +++ b/configs/waybar/config @@ -2,7 +2,7 @@ "position": "top", "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": [], - "modules-right": ["idle_inhibitor", "cpu", "temperature", "memory", "custom/loadavg", "network", "pulseaudio", "battery", "sway/language", "clock", "tray"], + "modules-right": ["idle_inhibitor", "cpu", "temperature", "memory", "custom/loadavg", "custom/uptime", "network", "pulseaudio", "battery", "sway/language", "clock", "tray"], "sway/mode": { "format": "{}" }, @@ -42,6 +42,12 @@ "format": "Load average: {}", "interval": 1 }, + "custom/uptime": { + "exec": "uptime -p | sed 's/up //g' -", + "return-type": "{}", + "format": "Uptime: {}", + "interval": 60, + }, "temperature": { "format": "Temperature: {temperatureC}°C", "interval": 1 diff --git a/configs/waybar/style.css b/configs/waybar/style.css index 57a6c0c..b2b7772 100644 --- a/configs/waybar/style.css +++ b/configs/waybar/style.css @@ -57,7 +57,7 @@ button:hover { border-radius: 32px; } -#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd, #custom-loadavg { +#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd, #custom-loadavg, #custom-uptime { padding: 0 8px; }