about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-09 01:18:30 +0900
committersefidel <contact@sefidel.net>2022-01-09 01:18:30 +0900
commit627bb2c4d06bbd4459150cb6b340e24d30b579fb (patch)
tree42cf72369cf9072d680d528edad71ff41d10cb25
parent7629d5e10f8b6b1e596231557d8e2de13eb19f46 (diff)
downloadnixrc-627bb2c4d06bbd4459150cb6b340e24d30b579fb.tar.gz
nixrc-627bb2c4d06bbd4459150cb6b340e24d30b579fb.zip
home/base: minimal-ish bar
-rw-r--r--home/modules/profiles/base/config/waybar-settings.nix22
-rw-r--r--home/modules/profiles/base/config/waybar-style.nix7
2 files changed, 5 insertions, 24 deletions
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 {