-
Notifications
You must be signed in to change notification settings - Fork 0
/
060-customizations.sh
executable file
·62 lines (56 loc) · 2.56 KB
/
060-customizations.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
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
if prompt_default_no "Install Gnome extensions?"; then
EXTENSIONS=(
https://extensions.gnome.org/extension/3724/net-speed-simplified/
https://extensions.gnome.org/extension/1319/gsconnect/
)
info "Opening extensions..."
for extension in "${EXTENSIONS[@]}"; do
xdg-open "$extension"
done
fi
if prompt_default_no "Install Pointfree font?"; then
# https://docs.fedoraproject.org/en-US/quick-docs/fonts/
mkdir -p ~/.local/share/fonts
curl --location --output /tmp/pointfree.zip "https://dl.dafont.com/dl/?f=pointfree"
unzip -d /tmp/ /tmp/pointfree.zip
mkdir -p ~/.local/share/fonts/
mv /tmp/pointfree.ttf ~/.local/share/fonts/
# When I was testing this, I had to restart my session for it to take effect.
sudo fc-cache -f -v
gsettings set org.gnome.desktop.interface monospace-font-name 'Pointfree 11'
fi
if prompt_default_no "Configure system settings?"; then
gsettings set org.gnome.desktop.datetime automatic-timezone true
gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy'
gsettings set org.gnome.desktop.interface clock-format '12h'
gsettings set org.gnome.desktop.notifications show-in-lock-screen false
# Who in their right mind uses natural scrolling?
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
gsettings set org.gnome.desktop.privacy remember-recent-files false
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled true
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 3600
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
gsettings set org.gnome.desktop.interface clock-show-weekday true
gsettings set org.gnome.mutter attach-modal-dialogs false
gsettings set org.gnome.mutter center-new-windows true
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.mutter workspaces-only-on-primary false
fi
if prompt_default_no "Install/update HeadsetControl?"; then
if [[ -d ~/src/HeadsetControl/ ]]; then
pushd ~/src/HeadsetControl/ || exit 1
git pull
else
git clone https://github.com/Sapd/HeadsetControl.git ~/src/HeadsetControl/
pushd ~/src/HeadsetControl/ || exit 1
fi
cmake -B ./build/
cmake --build ./build/
pushd ./build/ || exit 1
sudo make install
sudo udevadm control --reload-rules && sudo udevadm trigger
popd || exit 1
popd || exit 1
fi