-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnome-configuration.sh
51 lines (39 loc) · 2.53 KB
/
gnome-configuration.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
if [ "$(whoami)" == "root" ]; then
echo "Script must be run as a normal user"
exit
fi
gsettings set org.gnome.desktop.interface gtk-theme "Dracula"
gsettings set org.gnome.desktop.interface icon-theme "Papirus"
gsettings set org.gnome.desktop.interface cursor-theme "cz-Hickson-Black"
sudo -u gdm dbus-launch gsettings set org.gnome.desktop.interface icon-theme "Papirus"
sudo -u gdm dbus-launch gsettings set org.gnome.desktop.interface cursor-theme "cz-Hickson-Black"
## Mouse/touchpad settings
gsettings set org.gnome.desktop.peripherals.mouse accel-profile "flat"
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click "true"
sudo -u gdm dbus-launch gsettings set org.gnome.desktop.peripherals.mouse accel-profile "flat"
sudo -u gdm dbus-launch gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click "true"
## Keyboard layout
gsettings set org.gnome.desktop.input-sources sources "[('xkb','br')]"
## Fonts
gsettings set org.gnome.desktop.interface font-name 'Fira Sans 12'
gsettings set org.gnome.desktop.interface document-font-name 'Fira Sans 11'
gsettings set org.gnome.desktop.interface monospace-font-name 'Fira Code Medium 11'
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'Fira Sans Bold 12'
## Night-light
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 0
gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 0
gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 3150
sudo -u gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
sudo -u gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 0
sudo -u gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 0
sudo -u gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 3150
## Other gsettings
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 1800
gsettings set org.gnome.desktop.wm.preferences button-layout "appmenu:minimize,maximize,close"
gsettings set org.gnome.desktop.interface enable-hot-corners "true"
gsettings set org.gtk.Settings.FileChooser sort-directories-first "true"
# Color settings
colormgr device-set-enabled $(colormgr get-devices | grep Path | cut -f 2 -d ':'| sed "s/ //g") False