Last active
August 23, 2016 14:18
-
-
Save franga2000/09846de68cbfb10713a10b0a2bdfdbf4 to your computer and use it in GitHub Desktop.
GNOME 3 post-install script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set up .bashrc | |
cat >> ~/.bashrc <<EOL | |
# BEGIN franga2000's .bashrc stuff & things | |
# Aliases | |
alias ll='ls -alh' | |
alias l='ls -CF' | |
alias du='du -h' | |
alias df='df -h' | |
alias free='free -h' | |
alias wget='http -d' | |
# Colored manpages | |
man() { | |
LESS_TERMCAP_md=$'\e[01;31m' \ | |
LESS_TERMCAP_me=$'\e[0m' \ | |
LESS_TERMCAP_se=$'\e[0m' \ | |
LESS_TERMCAP_so=$'\e[01;44;33m' \ | |
LESS_TERMCAP_ue=$'\e[0m' \ | |
LESS_TERMCAP_us=$'\e[01;32m' \ | |
command man "$@" | |
} | |
EOL | |
. ~/.bashrc | |
# Install must-haves | |
sudo apt install -y -m lm-sensors htop httpie gdebi gnome-exe-thumbnailer | |
# Configure programs | |
## Nautilus | |
### Sort dirs before files | |
dconf write /org/gnome/nautilus/preferences/sort-directories-first true | |
### Allow running text files | |
dconf write /org/gnome/nautilus/preferences/executable-text-activation 'ask' | |
## GEdit | |
### Display line numbers | |
dconf write /org/gnome/gedit/preferences/editor/display-line-numbers true | |
### Highlight current line | |
dconf write /org/gnome/gedit/preferences/editor/highlight-current-line true | |
### 4-column tabs | |
dconf write /org/gnome/gedit/preferences/editor/tabs-size 4 | |
### Highlight matching brackets | |
dconf write /org/gnome/gedit/preferences/editor/bracket-matching true | |
### Auto-indent | |
dconf write /org/gnome/gedit/preferences/editor/auto-indent true | |
## Enable VIM syntax highlighting | |
sudo sh -c 'echo syntax on >> /etc/vim/vimrc' | |
# Setup 'New file' templates | |
cd ~/Templates/ | |
touch Text\ file.txt | |
echo -e '#!/bin/bash\n' > Bash\ script.sh | |
chmod +x Bash\ script.sh | |
# Install extensions (currenty just opens links in FF) | |
firefox -new-tab -url https://extensions.gnome.org/extension/18/native-window-placement/ \ | |
-new-tab -url https://extensions.gnome.org/extension/826/suspend-button/ \ | |
-new-tab -url https://extensions.gnome.org/extension/841/freon/ \ | |
-new-tab -url https://extensions.gnome.org/extension/1004/public-ip-address/ \ | |
-new-tab -url https://extensions.gnome.org/extension/923/ping-indicator/ \ | |
-new-tab -url https://extensions.gnome.org/extension/921/multi-monitors-add-on/ \ | |
-new-tab -url https://extensions.gnome.org/extension/826/suspend-button/ \ | |
-new-tab -url https://extensions.gnome.org/extension/906/sound-output-device-chooser/ \ | |
-new-tab -url https://extensions.gnome.org/extension/905/refresh-wifi-connections/ \ | |
-new-tab -url https://extensions.gnome.org/extension/55/media-player-indicator/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment