Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
my personal gnome and fedora setup preferences
# Sane settings for Gnome
gsettings set org.gnome.desktop.background show-desktop-icons true
gsettings set org.gnome.desktop.interface clock-show-date true
gsettings set org.gnome.settings-daemon.plugins.xsettings antialiasing 'grayscale'
gsettings set org.gnome.settings-daemon.plugins.xsettings hinting 'slight'
gsettings set org.gnome.desktop.interface text-scaling-factor '1.0'
gsettings set org.gnome.desktop.interface monospace-font-name "Monospace 10"
gsettings set org.gnome.desktop.interface document-font-name 'Sans 10'
gsettings set org.gnome.desktop.interface font-name 'Cantarell 10'
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
gsettings set org.gnome.desktop.wm.preferences theme 'Adwaita'
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'Cantarell Bold 10'
gsettings set org.gnome.shell.overrides button-layout '":minimize,maximize,close"'
# Gnome proxy
gsettings set org.gnome.system.proxy mode 'auto'
gsettings set org.gnome.system.proxy autoconfig-url "http://server/default.pac"
# Sane settings for screen lock (screen off: 10 minutes, screen lock: 15 minutes)
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 600
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 600
gsettings set org.gnome.desktop.session idle-delay 600
gsettings set org.gnome.desktop.screensaver idle-activation-enabled 'true'
gsettings set org.gnome.desktop.screensaver lock-enabled 'true'
gsettings set org.gnome.desktop.screensaver lock-delay 900
# Sane settings for Nautilus
gsettings set org.gnome.nautilus.desktop font 'Cantarell 10'
gsettings set org.gnome.nautilus.list-view default-visible-columns "['name', 'size', 'type', 'date_modified', 'owner', 'group', 'permissions']"
gsettings set org.gnome.nautilus.list-view default-zoom-level 'smallest'
gsettings set org.gnome.nautilus.preferences enable-delete true
gsettings set org.gnome.nautilus.preferences show-hidden-files true
gsettings set org.gnome.nautilus.preferences sort-directories-first true
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
# Sane settings for gedit"
gsettings set org.gnome.gedit.preferences.editor display-line-numbers true
# set dns to Cloudflare/APNIC and ignore auto dns from the dhcp server for the active ethernet connection (https://1.1.1.1/dns/)
nmcli connection modify $(nmcli connection show --active | grep ethernet | awk '{ print $1 }') +ipv4.dns 1.1.1.1,1.0.0.1
nmcli connection modify $(nmcli connection show --active | grep ethernet | awk '{ print $1 }') +ipv4.ignore-auto-dns yes
nmcli connection modify $(nmcli connection show --active | grep ethernet | awk '{ print $1 }') +ipv4.method auto
nmcli connection modify $(nmcli connection show --active | grep ethernet | awk '{ print $1 }') +ipv6.dns 2606:4700:4700::1111,2606:4700:4700::1001
nmcli connection modify $(nmcli connection show --active | grep ethernet | awk '{ print $1 }') +ipv6.ignore-auto-dns yes
nmcli connection modify $(nmcli connection show --active | grep ethernet | awk '{ print $1 }') +ipv6.method auto
# Sane settings for Gnome
gsettings set org.gnome.desktop.interface clock-show-date true
gsettings set org.gnome.desktop.interface text-scaling-factor 0.6
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
# Sane settings for Nautilus
gsettings set org.gnome.nautilus.list-view default-visible-columns "['name', 'size', 'type', 'date_modified', 'owner', 'group', 'permissions']"
gsettings set org.gnome.nautilus.list-view default-zoom-level 'small'
gsettings set org.gnome.nautilus.preferences enable-delete true
gsettings set org.gnome.nautilus.preferences show-hidden-files true
gsettings set org.gnome.nautilus.preferences sort-directories-first true
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
# Sane settings for gedit
gsettings set org.gnome.gedit.preferences.editor display-line-numbers true
# Reduce TitleBar height
cat > ~/.config/gtk-3.0/gtk.css <<EOF
.header-bar.default-decoration {
padding-top: 0;
padding-bottom: 0;
}
GtkButton {
padding-top: 0;
padding-bottom: 0;
margin-top: 0;
margin-bottom: 0;
}
>EOF
# Sane settings for Gnome
gsettings set org.gnome.desktop.interface clock-show-date true
#gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.desktop.interface text-scaling-factor 0.6
gsettings set org.gnome.desktop.interface toolbar-icons-size 'small'
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
# Sane settings for Nautilus
gsettings set org.gnome.nautilus.list-view default-visible-columns "['name', 'size', 'type', 'date_modified', 'owner', 'group', 'permissions']"
gsettings set org.gnome.nautilus.list-view default-zoom-level 'small'
gsettings set org.gnome.nautilus.preferences show-hidden-files true
gsettings set org.gnome.nautilus.preferences sort-directories-first true
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
# Sane settings for gedit
gsettings set org.gnome.gedit.preferences.editor display-line-numbers true
# Sane settings for gnome-terminal
gsettings set org.gnome.Terminal.Legacy.Settings shell-integration-enabled true
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ visible-name 'Default'
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ login-shell true
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ use-transparent-background true
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ background-transparency-percent 25
# The basics
sudo dnf install -y \
bat `# like cat, but better` \
gimp `# like photoshop, but free` \
git \
gnome-tweak-tool \
hg \
hub `# github cli` \
rclone `# rsync, for cloud storage` \
svn \
vlc
# RPM Fusion
sudo dnf install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# Video compatibility
sudo dnf install -y ffmpeg ffmpeg-compat
# spotify
sudo dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo
sudo dnf install spotify-client -y
# Oracle Java
# https://www.java.com/en/download/linux_manual.jsp
# Visual Studio Code
# Atom Editor
# sublime text
#curl -L git.io/sublimetext | sh
curl -sL https://gist.github.com/grenade/3b3c5b17586881d01142/raw/update_sublime_text_3.sh | sh
# Firefox Developer & Nightly Editions
curl -L git.io/firefoxdev | sh
curl -L git.io/firefoxnightly | sh
# Google Chrome (Stable, Beta)
sudo dnf config-manager --add-repo http://dl.google.com/linux/chrome/rpm/stable/$basearch
#sudo dnf config-manager --setopt gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub google-chrome --save
echo $'gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub' | sudo tee -a /etc/yum.repos.d/google-chrome.repo >/dev/null
sudo dnf install -y google-chrome-stable google-chrome-beta
chmod a+x ~/.local/share/applications/chrome-*-Default.desktop
svn export --depth files http://src.chromium.org/chrome/trunk/src/chrome/app/theme/chromium ./chromium-logo
for i in 48 64 128; do sudo cp chromium-logo/product_logo_$i.png /usr/share/icons/hicolor/${i}x$i/apps/google-chrome-beta.png; done
sudo gtk-update-icon-cache -f '/usr/share/icons/hicolor'
# Yeoman
sudo dnf install ruby rubygems gcc ruby-devel npm
gem install compass
# gaming
sudo dnf install lutris wine-common wine-mono mingw32-wine-gecko mingw64-wine-gecko
@yaduvanshi6584

This comment has been minimized.

Copy link

@yaduvanshi6584 yaduvanshi6584 commented Dec 12, 2019

Hi, How can we move ubuntu clock from top center to top right ? could you please help...

@giftedunicorn

This comment has been minimized.

Copy link

@giftedunicorn giftedunicorn commented Jan 7, 2021

I think you can use nmcli -t -f NAME c show --active instead of nmcli connection show --active | grep ethernet | awk '{ print $1 }' in case of name with spaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment