mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 19:45:40 +00:00
feat: refactor home-manager configuration for multi-host support
This commit is contained in:
parent
f20c875a48
commit
6d1fd47bea
47 changed files with 51 additions and 14 deletions
|
@ -1,75 +0,0 @@
|
|||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
style = builtins.readFile ./style.css;
|
||||
settings = [{
|
||||
position = "top";
|
||||
height = 5;
|
||||
output = "HDMI-A-1";
|
||||
modules-left = [ "custom/mouse-actions" ];
|
||||
modules-center = [ ];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"network"
|
||||
"cpu"
|
||||
"memory"
|
||||
"systemd-failed-units"
|
||||
"clock"
|
||||
"tray"
|
||||
];
|
||||
|
||||
tray.spacing = 10;
|
||||
|
||||
clock = {
|
||||
format = "{:%I:%M }";
|
||||
format-alt = "{:%Y-%m-%d}";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
cpu = {
|
||||
format = "{usage}% ";
|
||||
on-click = "kitty btop";
|
||||
};
|
||||
|
||||
memory = {
|
||||
format = "{}% ";
|
||||
on-click = "kitty btop";
|
||||
};
|
||||
|
||||
network = {
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = "Disconnected ";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
};
|
||||
|
||||
pulseaudio = {
|
||||
format = "{volume}% {format_source}";
|
||||
format-bluetooth = "{volume}% {format_source}";
|
||||
format-bluetooth-muted = " {format_source}";
|
||||
format-muted = " {format_source}";
|
||||
format-source = "{volume}% ";
|
||||
format-source-muted = "";
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
};
|
||||
|
||||
systemd-failed-units = {
|
||||
hide-on-ok = false;
|
||||
format = "✗ {nr_failed}";
|
||||
format-ok = "✓";
|
||||
system = true;
|
||||
user = false;
|
||||
};
|
||||
|
||||
"custom/mouse-actions" = {
|
||||
format = " {}";
|
||||
exec = "tail -n 1 -F ~/.config/mouse-actions/state 2>/dev/null";
|
||||
on-click = "run-mouse-action";
|
||||
on-scroll-down = "cycle-mouse-action";
|
||||
return-type = "text";
|
||||
restart-interval = false;
|
||||
};
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue