Added waybar icons and allowed nonfree to fix epkowa issues.

This commit is contained in:
vorboyvo 2025-05-22 13:22:44 -04:00
parent e2d9cc37bb
commit 3797641ae0
2 changed files with 17 additions and 14 deletions

View file

@ -37,6 +37,9 @@
# Enable flakes.
nix = { settings.experimental-features = [ "nix-command" "flakes" ]; };
# Enable unfree packages.
nixpkgs.config.allowUnfree = true;
networking.hostName = "randolph"; # Define your hostname.
networking.networkmanager.enable =
true; # Easiest to use and most distros use this by default.

View file

@ -2,7 +2,7 @@
let terminalExec = "${pkgs.lib.getExe config.defaultPrograms.terminal} -e";
in
rec {
{
programs.waybar = {
enable = true;
settings = [{
@ -28,8 +28,8 @@ rec {
format = "{volume}% {icon} {format_source}";
format-bluetooth = "{volume}% {icon} {format_source}";
format-muted = "{volume}% 🔇 {format_source}";
format-source = "{volume}% ";
format-source-muted = "{volume}% ";
format-source = "{volume}% 🎤";
format-source-muted = "{volume}% 🙊";
format-icons = [ "🔈" "🔊" ];
on-click = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
on-click-right = "exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
@ -39,17 +39,17 @@ rec {
};
network = {
format-wifi = "{essid} ({signalStrength}%) ";
format-ethernet = "{ipaddr}/{cidr} ";
tooltip-format = "{ifname} via {gwaddr} ";
format-linked = "{ifname} (No IP) ";
format-ethernet = "{ipaddr}/{cidr} ";
tooltip-format = "{ifname} via {gwaddr}";
format-linked = "{ifname} (No IP)";
format-disconnected = "Disconnected ";
format-alt = "{ifname}: {ipaddr}/{cidr}";
on-click-right = "exec ${terminalExec} nmtui";
};
bluetooth = {
format = " {status}";
format = "🔵🦷 {status}";
format-disabled = ""; # hide module
format-connected = " {num_connections}";
format-connected = "🔵🦷 {num_connections}";
tooltip-format = "{controller_alias} {controller_address}";
tooltip-format-connected = ''
{controller_alias} {controller_address}
@ -59,10 +59,10 @@ rec {
on-click = "exec blueman-manager";
on-click-right = "exec bluetoothctl disconnect";
};
cpu = { format = "{usage}% 😀"; };
memory = { format = "{used:0.1f}GB/{total:0.1f}GB "; };
cpu = { format = "{usage}% 📈"; };
memory = { format = "{used:0.1f}GB/{total:0.1f}GB 💾"; };
disk = {
format = "{used} ";
format = "{used} 💽";
path = "/";
};
battery = {
@ -72,10 +72,10 @@ rec {
critical = 10;
};
format = "{capacity}% {icon}";
format-charging = "{capacity}% ";
format-plugged = "{capacity}% ";
format-charging = "{capacity}% ";
format-plugged = "{capacity}% 🔌";
# format-alt = "{time} {icon}";
format-icons = [ "" "" "" "" "" ];
format-icons = [ "🪫" "🔋" ];
on-click = "";
};
tray = {