2023-01-03 21:17:49 -05:00
|
|
|
{ config, pkgs, ... }:
|
2022-01-06 21:14:02 -05:00
|
|
|
{
|
|
|
|
programs.waybar = {
|
2024-05-11 20:16:58 -04:00
|
|
|
enable = false;
|
2022-03-04 09:50:43 -05:00
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
settings =
|
|
|
|
let spanfa = "<span font=\"Font Awesome 5 Regular 11\">";
|
|
|
|
in [{
|
2024-02-11 00:25:26 -05:00
|
|
|
layer = "top";
|
2022-09-24 23:30:38 -04:00
|
|
|
height = 32;
|
2022-09-23 17:23:08 -04:00
|
|
|
margin = "8 8 0";
|
|
|
|
|
2024-02-09 17:17:48 -05:00
|
|
|
modules-left = [ "hyprland/workspaces" "custom/sep" "cpu" "memory" "temperature" ];
|
|
|
|
|
|
|
|
modules-center = [ "hyprland/window" ];
|
2023-01-03 21:17:49 -05:00
|
|
|
|
|
|
|
modules-right =
|
2023-01-07 20:52:23 -05:00
|
|
|
if config.platform == "laptop" then
|
2023-01-03 21:17:49 -05:00
|
|
|
[ "battery" "pulseaudio" "backlight" "network" "clock" "idle_inhibitor" ]
|
|
|
|
else
|
|
|
|
[ "pulseaudio" "network" "clock" "idle_inhibitor" ];
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
|
|
|
|
modules = {
|
|
|
|
"mpd" = {
|
|
|
|
format = "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ";
|
|
|
|
format-disconnected = "Disconnected ";
|
|
|
|
format-stopped = "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ";
|
|
|
|
unknown-tag = "N/A";
|
|
|
|
interval = 2;
|
|
|
|
|
|
|
|
consume-icons.on = " ";
|
|
|
|
random-icons.off = "<span color=\"#f53c3c\"></span> ";
|
|
|
|
random-icons.on = " ";
|
|
|
|
repeat-icons.on = " ";
|
|
|
|
single-icons.on = "1 ";
|
|
|
|
state-icons.paused = "";
|
|
|
|
state-icons.playing = "";
|
|
|
|
|
|
|
|
tooltip-format = "MPD (connected)";
|
|
|
|
tooltip-format-disconnected = "MPD (disconnected)";
|
|
|
|
};
|
|
|
|
"idle_inhibitor" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons.activated = "";
|
|
|
|
format-icons.deactivated = "";
|
|
|
|
};
|
|
|
|
"tray" = {
|
|
|
|
# icon-size = 21;
|
|
|
|
spacing = 10;
|
|
|
|
};
|
|
|
|
"clock" = {
|
|
|
|
format = "<span font_family=\"Font Awesome 6 Pro Solid 11\"></span> {:%H:%M}";
|
|
|
|
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
|
|
|
format-alt = " {:%Y-%m-%d}";
|
|
|
|
};
|
|
|
|
"cpu" = {
|
2023-08-09 20:31:38 -04:00
|
|
|
format = "<big> </big>{usage}%";
|
2022-09-23 17:23:08 -04:00
|
|
|
tooltip = false;
|
|
|
|
};
|
|
|
|
"battery" = {
|
|
|
|
states.warning = 30;
|
|
|
|
states.low = 15;
|
|
|
|
states.critical = 5;
|
|
|
|
|
2023-08-09 20:31:38 -04:00
|
|
|
format = "<big>{icon}</big> {capacity}%";
|
|
|
|
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
|
|
|
format-charging = " {capacity}%";
|
2022-09-23 17:23:08 -04:00
|
|
|
format-time = "{H}h {M}m";
|
|
|
|
};
|
|
|
|
"memory" = {
|
|
|
|
format = "${spanfa}<small></small></span> {}%";
|
|
|
|
};
|
|
|
|
"temperature" = {
|
|
|
|
# thermal-zone = 2;
|
|
|
|
# hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
|
2022-09-24 23:30:38 -04:00
|
|
|
critical-threshold = 80;
|
2022-09-23 17:23:08 -04:00
|
|
|
format = "${spanfa}<small>{icon}</small></span> {temperatureC}°C";
|
|
|
|
format-icons = [ "" "" "" "" "" ];
|
|
|
|
};
|
|
|
|
"backlight" = {
|
|
|
|
# device = "acpi_video1";
|
2023-08-09 20:31:38 -04:00
|
|
|
format = "<span size=\"12pt\" rise=\"-0.5pt\">{icon}</span><span size=\"13pt\"> </span>{percent}%";
|
|
|
|
format-icons = [ "" "" "" "" "" ];
|
2022-09-23 17:23:08 -04:00
|
|
|
};
|
|
|
|
"network" = {
|
|
|
|
# interface = "wlp2*"; # (Optional) To force the use of this interface
|
|
|
|
format = "{ifname}";
|
|
|
|
format-wifi = "${spanfa}<small></small></span> Online";
|
|
|
|
format-ethernet = "${spanfa} </span>";
|
|
|
|
format-disconnected = "";
|
|
|
|
tooltip-format-wifi = "{essid} - {signalStrength}%";
|
|
|
|
tooltip-format-ethernet = "{signalStrength}%";
|
|
|
|
tooltip-format-disconnected = "";
|
|
|
|
};
|
|
|
|
"pulseaudio" = {
|
|
|
|
scroll-step = 1;
|
|
|
|
smooth-scrolling-threshold = 2.0;
|
2022-09-23 23:43:34 -04:00
|
|
|
format = "${spanfa}{icon}</span> {volume}%";
|
|
|
|
format-bluetooth = " ${spanfa}{icon}</span> {volume}%";
|
|
|
|
format-bluetooth-muted = "${spanfa} </span> 0%";
|
|
|
|
format-muted = "${spanfa}</span> {volume}%";
|
2022-09-23 17:23:08 -04:00
|
|
|
|
|
|
|
format-icons.headphone = "";
|
|
|
|
format-icons.phone = "";
|
|
|
|
format-icons.portable = "";
|
|
|
|
format-icons.car = "";
|
2022-09-23 23:43:34 -04:00
|
|
|
format-icons.default = [ "" "" "" ];
|
2022-09-23 17:23:08 -04:00
|
|
|
|
|
|
|
on-click = "pamixer -t";
|
|
|
|
};
|
|
|
|
"custom/media" = {
|
|
|
|
format = "{icon} {}";
|
|
|
|
return-type = "json";
|
|
|
|
max-length = 40;
|
|
|
|
|
|
|
|
format-icons.spotify = "";
|
|
|
|
format-icons.default = "🎜";
|
|
|
|
|
|
|
|
escape = true;
|
|
|
|
};
|
|
|
|
"custom/sep".format = "";
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
2022-09-23 17:23:08 -04:00
|
|
|
}];
|
2022-01-06 21:14:02 -05:00
|
|
|
|
|
|
|
style =
|
|
|
|
''
|
2022-09-23 17:23:08 -04:00
|
|
|
@define-color background #1a1b26;
|
|
|
|
@define-color foreground #a9b1d6;
|
|
|
|
@define-color red #ce7284;
|
|
|
|
@define-color green #7dc5a0;
|
|
|
|
@define-color yellow #caaa6a;
|
|
|
|
@define-color blue #7bc5e4;
|
|
|
|
@define-color magenta #ad8ee6;
|
|
|
|
@define-color altred #d5556f;
|
|
|
|
@define-color altgreen #b9f27c;
|
|
|
|
@define-color altyellow #ff9e64;
|
|
|
|
@define-color altblend #282e49;
|
|
|
|
@define-color empty #474f6f;
|
|
|
|
@define-color pink #c386c0;
|
|
|
|
@define-color violet #8682de;
|
|
|
|
|
2022-01-06 21:14:02 -05:00
|
|
|
* {
|
|
|
|
border: none;
|
2022-09-23 17:23:08 -04:00
|
|
|
font-family: "JetBrainsMono Nerd Font", monospace;
|
|
|
|
font-size: 13px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
window#waybar {
|
2022-09-23 17:23:08 -04:00
|
|
|
background-color: @background;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: @foreground;
|
2022-09-24 23:30:38 -04:00
|
|
|
padding: 3px 0px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#custom-sep {
|
|
|
|
color: @altblend;
|
|
|
|
font-size: 14px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#workspaces {
|
|
|
|
margin-left: 6px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button {
|
2022-09-24 23:30:38 -04:00
|
|
|
padding: 0px 3px;
|
|
|
|
border-radius: 0px;
|
2022-09-23 17:23:08 -04:00
|
|
|
color: @blue;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button:hover {
|
2022-09-23 17:23:08 -04:00
|
|
|
box-shadow: inherit;
|
|
|
|
background: @background;
|
|
|
|
border: none;
|
2022-09-24 23:30:38 -04:00
|
|
|
padding: 0px 3px;
|
2024-02-09 17:17:48 -05:00
|
|
|
text-shadow: 0px 0px 2px shade(@blue, 1.1);
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2024-02-09 17:17:48 -05:00
|
|
|
#workspaces button.active {
|
2022-09-23 17:23:08 -04:00
|
|
|
color: shade(@pink, 1.1);
|
2022-09-24 23:30:38 -04:00
|
|
|
text-shadow: 0px 0px 2px shade(@pink, 1.2);
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2024-02-20 01:15:16 -05:00
|
|
|
#workspaces button.urgent {
|
|
|
|
background-color: @altred;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
2022-01-06 21:14:02 -05:00
|
|
|
#clock,
|
|
|
|
#battery,
|
|
|
|
#cpu,
|
|
|
|
#memory,
|
|
|
|
#disk,
|
|
|
|
#temperature,
|
|
|
|
#network,
|
|
|
|
#custom-media,
|
|
|
|
#tray,
|
|
|
|
#mode,
|
|
|
|
#idle_inhibitor,
|
|
|
|
#mpd {
|
2022-09-24 23:30:38 -04:00
|
|
|
margin: 0px 8px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#idle_inhibitor {
|
2022-09-24 23:30:38 -04:00
|
|
|
padding: 0px 8px 0px 0px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-09-25 00:43:44 -04:00
|
|
|
#cpu {
|
2022-09-23 17:23:08 -04:00
|
|
|
background-color: @altblend;
|
2022-09-24 23:30:38 -04:00
|
|
|
margin: 3px 0px 3px 2px;
|
2022-09-23 17:23:08 -04:00
|
|
|
padding-right: 5px;
|
|
|
|
padding-left: 8px;
|
2022-09-24 23:30:38 -04:00
|
|
|
border-radius: 18px 0px 0px 18px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2022-09-25 00:43:44 -04:00
|
|
|
#pulseaudio {
|
|
|
|
background-color: @altblend;
|
|
|
|
${
|
2023-01-07 20:52:23 -05:00
|
|
|
if config.platform == "laptop" then
|
2022-09-25 00:43:44 -04:00
|
|
|
''
|
|
|
|
margin: 3px 0px 3px 2px;
|
|
|
|
padding-right: 5px;
|
|
|
|
padding-left: 8px;
|
|
|
|
border-radius: 18px 0px 0px 18px;
|
|
|
|
''
|
|
|
|
else
|
|
|
|
''
|
|
|
|
margin: 3px 2px;
|
|
|
|
padding: 0px 8px;
|
|
|
|
border-radius: 18px;
|
|
|
|
''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#backlight, #memory {
|
|
|
|
background-color: @altblend;
|
2022-09-24 23:30:38 -04:00
|
|
|
margin: 3px 4px 3px 0px;
|
2022-09-23 17:23:08 -04:00
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 8px;
|
2022-09-24 23:30:38 -04:00
|
|
|
border-radius: 0px 18px 18px 0px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#network {
|
2022-09-23 17:23:08 -04:00
|
|
|
background-color: @altblend;
|
|
|
|
margin: 3px 4px;
|
2022-09-24 23:30:38 -04:00
|
|
|
padding: 0px 6px;
|
2022-09-23 17:23:08 -04:00
|
|
|
border-radius: 18px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#window {
|
|
|
|
font-family: "NotoSans Nerd Font";
|
|
|
|
font-size: 12px;
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|
|
|
|
|
2022-09-25 00:43:44 -04:00
|
|
|
#mode {
|
|
|
|
color: @magenta;
|
|
|
|
text-shadow: 0px 0px 2px shade(@magenta, 1.05);
|
|
|
|
}
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#cpu {color: @green;}
|
|
|
|
#memory {color: @yellow;}
|
|
|
|
#temperature {color: @blue;}
|
|
|
|
#clock {color: @blue;}
|
|
|
|
|
2022-09-24 23:30:38 -04:00
|
|
|
#temperature {color: @blue;}
|
|
|
|
#temperature.critical {color: @altyellow;}
|
|
|
|
|
|
|
|
@keyframes blink { to { color: @background; } }
|
|
|
|
|
2022-09-23 17:23:08 -04:00
|
|
|
#battery {color: @green;}
|
|
|
|
#battery.warning:not(.charging) {color: @altyellow;}
|
|
|
|
#battery.low:not(.charging) {color: @altred;}
|
2022-09-24 23:30:38 -04:00
|
|
|
#battery.critical:not(.charging) {
|
|
|
|
color: #ff2525;
|
|
|
|
animation-name: blink;
|
|
|
|
animation-duration: 1s;
|
|
|
|
animation-timing-function: linear;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-direction: alternate;
|
|
|
|
}
|
2022-09-23 17:23:08 -04:00
|
|
|
|
|
|
|
#backlight {color: @yellow;}
|
|
|
|
#network {color: @green;}
|
|
|
|
#pulseaudio {color: @pink;}
|
|
|
|
#pulseaudio.muted {color: @red;}
|
|
|
|
#idle_inhibitor.deactivated {color: @altred;}
|
|
|
|
#idle_inhibitor.activated {color: @altgreen;}
|
2022-01-06 21:14:02 -05:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|