Compare commits
2 Commits
65367cdb69
...
291b1b56da
Author | SHA1 | Date | |
---|---|---|---|
291b1b56da | |||
b9163d1c3a |
|
@ -25,15 +25,20 @@ while :; do
|
||||||
theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)
|
theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)
|
||||||
# Get the current icon theme
|
# Get the current icon theme
|
||||||
icon_theme_new=$(xfconf-query -c xsettings -p /Net/IconThemeName)
|
icon_theme_new=$(xfconf-query -c xsettings -p /Net/IconThemeName)
|
||||||
|
# Get the current font name
|
||||||
|
font_new=$(xfconf-query -c xsettings -p /Gtk/FontName)
|
||||||
|
|
||||||
# Run sync_theme if the new system theme doesn't match the previous one
|
# Run sync_theme if the new system theme doesn't match the previous one
|
||||||
[ "$theme_new" != "$theme_prev" ] && sync_theme
|
[ "$theme_new" != "$theme_prev" ] && sync_theme
|
||||||
# Run sync_icon_theme if the new icon theme doesn't match the previous one
|
# Run sync_icon_theme if the new icon theme doesn't match the previous one
|
||||||
[ "$icon_theme_new" != "$icon_theme_prev" ] && sync_icon_theme
|
[ "$icon_theme_new" != "$icon_theme_prev" ] && sync_icon_theme
|
||||||
|
# If the new font doesn't match the previous one, apply the new font for the title of xfce windows
|
||||||
|
[ "$font_new" != "$font_prev" ] && xfconf-query -c xfwm4 -p /general/title_font -n -t string -s "$font_new"
|
||||||
|
|
||||||
# The new values become the previous values
|
# The new values become the previous values
|
||||||
theme_prev=$theme_new
|
theme_prev=$theme_new
|
||||||
icon_theme_prev=$icon_theme_new
|
icon_theme_prev=$icon_theme_new
|
||||||
|
font_prev=$font_new
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user