-
Notifications
You must be signed in to change notification settings - Fork 0
/
04-fine-tune-manjaro.sh
executable file
·67 lines (59 loc) · 3.7 KB
/
04-fine-tune-manjaro.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
63
64
65
66
67
## -----------------------------------------------------------------------------
## Keyboard settings to work with kmonad
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:ralt']"
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'us+intl')]"
gsettings set org.gnome.desktop.interface gtk-key-theme 'Emacs'
## Firefox needs to run on Wayland
sudo sed -i 's|Exec= /|Exec=env MOZ_ENABLE_WAYLAND=1 /|' /usr/share/applications/firefox.desktop
sudo sed -i 's|Exec=/|Exec=env MOZ_ENABLE_WAYLAND=1 /|' /usr/share/applications/firefox.desktop
## Manipulate windows
gsettings set org.gnome.desktop.wm.keybindings maximize "['<Super>Up']"
## -----------------------------------------------------------------------------
## My mouse is bluetooth
sudo sed -i 's/^#AutoEnable=false$/AutoEnable=true/' /etc/bluetooth/main.conf
## Let's be sure to escape the cat
gsettings set org.gnome.desktop.peripherals.mouse speed 1
## No one is more blind than the one who does not want to see
gsettings set org.gnome.desktop.interface cursor-size 1000
gsettings set org.gnome.desktop.interface cursor-theme 'Layan-white-cursors'
## -----------------------------------------------------------------------------
## Use SUPER to switch between apps instead of workspaces
for i in {1..9}; do gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$i "[]";done
for i in {1..9}; do gsettings set org.gnome.shell.keybindings switch-to-application-$i "['<Super>$i']";done
## No more workspaces
gsettings set org.gnome.desktop.interface enable-hot-corners false
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 1
## -----------------------------------------------------------------------------
## Who needs more than a terminal and a browser?
gsettings set org.gnome.shell favorite-apps "['firefox.desktop', 'terminator.desktop', 'signal-desktop.desktop']"
## -----------------------------------------------------------------------------
## I see a red door...
gsettings set org.gnome.desktop.background picture-options 'none'
gsettings set org.gnome.desktop.background primary-color '#000000'
gsettings set org.gnome.desktop.background secondary-color '#000000'
gsettings set org.gnome.desktop.background color-shading-type 'solid'
## Apple did bad when they decided to put date and time on top!
## This is not a blackboard, and this is not school...
gnome-extensions disable [email protected]
gnome-extensions enable [email protected]
gnome-extensions enable [email protected]
## Nautilus setup
## Jules Vernes tends to keep things organized in list
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
## -----------------------------------------------------------------------------
## Do not suspend my computer
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'
## -----------------------------------------------------------------------------
## Let Mozilla decide for me
fire_profile=`cat ~/.mozilla/firefox/profiles.ini | grep 'Path=' | grep 'release' | sed s/^Path=//`
sed -i 's/stylesheets", true/stylesheets", false/' ~/.mozilla/firefox/$fire_profile/user.js
sed -i 's/stylesheets", true/stylesheets", false/' ~/.mozilla/firefox/$fire_profile/user.js
if grep gfx.webrender.all ~/.mozilla/firefox/$fire_profile/user.js > /dev/null;
then echo;
else
echo 'user_pref("gfx.webrender.all", true)' >> ~/.mozilla/firefox/$fire_profile/user.js;
fi
## TODO: Stop XWayland
## TODO: see https://linuxfr.org/users/antistress/journaux/parametrer-wayland-et-webrender-pour-firefox-sur-ma-distrib