-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.sh
executable file
·32 lines (22 loc) · 938 Bytes
/
default.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
#!/usr/bin/env bash
source "$(dirname "${BASH_SOURCE[0]}")./scripts/console-colours.sh"
show_info "Current Hostname: $(uname -n)"
read -t 5 -p 'New Hostname: (Continuing in 5s...) ' myhostname
if [ -z "$myhostname" ]
then
show_info "Kept Hostname: $(uname -n)"
else
show_success "Changing hostname to $myhostname"
hostnamectl set-hostname $myhostname
show_info "Current Hostname: $(uname -n)"
fi
show_info "Setting up Gnome settings..."
# Sort by folders first, then files in Nautilus
gsettings set org.gtk.Settings.FileChooser sort-directories-first true
# Show hidden files, we're not little kids
gsettings set org.gtk.Settings.FileChooser show-hidden true
# Don't remember history
gsettings set org.gnome.desktop.privacy remember-recent-files false
# Show all open windows in dock
gsettings set org.gnome.shell.extensions.dash-to-dock default-windows-preview-to-open true
show_success "Setting up Gnome settings...Done!"