-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_preferences.sh
More file actions
executable file
·53 lines (40 loc) · 1.98 KB
/
set_preferences.sh
File metadata and controls
executable file
·53 lines (40 loc) · 1.98 KB
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
#!/bin/bash
cd "$(dirname "${BASH_SOURCE}")" && source "../utils.sh"
# ----------------------------------------------------------------------
# | Privacy |
# ----------------------------------------------------------------------
set_privacy_settings() {
# Fix privacy related issues present in Ubuntu 12.10-14.04
# https://fixubuntu.com/
return $(wget -qO - https://fixubuntu.com/fixubuntu.sh | bash > /dev/null; echo $?)
}
# ----------------------------------------------------------------------
# | UI/UX |
# ----------------------------------------------------------------------
set_ui_and_ux_settings() {
# Hide the bluetooth and volume icons from the menu bar
gsettings set com.canonical.indicator.bluetooth visible false
gsettings set com.canonical.indicator.sound visible false
# Hide the battery icon from the menu bar when the battery is not in use
gsettings set com.canonical.indicator.power icon-policy "charge"
gsettings set com.canonical.indicator.power show-time false
# Use custom date format in the menu bar
# (for other date interpreted sequences: date --help)
gsettings set com.canonical.indicator.datetime custom-time-format "%l:%M %p"
gsettings set com.canonical.indicator.datetime time-format "custom"
# Set desktop background image location and options
gsettings set org.gnome.desktop.background picture-options "stretched"
#gsettings set org.gnome.desktop.background picture-uri "file:///home/..."
# Set keyboard languages
gsettings set org.gnome.libgnomekbd.keyboard layouts "[ 'us', 'ro' ]"
# Set Launcher favorites
gsettings set com.canonical.Unity.Launcher favorites "[
'google-chrome.desktop'
]"
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
main() {
execute "set_privacy_settings" "Privacy"
execute "set_ui_and_ux_settings" "UI & UX"
}
main