Dark theme

No worries. Same process for Debian, don’t know about Fedora but it should work too.

Please select the answer that helped you and accept it as solution.

im asking a lot, but do you have the same command line for me to put in my debian template ?

Same commands listed here: Dark theme - #4 by BEBF738VD

But instead of $HOME type /etc/skel

And instead of cat << EOF > /etc/skel/<file> type cat << EOF | sudo tee /etc/skel/<file>

Once you create the files there, all VMs generated from that template will have dark mode.

Thank you!

[user@dom0 ~]$ echo “QT_QPA_PLATFORMTHEME=gtk2” | sudo tee -a /etc/skel/

[user@dom0 ~]$ cat << EOF > etc/skel.gtkrc-2.0
include “/usr/share/themes/Arc-Dark/gtk-2.0/gtkrc”
style “user-font”
{
font_name=“DejaVu Sans Book”
}
widget_class “*” style “user-font”
gtk-font-name=“DejaVu Sans Book 12”
gtk-theme-name=“Arc-Dark”
gtk-icon-theme-name=“gnome”
EOF


[user@dom0 ~]$ mkdir -p etc/skel.config/gtk-3.0
[user@dom0 ~]$ cat << EOF > etc/skel.config/gtk-3.0/settings.ini
[Settings]
gtk-font-name=DejaVu Sans Book 12
gtk-theme-name=Arc-Dark
gtk-icon-theme-name=gnome
EOF

am i good ?

No.

You’re missing a / and you need to change > with | sudo tee.

It should be like this:

user@debian-11:~$ cat << EOF | sudo tee /etc/skel/.gtkrc-2.0 
include "/usr/share/themes/Arc-Dark/gtk-2.0/gtkrc"
style "user-font" 
{
        font_name="DejaVu Sans Book"
}
widget_class "*" style "user-font"
gtk-font-name="DejaVu Sans Book 12"
gtk-theme-name="Arc-Dark"
gtk-icon-theme-name="gnome"
EOF
user@debian-11:~$ sudo mkdir -p /etc/skel/.config/gtk-3.0
user@debian-11:~$ cat << EOF | sudo tee /etc/skel/.config/gtk-3.0/settings.ini 
[Settings]
gtk-font-name=DejaVu Sans Book 12
gtk-theme-name=Arc-Dark
gtk-icon-theme-name=gnome
EOF

thank you let try it !

strange, i did log out and reboot but it didnt apply the change, do i have to type anything to save and exit in the terminal after the command line?

No, changes will show on new VMs based on that template. If you also want the dark mode in the template (which you shouldn’t need since you won’t use the template directly), use the same commands as dom0.

on NEW vm ahh ok, what about my actual vm ?

@BEBF738VD Thanks for the help.

i think you must do the same steps for existing VMs.

(btw i might be wrong)