weather stuff

This commit is contained in:
mjallen18
2025-07-14 21:41:42 -05:00
parent 58ba094456
commit 9587efe719
15 changed files with 466 additions and 301 deletions

View File

@@ -151,30 +151,45 @@ in
"bluetooth" = {
on-click = "overskride";
tooltip = true;
format = "{format-off}";
format-disabled = "󰂲";
format-off = "󰂲";
format-on = "󰂯";
format-connected = "󰂱";
format = "{icon}";
tooltip-format = "{status}";
tooltip-format-disabled = "{status}";
tooltip-format-off = "{status}";
tooltip-format-on = "{status}";
tooltip-format-connected = "{status}";
tooltip-format-enumerate-connected = { };
format-icons = {
disabled = "󰂲";
off = "󰂲";
on = "󰂯";
connected = "󰂱";
};
};
network = {
interface = "wlan0";
format = "{ifname}";
format-wifi = ""; # "{essid} ({signalStrength}%) ";
format-ethernet = "󰊗"; # "{ipaddr}/{cidr} 󰊗";
format-disconnected = "" ; # An empty format will hide the module.
interface = hyprlandSettings.networkInterface;
on-click = "nm-connection-editor";
format = "{icon}";
tooltip-format = "{ifname} via {gwaddr} 󰊗";
tooltip-format-wifi = "{essid} ({signalStrength}%) ";
tooltip-format-wifi = ''
{essid} ({signalStrength}%) {icon}
{bandwidthDownBits} {bandwidthUpBits}
'';
tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected";
max-length = 50;
format-icons = {
wifi = [
"󰤯"
"󰤟"
"󰤢"
"󰤥"
"󰤨"
];
ethernet = "󰈀";
linked = "󰤫";
disconnected = "󰤫";
};
};
idle_inhibitor = {
@@ -245,6 +260,7 @@ in
interval = 30;
exec = "waybar-weather";
return-type = "json";
markup = "pango";
};
} // hyprlandSettings.waybar.extraModules or { };
};
@@ -253,6 +269,16 @@ in
# window.eDP-1 * { font-size: 10px; }
style = ''
.blink_me {
animation: blinker 1s linear infinite;
}
@keyframes blinker {
50% {
color: ${settings.theme.nord.aurora.nord11};
}
}
* {
font-family:
Jetbrains Mono Nerd Font,
@@ -321,6 +347,11 @@ in
margin-right: ${hyprlandSettings.waybar.moduleStyle.window.margin-right or "4rem"};
}
/* make window module transparent when no windows present */
#window.empty {
background-color: transparent;
}
#custom-weather {
color: ${settings.theme.nord.frost.nord10};
background-color: ${settings.theme.nord.polarNight.nord0};
@@ -367,6 +398,10 @@ in
padding-right: 15px;
}
#network:hover {
background: ${settings.theme.nord.polarNight.nord3};
}
#bluetooth {
color: ${settings.theme.nord.frost.nord9};
background-color: ${settings.theme.nord.polarNight.nord0};
@@ -387,6 +422,14 @@ in
border-radius: 0;
}
#wireplumber.source.muted {
animation-name: blinker;
animation-duration: 2s;
animation-timing-function: linear;
animation-iteration-count: infinite;
padding-right: 1rem;
}
#wireplumber.source:hover {
background: ${settings.theme.nord.polarNight.nord3};
}
@@ -399,6 +442,13 @@ in
border-radius: 0;
}
#wireplumber.sink.muted {
animation-name: blinker;
animation-duration: 5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
#wireplumber.sink:hover {
background: ${settings.theme.nord.polarNight.nord3};
}