From 3797641ae0d19e51039075daa0124e8b43015acc Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Thu, 22 May 2025 13:22:44 -0400 Subject: [PATCH] Added waybar icons and allowed nonfree to fix epkowa issues. --- hosts/randolph/configuration.nix | 3 +++ snippets/waybar.nix | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/hosts/randolph/configuration.nix b/hosts/randolph/configuration.nix index 970065a..6cae58a 100644 --- a/hosts/randolph/configuration.nix +++ b/hosts/randolph/configuration.nix @@ -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. diff --git a/snippets/waybar.nix b/snippets/waybar.nix index 6d20a89..a6ca592 100644 --- a/snippets/waybar.nix +++ b/snippets/waybar.nix @@ -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 = {