From 627bb2c4d06bbd4459150cb6b340e24d30b579fb Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 9 Jan 2022 01:18:30 +0900 Subject: home/base: minimal-ish bar --- .../profiles/base/config/waybar-settings.nix | 22 +++------------------- home/modules/profiles/base/config/waybar-style.nix | 7 ++----- 2 files changed, 5 insertions(+), 24 deletions(-) (limited to 'home/modules/profiles/base/config') diff --git a/home/modules/profiles/base/config/waybar-settings.nix b/home/modules/profiles/base/config/waybar-settings.nix index d563c4c..2917e00 100644 --- a/home/modules/profiles/base/config/waybar-settings.nix +++ b/home/modules/profiles/base/config/waybar-settings.nix @@ -2,9 +2,9 @@ layer = "bottom"; position = "top"; height = 21; - modules-left = [ "sway/workspaces" ]; - modules-center = [ "clock" ]; - modules-right = [ "cpu" "memory" "custom/weather" "pulseaudio" "network" ]; + modules-left = [ "pulseaudio" "cpu" "memory" ]; + modules-center = [ "sway/workspaces" ]; + modules-right = [ "clock" ]; modules = { "sway/workspaces" = { @@ -34,22 +34,6 @@ format = " {usage:3}%"; }; - "custom/weather" = { - format = " {}"; - exec = "curl 'wttr.in/?format='%t+-+%x+%C++%w'&M'"; - interval = 3600; - }; - - "network" = { - interval = 5; - interface = "enp4s0"; - format = " {ifname}"; - format-wifi = " {essid}  {bandwidthUpBits}  {bandwidthDownBits}"; - format-ethernet = "  {bandwidthUpBits:>}  {bandwidthDownBits:>}"; - format-disconnected = " Disconnected"; - max-length = 50; - }; - "pulseaudio" = { format = "{icon} {volume}%"; format-muted = "ﱝ Muted"; diff --git a/home/modules/profiles/base/config/waybar-style.nix b/home/modules/profiles/base/config/waybar-style.nix index f3c51cc..0a7fd84 100644 --- a/home/modules/profiles/base/config/waybar-style.nix +++ b/home/modules/profiles/base/config/waybar-style.nix @@ -14,18 +14,17 @@ with neotheme.colors; window#waybar { background: #${background}; color: #${foreground}; + padding: 10px; } #workspaces button { padding: 0 8px; background: #${color4}; color: #${background}; - border-bottom: 3px solid rgba (255, 255, 255, .2); } #workspaces button.focused { background-color: #${color4}; - border-bottom: 3px solid #${background}; } #workspaces button:hover { @@ -43,13 +42,11 @@ with neotheme.colors; #pulseaudio, #tray, #mode, - #mpd, - #custom-weather { + #mpd { padding: 0 10px; margin: 0 4px; color: #${background}; background-color: #${color4}; - border-bottom: 3px solid rgba (255, 255, 255, .2); } @keyframes blink { -- cgit 1.4.1