fatass commit for the rice

This commit is contained in:
wo2wz 2025-10-22 18:43:51 -04:00
parent 266d1b3deb
commit 89ac1c676d
28 changed files with 1101 additions and 587 deletions

View file

@ -0,0 +1,172 @@
{ config, pkgs, ... }:
{
fonts.packages = [ pkgs.font-awesome ];
home-manager.users.wo2w.programs.waybar = {
enable = true;
systemd.enable = true;
style =
let
colors = config.custom.colors;
in ''
@define-color base00 ${colors.base00};
@define-color base05 ${colors.base05};
@define-color base03 ${colors.base03};
@define-color base0E ${colors.base0E};
'' + builtins.readFile ./style.css;
settings = {
main = {
output = [
"eDP-1"
"DP-1"
];
layer = "top";
position = "top";
height = 35;
modules-left = [
"niri/workspaces"
"niri/window"
];
modules-center = [
"clock"
];
modules-right = [
"group/cpu-temp"
"memory"
"battery"
"power-profiles-daemon"
"backlight"
"network"
"pulseaudio"
"tray"
];
"group/cpu-temp" = {
orientation = "inherit";
modules = [
"temperature"
"cpu"
];
};
"niri/workspaces" = {
format = "{icon}";
format-icons = {
code = "";
fullscreen = "";
gaming = "";
vesktop = "";
};
all-outputs = true;
};
"niri/window" = {
max-length = 50;
tooltip = false;
};
clock = {
interval = 1;
timezone = "America/New_York";
format = "<b>{:%T}</b>";
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format-alt = "<b>{:%Y-%m-%d}</b>";
actions = {
on-scroll-up = "shift_up";
on-scroll-down = "shift_down";
on-click-middle = "shift_reset";
};
};
temperature = {
thermal-zone = 9;
critical-threshold = 90;
format = "{temperatureC}°C {icon}";
format-icons = [ "" "" "" ];
tooltip = false;
};
cpu = {
format = "{usage}% ";
tooltip = false;
};
memory = {
interval = 10;
format = "{used:0.1f}G ";
format-alt = "{percentage}% ";
tooltip-format = "{swapUsed}G ";
};
battery = {
states = {
warning = 40;
critical = 15;
};
format = "{capacity}% {icon}";
format-full = "{capacity}% {icon}";
format-charging = "{capacity}% ";
format-plugged = "{capacity}% ";
format-alt = "{time} {icon}";
format-icons = [ "" "" "" "" "" ];
};
power-profiles-daemon = {
format = "{icon}";
tooltip-format = "Power profile: {profile}";
tooltip = true;
format-icons = {
default = "";
performance = "";
balanced = "";
power-saver = "";
};
};
backlight = {
format = "{percent}% {icon}";
format-icons = [ "" "" "" "" "" "" "" "" "" ];
tooltip = false;
};
network = {
format-wifi = "{ipaddr} ";
format-ethernet = "{ipaddr} ";
# long ugly ass string because indented strings insert an extra newline (i do not know how to resolve this)
tooltip-format-wifi = "{essid} ({frequency} GHz)\n\n{ipaddr}/{cidr}\n{ifname} via {gwaddr}\nstrength: {signalStrength}%\nup: {bandwidthUpBytes} down: {bandwidthDownBytes}";
tooltip-format-ethernet = "{ipaddr}/{cidr}\n{ifname} via {gwaddr}\nup: {bandwidthUpBytes} down: {bandwidthDownBytes}";
format-linked = "{ifname} (No IP) ";
format-disconnected = "Disconnected ";
format-alt = "{ifname}: {ipaddr}/{cidr}";
};
pulseaudio = {
format = "{volume}% {icon} {format_source}";
format-bluetooth = "{volume}% {icon} {format_source}";
format-bluetooth-muted = " {icon} {format_source}";
format-muted = " {format_source}";
format-source = "{volume}% ";
format-source-muted = "";
format-icons = {
headphone = "";
hands-free = "";
headset = "";
phone = "";
portable = "";
car = "";
default = [ "" "" "" ];
};
};
tray = {
icon-size = 18;
spacing = 10;
};
};
};
};
}

View file

@ -0,0 +1,160 @@
* {
font-family: FontAwesome, "Hack Nerd Font";
font-size: 11pt;
}
window#waybar {
background: transparent;
color: @base05;
}
tooltip {
color: @base05;
border-color: @base0E;
}
tooltip label {
color: @base05;
}
#workspaces,
#window,
#clock,
#cpu-temp,
#memory,
#battery,
#power-profiles-daemon,
#backlight,
#network,
#pulseaudio,
#tray
#workspaces {
margin-right: 4px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#workspaces button {
padding-right: 8px;
color: @base05;
}
#workspaces button.focused,
#workspaces button.active {
border-bottom: 3px solid @base03;
border-radius: 6px;
}
#window {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#clock {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#cpu-temp {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#temperature {
padding-right: 12px;
}
#cpu {
padding-right: 5px;
}
#memory {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#battery {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#power-profiles-daemon {
margin: 0 4px 0 4px;
padding-left: 12px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#backlight {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#network {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#pulseaudio {
margin: 0 4px 0 4px;
padding-left: 15px;
padding-right: 15px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
#tray {
margin-left: 4px;
padding-left: 10px;
padding-right: 10px;
border: 2px solid @base0E;
border-radius: 12px;
background: @base00;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* remove right margin if pulseaudio is on the right */
.modules-right > widget:last-child > #pulseaudio {
margin-right: 0;
}