2022-12-29 20:55:37 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
home.packages = with pkgs; [ at-spi2-atk ];
|
|
|
|
|
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
settings = [{
|
|
|
|
modules-left = [ "river/tags" ];
|
|
|
|
modules-center = [ "river/window" ];
|
|
|
|
modules-right = [ "tray" "pulseaudio" "battery" "network" "clock" ];
|
2023-05-26 15:12:01 +02:00
|
|
|
clock.format = ''{: %m/%d <span color="#a89984">|</span> %H:%M}'';
|
2023-01-07 20:29:48 +01:00
|
|
|
network = {
|
|
|
|
format-icons = [
|
2023-05-26 15:12:01 +02:00
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
2023-01-07 20:29:48 +01:00
|
|
|
];
|
|
|
|
format = "({ifname})";
|
|
|
|
format-wifi = "{icon} {signalStrength}";
|
2023-05-26 15:12:01 +02:00
|
|
|
format-disconnected = ''<span color="#a89974"> </span>'';
|
|
|
|
format-ethernet = "";
|
2023-01-07 20:29:48 +01:00
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
good = 95;
|
|
|
|
warning = 50;
|
|
|
|
critical = 20;
|
2022-12-29 20:55:37 +01:00
|
|
|
};
|
2023-05-26 15:12:01 +02:00
|
|
|
|
2023-01-07 20:29:48 +01:00
|
|
|
format-icons = {
|
|
|
|
discharging = [
|
2023-05-26 15:12:01 +02:00
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
2023-01-07 20:29:48 +01:00
|
|
|
]; #
|
|
|
|
charging = [
|
2023-05-26 15:12:01 +02:00
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fb4944"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#fabd2f"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
2023-01-07 20:29:48 +01:00
|
|
|
]; #
|
2022-12-29 20:55:37 +01:00
|
|
|
};
|
2023-05-26 15:12:01 +02:00
|
|
|
format = " {capacity}";
|
|
|
|
format-full = "";
|
|
|
|
format-good-charging = " ";
|
|
|
|
format-plugged = " ";
|
2023-01-07 20:29:48 +01:00
|
|
|
format-charging = "{icon} {capacity}";
|
|
|
|
format-discharging = "{icon} {capacity} ({time})";
|
|
|
|
interval = 5;
|
|
|
|
};
|
|
|
|
pulseaudio = {
|
|
|
|
states = {
|
|
|
|
high = 101;
|
|
|
|
very_high = 111;
|
2022-12-29 20:55:37 +01:00
|
|
|
};
|
2023-01-07 20:29:48 +01:00
|
|
|
format-icons = [
|
2023-05-26 15:12:01 +02:00
|
|
|
''<span color="#a89974"> </span>''
|
|
|
|
''<span color="#83a587"> </span>''
|
|
|
|
''<span color="#b8bb26"> </span>''
|
2023-01-07 20:29:48 +01:00
|
|
|
];
|
|
|
|
format = "{icon} {volume}";
|
2023-05-26 15:12:01 +02:00
|
|
|
format-bluetooth = " {icon} {volume}";
|
2023-06-02 10:54:40 +02:00
|
|
|
format-muted = " ";
|
2022-12-29 20:55:37 +01:00
|
|
|
};
|
2023-01-07 20:29:48 +01:00
|
|
|
|
|
|
|
tray.icon-size = 14;
|
2022-12-29 20:55:37 +01:00
|
|
|
}];
|
|
|
|
style = ''
|
|
|
|
* {
|
|
|
|
border-radius: 0px;
|
|
|
|
border: none;
|
|
|
|
font-family: Inter, "mplus Nerd Font";
|
|
|
|
font-size: 13px;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
window#waybar {
|
|
|
|
background-color: #282828;
|
|
|
|
color: #ebdbb2;
|
|
|
|
}
|
|
|
|
|
|
|
|
#window {
|
|
|
|
color: #fbf1c7;
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags {
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags button {
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
color: #a89984;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags button.occupied {
|
|
|
|
color: #fbf1c7;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags button.focused {
|
|
|
|
background-color: #458588;
|
|
|
|
color: #fbf1c7;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags button.urgent {
|
|
|
|
background-color: #cc241d;
|
|
|
|
color: #fbf1c7;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tray,
|
|
|
|
#pulseaudio,
|
|
|
|
#battery,
|
|
|
|
#network,
|
|
|
|
#cpu,
|
|
|
|
#memory,
|
|
|
|
#clock {
|
|
|
|
color: #fbf1c7;
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tray,
|
|
|
|
#pulseaudio,
|
|
|
|
#battery,
|
|
|
|
#cpu,
|
|
|
|
#memory,
|
|
|
|
#network {
|
|
|
|
border-right: 1px solid #a89984;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio.high {
|
|
|
|
color: #fabd2f;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio.very_high {
|
|
|
|
color: #fb4944;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio.muted {
|
|
|
|
color: #a8997a;
|
|
|
|
}
|
|
|
|
|
|
|
|
'';
|
2023-02-06 16:38:52 +01:00
|
|
|
systemd = {
|
|
|
|
enable = true;
|
|
|
|
target = "river-session.target";
|
|
|
|
};
|
2022-12-29 20:55:37 +01:00
|
|
|
};
|
|
|
|
}
|