From d65c8aad42a523baa47d84f6ca0b706839ac90d5 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Mon, 21 Oct 2024 14:17:02 +0200 Subject: [PATCH] [wlogout] Update font family using theme-changer.sh --- .config/wlogout/style.css | 2 +- .scripts/theme-changer.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.config/wlogout/style.css b/.config/wlogout/style.css index 611b922..9ea767c 100644 --- a/.config/wlogout/style.css +++ b/.config/wlogout/style.css @@ -9,7 +9,7 @@ window { } button { - font-family: "Hack Nerd Font"; + font-family: 'JetBrainsMono NF'; font-size: 13pt; color: @foreground; margin: 5px; diff --git a/.scripts/theme-changer.sh b/.scripts/theme-changer.sh index 1533249..142cf2d 100755 --- a/.scripts/theme-changer.sh +++ b/.scripts/theme-changer.sh @@ -320,6 +320,15 @@ function set_waybar_theme { function set_wlogout_theme { + declare -A wlogout_variables=( + [font-family]="${params[font]}" + ) + + for key in "${!wlogout_variables[@]}"; do + value="${wlogout_variables[$key]}" + sed -i "s~$key:[^;]*~$key: $value~" "$HOME/.config/wlogout/style.css" + done + for img in lock reboot shutdown logout; do magick "$HOME/.config/wlogout/$img.png.default" -fill "${colors[accent1]}" -colorize 100 "$HOME/.config/wlogout/$img.png" magick "$HOME/.config/wlogout/$img-focus.png.default" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png"