mabox-tools/bin/reload-gtk

13 lines
514 B
Plaintext
Raw Permalink Normal View History

2021-10-12 17:35:59 +02:00
#!/bin/bash
mkdir -p $HOME/.config/xsettingsd
gtk_theme="$(grep "^[^#]*gtk-theme-name" "${HOME}/.config/gtk-3.0/settings.ini")"
gtk_theme="${gtk_theme/gtk-theme-name*=}"
echo "Net/ThemeName \"$gtk_theme\"" > "$HOME/.config/xsettingsd/xsettingsd.conf"
gtk_theme_icons="$(grep "^[^#]*gtk-icon-theme-name" "${HOME}/.config/gtk-3.0/settings.ini")"
gtk_theme_icons="${gtk_theme_icons/gtk-icon-theme-name*=}"
echo "Net/IconThemeName \"$gtk_theme_icons\"" >> "$HOME/.config/xsettingsd/xsettingsd.conf"
bl-reload-gtk23