diff options
Diffstat (limited to '.config/waybar')
-rw-r--r-- | .config/waybar/config | 19 | ||||
-rw-r--r-- | .config/waybar/style.css | 33 |
2 files changed, 27 insertions, 25 deletions
diff --git a/.config/waybar/config b/.config/waybar/config index 5e071549..21f3ae66 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,7 +1,7 @@ { - "position": "top", - "modules-left": ["sway/workspaces"], - "modules-center": ["clock", "custom/date"], + "position": "top", + "modules-left": ["clock", "custom/date", "custom/weather", "memory"], + "modules-center": ["sway/workspaces"], "modules-right": ["custom/wifi", "temperature", "pulseaudio", "battery"], "sway/workspaces": { @@ -51,6 +51,17 @@ "interval": 60, "exec": "~/.config/scripts/date.sh" }, + "custom/weather": { + "format": "{}°", + "tooltip": true, + "interval": 3600, + "exec": "wttrbar --hide-conditions", + "return-type": "json" + }, + "memory": { + "interval": 30, + "format": " {}%" + }, "battery": { "states": { "warning": 20, @@ -78,7 +89,7 @@ }, "temperature": { "interval": "5", - "hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input", + "hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input", "critical-threshold": 90, "format-critical": " {temperatureC}°C", "format": " {temperatureC}°C" diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 8d6f74aa..989ee905 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -19,10 +19,7 @@ tooltip { border-color: @lavender; } -#workspaces { - margin-left: 5px; - border-radius: 15px; -} +#workspaces { border-radius: 15px; } #workspaces button { padding-left: 10px; @@ -31,30 +28,20 @@ tooltip { color: @flamingo; } -#workspaces button.focused { - color: @sapphire; -} - -#workspaces button.urgent { - color: @sky; -} - -#workspaces button:hover { - color: @sapphire; -} +#workspaces button.focused { color: @sapphire; } +#workspaces button.urgent { color: @sky; } +#workspaces button:hover { color: @sapphire; } -#clock, #custom-date, #battery, #custom-wifi, +#clock, #custom-date, #custom-weather, #memory, #battery, #custom-wifi, #pulseaudio, #workspaces, #temperature { padding: 2px 7px; background: @surface0; margin-top: 5px; - margin-bottom: 5px; } #custom-wifi { color: @sky; - padding-left: 15px; - padding-right: 4px; + padding-left: 12px; border-radius: 15px 0px 0px 15px; } @@ -69,13 +56,17 @@ tooltip { } #clock { + margin-left: 5px; color: @sapphire; padding-left: 12px; border-radius: 15px 0px 0px 15px; } -#custom-date { - color: @red; +#custom-date { color: @red; } +#custom-weather { color: @yellow; } + +#memory { + color: @lavender; padding-right: 12px; border-radius: 0px 15px 15px 0px; } |