[wlogout] Update font family using theme-changer.sh

This commit is contained in:
Viyurz 2024-10-21 14:17:02 +02:00
parent ffaa4a9e5b
commit d65c8aad42
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
2 changed files with 10 additions and 1 deletions

View file

@ -9,7 +9,7 @@ window {
} }
button { button {
font-family: "Hack Nerd Font"; font-family: 'JetBrainsMono NF';
font-size: 13pt; font-size: 13pt;
color: @foreground; color: @foreground;
margin: 5px; margin: 5px;

View file

@ -320,6 +320,15 @@ function set_waybar_theme {
function set_wlogout_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 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.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" magick "$HOME/.config/wlogout/$img-focus.png.default" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png"