diff --git a/home-manager/modules/wms/waybar.nix b/home-manager/modules/wms/waybar.nix
index 34e8e43..5e94c18 100644
--- a/home-manager/modules/wms/waybar.nix
+++ b/home-manager/modules/wms/waybar.nix
@@ -9,7 +9,7 @@
modules-left = ["hyprland/workspaces" "hyprland/language" "keyboard-state" "hyprland/submap"];
modules-center = ["clock" "custom/weather"];
- modules-right = ["pulseaudio" "custom/mem" "cpu" "backlight" "battery" "tray"];
+ modules-right = ["pulseaudio" "backlight" "network" "battery" "tray"];
"hyprland/workspaces" = {
disable-scroll = true;
@@ -35,14 +35,14 @@
"clock" = {
# timezone = "America/New_York";
tooltip-format = "{:%Y %B}\n{calendar}";
- format = "{:%a; %d %b, %I:%M %p}";
+ format = "{:%a; %d %b, %R}";
};
"custom/weather" = {
format = "{}";
tooltip = true;
interval = 1800;
- exec = "$HOME/.config/waybar/scripts/wttr.py";
+ exec = "python3 $HOME/.config/waybar/scripts/wttr.py";
return-type = "json";
};
@@ -91,6 +91,20 @@
tooltip = false;
};
+ "network" = {
+ interface = "wlo1";
+ format = "{ifname}";
+ format-wifi = "{essid} ({signalStrength}%) ";
+ format-ethernet = "{ifname} ";
+ format-disconnected = "";
+ tooltip-format = "{ifname}";
+ tooltip-format-wifi = "{essid} ({signalStrength}%) ";
+ tooltip-format-ethernet = "{ifname} ";
+ tooltip-format-disconnected = "Disconnected";
+ max-length = 50;
+ on-click = "alacritty -e sh -c nmtui";
+ };
+
"backlight" = {
device = "intel_backlight";
format = "{percent}% {icon}";
@@ -228,6 +242,16 @@ window#waybar.hidden {
background: #383c4a;
}
+#network {
+ margin-right: 8px;
+ padding-left: 16px;
+ padding-right: 16px;
+ border-radius: 10px;
+ transition: none;
+ color: #ffffff;
+ background: #383c4a;
+}
+
#custom-weather {
padding-right: 16px;
border-radius: 0px 10px 10px 0px;