Closed ubuntupunk closed 3 years ago
Hey! Flavours config is basically one item per template/subtemplate you want to apply. If you want to theme both gtk3 and gtk2, you should make two entries on ~/.config/flavours/config.toml
. One for gtk-flatcolor gtk-2 and one for gtk-flatcolor gtk-3. Here's how the relevant part of my config file looks like:
[[item]]
file = '~/.themes/FlatColor/colors3'
template = 'gtk-flatcolor'
subtemplate = 'gtk-3'
rewrite = true
hook = 'systemctl restart --user xsettingsd'
[[item]]
file = '~/.themes/FlatColor/colors2'
template = 'gtk-flatcolor'
subtemplate = 'gtk-2'
rewrite = true
hook = 'gtkrc-reload'
Oh and i use a systemd unit file for xsettingsd as it is a daemon process (it keeps running till restarted). Here's my unit file (~/.config/systemd/user/xsettingsd.service
):
[Unit]
Description="Xsettings Daemon"
[Service]
StartLimitBurst=20
StartLimitIntervalSec=5
Type=exec
WorkingDirectory=/home/misterio
ExecStart=/usr/bin/xsettingsd
Restart=no
[Install]
WantedBy=default.target
And here's the hooks i use, just in case you need them: xsettingsd for reloading gtk3: https://github.com/derat/xsettingsd gtkrc-reload for reloading gtk2: https://github.com/neeasade/gtkrc-reload
If you use Arch, xsettingsd is in the repositories, and gtkrc-reload is in the AUR
Let me know if you need any more help with it <3
Fantastic, thank you.
Forgive me, I am a newbie when it comes to using flavours. You state:
If I go to the flavours site, there is no gtk template and it isn't clear what is supposed to happen here. Could you perhaps be more instructive, or point me to an example?