1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-12 13:31:32 -05:00
QubesOS-Scripts/dom0.sh

28 lines
1003 B
Bash
Raw Normal View History

2022-02-06 02:59:49 -05:00
#!/bin/bash
2022-05-26 15:04:02 -04:00
sudo mkdir -p /etc/gtk-3.0
echo '[Settings]
gtk-theme-name=Arc-Dark
gtk-application-prefer-dark-theme=1
' | sudo tee /etc/gtk-3.0/settings.ini
sudo mkdir -p /etc/gtk-4.0
2022-02-06 16:33:08 -05:00
echo '[Settings]
2022-02-06 02:59:49 -05:00
gtk-theme-name=Arc-Dark
gtk-application-prefer-dark-theme=1
' | sudo tee /etc/gtk-3.0/settings.ini
2022-02-06 15:30:24 -05:00
2022-02-08 02:14:11 -05:00
sudo qubes-dom0-update qubes-u2f-dom0 qubes-yubikey-dom0 qt5ct qt5-qtstyleplugins
2022-02-06 15:37:32 -05:00
qvm-service --enable personal qubes-u2f-proxy
2022-02-06 15:30:24 -05:00
qvm-service --enable work qubes-u2f-proxy
2022-02-08 02:14:11 -05:00
2022-05-26 00:58:21 -04:00
echo "export QT_QPA_PLATFORMTHEME=gtk2" | sudo tee /etc/environment
2022-05-24 07:10:30 -04:00
2022-05-24 08:24:34 -04:00
#Obviously replace vault-gpg with the actual GPG backend that you are using https://www.qubes-os.org/doc/split-gpg/
echo "emails vault-gpg allow" | sudo tee /etc/qubes-rpc/policy/qubes.Gpg
echo "@anyvm @anyvm ask,default_target=vault-gpg" | sudo tee -a /etc/qubes-rpc/policy/qubes.Gpg
2022-05-26 01:26:21 -04:00
2022-05-26 01:26:41 -04:00
#Support for disabling passwordless sudo
2022-05-26 01:26:21 -04:00
echo "/usr/bin/echo 1" >/etc/qubes-rpc/qubes.VMAuth
echo "@anyvm dom0 ask,default_target=dom0" > /etc/qubes-rpc/policy/qubes.VMAuth