initial macbook hyprland stuffs

This commit is contained in:
mjallen18
2025-07-01 22:15:12 -05:00
parent fbb8cd9054
commit a142fd05e6
5 changed files with 117 additions and 25 deletions

View File

@@ -5,20 +5,29 @@ let
defaultOpacity = "opacity: 0.85;";
defaultBorderRadius = "border-radius: 1rem;";
defaultCenterOptions = ''
padding: 0.5rem 1rem;
margin: 5px 0;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 3px 0;
'';
borderRight = ''
padding: 0.5rem 1rem;
margin: 5px 0;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 3px 0;
border-radius: 0rem 1rem 1rem 0rem;
margin-right: 1rem;
margin-right: 0.5rem;
'';
borderLeft = ''
padding: 0.5rem 1rem;
margin: 5px 0;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 3px 0;
border-radius: 1rem 0rem 0rem 1rem;
margin-left: 1rem;
margin-left: 0.5rem;
'';
in
{
@@ -34,7 +43,7 @@ in
systemd.enable = true;
settings = {
mainBar = {
layer = "bottom";
layer = "top";
position = "top";
mod = "dock";
exclusive = true;
@@ -49,15 +58,17 @@ in
modules-right = [
"tray"
"custom/lights"
# "custom/lights"
"temperature"
"temperature#gpu"
"keyboard-state#capslock"
"keyboard-state#numlock"
"wireplumber#sink"
"wireplumber#source"
# "wireplumber#source"
"bluetooth"
"network"
"clock"
"battery"
"custom/weather"
];
@@ -202,6 +213,19 @@ in
tooltip-format-connected = "{status}";
tooltip-format-enumerate-connected = { };
};
network = {
interface = "wlan0";
format = "{ifname}";
format-wifi = ""; # "{essid} ({signalStrength}%) ";
format-ethernet = "󰊗"; # "{ipaddr}/{cidr} 󰊗";
format-disconnected = "" ; # An empty format will hide the module.
tooltip-format = "{ifname} via {gwaddr} 󰊗";
tooltip-format-wifi = "{essid} ({signalStrength}%) ";
tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected";
max-length = 50;
};
clock = {
format = "{:%I:%M %p}";
@@ -217,6 +241,18 @@ in
};
};
battery = {
# bat = "macsmc-ac";
interval = 60;
states = {
warning = 30;
critical = 15;
};
format = "{capacity}% {icon}";
format-icons = ["" "" "" "" ""];
max-length = 25;
};
"custom/weather" = {
tooltip = true;
format = { };
@@ -292,8 +328,8 @@ in
${defaultOpacity}
${defaultBorderRadius}
${defaultCenterOptions}
margin-left: 6rem;
margin-right: 6rem;
margin-left: 4rem;
margin-right: 100rem;
}
#custom-weather {
@@ -303,6 +339,14 @@ in
${borderRight}
}
#battery {
color: ${settings.nord.aurora.nord15};
background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity}
${defaultCenterOptions}
border-radius: 0;
}
#clock {
color: ${settings.nord.frost.nord9};
background-color: ${settings.nord.polarNight.nord0};
@@ -312,11 +356,20 @@ in
/* ------------- */
#network {
color: ${settings.nord.aurora.nord15};
background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity}
${borderRight}
padding-right: 15px;
}
#bluetooth {
color: ${settings.nord.frost.nord9};
background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity}
${borderRight}
${defaultCenterOptions}
border-radius: 0;
}
#wireplumber.source {
@@ -363,8 +416,7 @@ in
color: ${settings.nord.frost.nord9};
background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity}
${defaultCenterOptions}
border-radius: 0;
${borderLeft}
}
#custom-lights {