diff --git a/config/niri/waybar.jsonc b/config/niri/waybar.jsonc index 3365a64..769434f 100644 --- a/config/niri/waybar.jsonc +++ b/config/niri/waybar.jsonc @@ -11,11 +11,12 @@ "~/.config/waybar/modules/niri.json" ], "modules-left": ["niri/workspaces", "niri/window"], - "modules-center": ["clock", "temperature"], + "modules-center": ["clock"], "modules-right": [ "niri/language", "tray", "battery", + "temperature", "power-profiles-daemon", "idle_inhibitor", "backlight", diff --git a/config/waybar/modules/info.jsonc b/config/waybar/modules/info.jsonc index 64be0e9..4c4950f 100644 --- a/config/waybar/modules/info.jsonc +++ b/config/waybar/modules/info.jsonc @@ -12,7 +12,7 @@ "temperature": { "hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input", "format": " {temperatureC}°C", - "tooltip": false + "tooltip": false }, "battery": { @@ -88,6 +88,13 @@ "activated": "󰅶", "deactivated": "󰛊" } + }, + + "custom/timew": { + "exec": "~/bin/time.sh status", + "format": "󰚭 {text}", + "interval": 5, + "tooltip": false } } // vim: ft=jsonc diff --git a/config/waybar/style.css b/config/waybar/style.css index 1ca40db..df79efb 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -30,7 +30,7 @@ tooltip { } #language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, -#pulseaudio, #network, #backlight, #temperature { +#pulseaudio, #network, #backlight, #temperature, #custom-timew { background-color: @bg-darker-color; color: @fg-color; border-radius: 16px; @@ -46,7 +46,7 @@ tooltip { #idle_inhibitor { border-radius: 0 16px 16px 0; margin: 5px 5px 5px 0; } #network, #backlight { color: @blue; } -#cpu, #pulseaudio, #memory, #clock, #temperature { color: @active-bg-color; } +#cpu, #pulseaudio, #memory, #clock, #temperature, #custom-timew { color: @active-bg-color; } #language { color: @red; } #workspaces button { color: @active-bg-color; }