From 051c1c2ad8b6e7ca85113014ee3de59848ac151a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 15:44:48 -0700 Subject: [PATCH] Use CaskaydiaMono Nerd Font Propo for waybar Ever so slightly nicer spacing --- config/waybar/style.css | 7 +++++-- migrations/1752187060.sh | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 migrations/1752187060.sh diff --git a/config/waybar/style.css b/config/waybar/style.css index cc80246..ec50e6f 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -2,7 +2,7 @@ border: none; border-radius: 0; min-height: 0; - font-family: CaskaydiaMono Nerd Font; + font-family: CaskaydiaMono Nerd Font Propo; font-size: 12px; } @@ -16,8 +16,11 @@ margin-right: 3px; } +#custom-expand { + margin-right: 0px; +} + #custom-dropbox, -#custom-expand, #tray, #cpu, #battery, diff --git a/migrations/1752187060.sh b/migrations/1752187060.sh new file mode 100644 index 0000000..67184c8 --- /dev/null +++ b/migrations/1752187060.sh @@ -0,0 +1,11 @@ +echo "Add missing Propo version of Caskaydia Mono Nerd Font for Waybar use" + +if ! fc-list | grep -qi "CaskaydiaMono Nerd Font Propo"; then + cd /tmp + wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaMono.zip + unzip CascadiaMono.zip -d CascadiaFont + cp CascadiaFont/CaskaydiaMonoNerdFontPropo-Regular.ttf ~/.local/share/fonts + rm -rf CascadiaMono.zip CascadiaFont + fc-cache + cd - +fi