about summary refs log tree commit diff
path: root/home/modules/profiles/base/config/waybar-settings.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2021-12-29 23:02:00 +0900
committersefidel <contact@sefidel.net>2021-12-29 23:02:00 +0900
commit7a5ffe349e9a0baecb3e8945fcb24ae5459ef1ad (patch)
tree158f654cd6ca18ec6e477cf33e887989e52429f6 /home/modules/profiles/base/config/waybar-settings.nix
parentbf5f17de233724d2453e398ff1d7d1d2b6cc3720 (diff)
downloadnixrc-7a5ffe349e9a0baecb3e8945fcb24ae5459ef1ad.tar.gz
nixrc-7a5ffe349e9a0baecb3e8945fcb24ae5459ef1ad.zip
home/base: improve waybar design
Diffstat (limited to 'home/modules/profiles/base/config/waybar-settings.nix')
-rw-r--r--home/modules/profiles/base/config/waybar-settings.nix19
1 files changed, 5 insertions, 14 deletions
diff --git a/home/modules/profiles/base/config/waybar-settings.nix b/home/modules/profiles/base/config/waybar-settings.nix
index 8cb3ef9..d563c4c 100644
--- a/home/modules/profiles/base/config/waybar-settings.nix
+++ b/home/modules/profiles/base/config/waybar-settings.nix
@@ -1,10 +1,10 @@
 {
   layer = "bottom";
   position = "top";
-  height = 17;
-  modules-left = [ "sway/workspaces" "sway/language" "cpu" "memory" ];
+  height = 21;
+  modules-left = [ "sway/workspaces" ];
   modules-center = [ "clock" ];
-  modules-right = [ "custom/weather" "pulseaudio" "network" "custom/nixos" ];
+  modules-right = [ "cpu" "memory" "custom/weather" "pulseaudio" "network" ];
 
   modules = {
     "sway/workspaces" = {
@@ -24,13 +24,9 @@
       };
     };
 
-    "sway/language" = {
-      format = " {long}";
-    };
-
     "clock" = {
       interval = 10;
-      format = "{:  %m/%d/%Y %I:%M %p}";
+      format = "{:  %a %d %H:%M}";
     };
 
     "cpu" = {
@@ -44,11 +40,6 @@
       interval = 3600;
     };
 
-    "custom/nixos" = {
-      format = "  {}";
-      exec = "/run/current-system/sw/bin/nixos-version | /run/current-system/sw/bin/grep -o '[0-9]\\+\\.[0-9]\\+' | /run/current-system/sw/bin/head -1";
-    };
-
     "network" = {
       interval = 5;
       interface = "enp4s0";
@@ -67,7 +58,7 @@
 
     "memory" = {
       interval = 5;
-      format = " {used:0.1f}G / {total:0.1f}G ({percentage:3}%)";
+      format = " {used:0.2f}GiB";
     };
   };
 }