From e04301b9ffdf82604a67bf6ca481b925b87a6027 Mon Sep 17 00:00:00 2001 From: harry123 Date: Sun, 19 Jan 2025 18:30:54 +0100 Subject: [PATCH] more customization --- home-manager/dotfiles/waybar/config.jsonc | 26 ++++++++++++++++++--- home-manager/dotfiles/waybar/style.css | 12 +++++++--- home-manager/home.nix | 11 +++++++++ hosts/goober/features/hardware/pipewire.nix | 1 + 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/home-manager/dotfiles/waybar/config.jsonc b/home-manager/dotfiles/waybar/config.jsonc index 29eddbe..0220674 100644 --- a/home-manager/dotfiles/waybar/config.jsonc +++ b/home-manager/dotfiles/waybar/config.jsonc @@ -1,13 +1,13 @@ { "layer": "top", "modules-left": ["sway/workspaces", "sway/mode"], - "modules-center": ["wireplumber", "mpris"], - "modules-right": ["cpu", "bluetooth", "network", "clock", "privacy"], + "modules-center": [ ], + "modules-right": ["mpris", "wireplumber","cpu", "bluetooth", "network", "clock", "privacy"], "clock": { "format-alt": "{:%a, %d. %b %H:%M}" }, "wireplumber": { - "format": " {volume}%", + "format": "{volume}% ", "format-muted": "", "max-volume": 120, "scroll-step": 0.2 @@ -33,6 +33,26 @@ "tooltip-icon-size": 24 } ] + }, + "cpu": { + "format": "{}%  " + }, + "network": { + "interface": "wlp3s0", + "format": "{ifname}", + "format-wifi": "{essid} ({signalStrength}%)  ", + "format-ethernet": "{ipaddr}/{cidr} 󰊗", + "format-disconnected": "", //An empty format will hide the module. + "tooltip-format": "{ifname} via {gwaddr} 󰊗", + "tooltip-format-wifi": "{essid} ({signalStrength}%)  ", + "tooltip-format-ethernet": "{ifname}  ", + "tooltip-format-disconnected": "Disconnected", + "max-length": 50 + }, + "bluetooth": { + "format": "", + "format-disabled": "", + "format-connected": "" } } diff --git a/home-manager/dotfiles/waybar/style.css b/home-manager/dotfiles/waybar/style.css index 5bcb99b..c667dc8 100644 --- a/home-manager/dotfiles/waybar/style.css +++ b/home-manager/dotfiles/waybar/style.css @@ -2,11 +2,11 @@ font-family: "CodeNewRoman Nerd Font"; font-weight: bold; font-size: 12px; - color: #fff; + color: #000; } window#waybar { - background-color: #000; + background-color: #fff; } @@ -15,9 +15,15 @@ window#waybar { } #workspaces button.focused { - background-color: #7b002c; + border-bottom: solid 2px #7b002c; + border-radius: 0; } #workspaces { padding: 4px 0; } + +window#waybar { + min-height: 14px; /* set waybar's height to 18px */ + font-size: 14px; /* set only the font size to be bigger, which in turn will adjust the height of other elements */ +} diff --git a/home-manager/home.nix b/home-manager/home.nix index f18d650..b0a7f0b 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -63,6 +63,17 @@ pkgs.gammastep pkgs.lazygit + pkgs.xfce.thunar + pkgs.gimp-with-plugins + pkgs.fzf + pkgs.why3 + pkgs.alt-ergo + pkgs.cvc4 + pkgs.z3 + pkgs.prismlauncher + + pkgs.audacious + pkgs.audacious-plugins # # You can also create simple shell scripts directly inside your # # configuration. For example, this adds a command 'my-hello' to your # # environment: diff --git a/hosts/goober/features/hardware/pipewire.nix b/hosts/goober/features/hardware/pipewire.nix index 08ba1e1..3c80aa4 100644 --- a/hosts/goober/features/hardware/pipewire.nix +++ b/hosts/goober/features/hardware/pipewire.nix @@ -4,6 +4,7 @@ services.pipewire.enable = false; hardware.pulseaudio.enable = true; hardware.pulseaudio.support32Bit = true; + services.pipewire.wireplumber.enable = true; environment.systemPackages = [ pkgs.pwvucontrol