Skip to content

Latest commit

 

History

304 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gnome, Tweaks-tool and system-wide configurations backup

  • Extensions are stored in ~/.local/share/gnome-shell/extensions.
  • Make ptyxis transparent with dconf read /org/gnome/Ptyxis/default-profile-uuid and dconf write /org/gnome/Ptyxis/Profiles/$Profile_ID/opacity 0.95.

Restore

  • Replace the existing username with the current username in the complete_gnome_saved_settings.dconf and gnome_extensions_list.txt files.
  • Install Extension Manager with flatpak install flathub com.mattjakeman.ExtensionManager.
  • Install the extensions in gnome_extensions_list.txt.
  • Run dconf load /org/gnome/shell/extensions/ < gnome-shell-extensions-backup.dconf to apply the extension configurations.
  • Restart the session/system to see the effects.
  • (optional) Restore all Gnome-wide settings, including Gnome-tweaks configurations using dconf load -f / < complete_gnome_saved_settings.dconf.
  • Additionally, backup and restore all the GNOME settings and other configurations using SaveDesktop (flatpak install flathub io.github.vikdevelop.SaveDesktop) flatpak app besides the Backup method below.

Backup

You can simply use the backup.sh script for backup or do it manually as shown in the table below.

Item Command
Extensions configuration dconf dump /org/gnome/shell/extensions/ > gnome-shell-extensions-backup.dconf
System-wide configuration dconf dump / > complete_gnome_saved_settings.dconf
Extensions List gnome-extensions list -d > gnome_extensions_list.txt
Packages List apt-mark showmanual > packages_list.txt
OpenType and TrueType fonts ls /usr/local/share/fonts/opentype /usr/local/share/fonts/truetype > fonts_list.txt
Themes List ls ~/.local/share/themes/ /usr/local/share/themes/ ~/.local/share/icons /usr/local/share/icons/ > themes_list.txt
Grub Config sudo cp /etc/default/grub grub-defaults.backup

Chromium browsers config

  • Enable flags in chrome://flags, brave://flags and edge://flags.
  • Copy browser files from /usr/share/applications/ to ~/.local/share/applications/.
  • For each of the copied files, jump to the line that begins with Exec= and ends with %U and append as shown below. Append the same to the line that begins with Exec= and ends with --inprivate or --incognito.
  • Alternatively, create chrome-flags.conf, brave-flags.conf, edge-flags.conf files in ~/.config and add the configs.
  • Restart the system or session.

Install Spotify on Fedora

sudo dnf config-manager addrepo --from-repofile=https://negativo17.org/repos/fedora-spotify.repo
sudo dnf install spotify-client

Browser Flags

Browser copy *.desktop file *://flags Command-line flags to add in .desktop file
Google Chrome sudo cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/ #fluent-overlay-scrollbars #fluent-scrollbars #smooth-scrolling #ozone-platform-hint #wayland-ui-scaling #root-scrollbar-follows-browser-theme #link-preview #wayland-linux-drm-syncobj #allow-legacy-mv2-extensions #tabstrip-combo-button --enable-features=MiddleClickAutoscroll,TouchpadOverscrollHistoryNavigation --disable-features=GlobalShortcutsPortal
Brave Browser sudo cp /usr/share/applications/brave-browser.desktop ~/.local/share/applications/ #fluent-overlay-scrollbars #fluent-scrollbars #ozone-platform-hint #wayland-ui-scaling #root-scrollbar-follows-browser-theme #link-preview #middle-button-autoscroll #wayland-linux-drm-syncobj --enable-features=TouchpadOverscrollHistoryNavigation --disable-features=GlobalShortcutsPortal
Microsoft Edge sudo cp /usr/share/applications/microsoft-edge.desktop ~/.local/share/applications/ Only enable flags in the.desktop file --enable-features=MiddleClickAutoscroll,TouchpadOverscrollHistoryNavigation,UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --disable-features=GlobalShortcutsPortal
Vivaldi sudo cp /usr/share/applications/vivaldi-stable.desktop ~/.local/share/applications/ #fluent-overlay-scrollbars #fluent-scrollbars #root-scrollbar-follows-browser-theme --enable-features=MiddleClickAutoscroll,TouchpadOverscrollHistoryNavigation,UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --enable-wayland-ime --enable-pinch --enable-gesture-navigation --disable-features=GlobalShortcutsPortal

GRUB theme background fix

For GRUB configuration, install the GRUB theme but comment out the GRUB_BACKGROUND flag to avoid any background glitches.

Theming flatpak apps

  • Grant filesystem access to all Flatpak apps with flatpak override --user --filesystem=xdg-config/gtk-3.0 --filesystem=xdg-config/gtk-4.0 --filesystem=xdg-data/themes --filesystem=xdg-data/icons --filesystem=xdg-data/fonts.
  • This is usually enough - sudo flatpak override --filesystem=/usr/local/share/themes, sudo flatpak override --filesystem=~/.local/share/themes and sudo flatpak override --filesystem=xdg-config/gtk-3.0 && sudo flatpak override --filesystem=xdg-config/gtk-4.0.
UI Element Command
Themes flatpak override --user --env=GTK_THEME=your-theme-name (Reset with flatpak override --user --unset-env=GTK_THEME)
Icons flatpak override --user --env=ICON_THEME=your-icon-theme (Reset with flatpak override --user --unset-env=ICON_THEME)
Cursor flatpak override --user --env=CURSOR_THEME=your-cursor-theme (Reset with flatpak override --user --unset-env=CURSOR_THEME)
Fonts flatpak override --user --filesystem=xdg-data/fonts:ro --filesystem=xdg-config/fontconfig:ro (Reset with flatpak override --user --reset --filesystem=xdg-data/fonts:ro --filesystem=xdg-config/fontconfig:ro)
Reset all flatpak overrides flatpak override --user --reset and flatpak override --user --reset --filesystem=xdg-config/gtk-3.0 --filesystem=xdg-config/gtk-4.0 --filesystem=xdg-data/themes --filesystem=xdg-data/icons --filesystem=xdg-data/fonts.

If the above reset doesn't work fully, run these to reset all relevant UI settings:

gsettings reset org.gnome.desktop.interface gtk-theme
gsettings reset org.gnome.desktop.interface icon-theme
gsettings reset org.gnome.desktop.interface cursor-theme
gsettings reset org.gnome.desktop.interface color-scheme
gsettings reset org.gnome.shell.extensions.user-theme name
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
gsettings set org.gnome.shell.extensions.user-theme name 'Adwaita'
gsettings set org.gnome.desktop.interface gtk-theme 'Default-pure'
gsettings set org.gnome.shell.extensions.user-theme name 'Default-pure'

Enable fingerprint authentication besides login

sudo pam-auth-update and enable Fingerprint Authentication.

Important search terms for NVIDIA driver and Linux Kernel packages

linux-generic, linux-headers-generic, linux-image-generic, linux-objects or linux-objects-nvidia, linux-modules, linux-header, linux-signatures or linux-signatures-nvidia

Common dependencies after a fresh install

gcc g++ git tldr curl wget ca-certificates zip unzip tree locate gnupg2 gpg clang clangd llvm

Python Dependencies

liblzma-dev liblz-dev zlib1g-dev libncurses-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev libbz2-dev

Bash aliases (~/.bashrc.d/aliases.sh or ~/.bash_aliases)

# Package Management Aliases.
alias ud="sudo dnf check-update"
alias ug="sudo dnf upgrade"
alias dg="sudo dnf distro-sync"
alias cache="sudo dnf clean packages"
alias clean="sudo dnf clean all && ud"
alias get="sudo dnf install"
alias yget="sudo dnf install -y"
alias del="sudo dnf remove"
alias arem="sudo dnf autoremove"
alias search="dnf search"
alias info="dnf info"
alias bi="sudo dnf check"
alias alt="sudo alternatives --config"
alias lssrc="ls /etc/yum.repos.d"
alias cdsrc="cd /etc/yum.repos.d"
alias srcs="sudo nano /etc/yum.repos.d/fedora-updates.repo"
alias csrc="sudo cat /etc/yum.repos.d/fedora-updates.repo"

# Systemctl aliases.
alias ver="cat /etc/os-release"
alias off="sudo systemctl poweroff"
alias boot="sudo systemctl reboot"
alias sus="sudo systemctl suspend"
alias sstop="sudo systemctl stop"
alias srun="sudo systemctl start"
alias sstat="sudo systemctl status"
alias srest="sudo systemctl restart"
alias son="sudo systemctl enable"
alias soff="sudo systemctl disable"

# Application aliases.
# Python aliases.
alias python=python3
alias pip=pip3
# Docker aliases
alias dock="sstat docker.socket containerd docker"
alias dockr="srun docker.socket containerd docker"
alias docks="sstop docker.socket containerd docker"

# Bash Config Aliases.
alias brc="nano ~/.bashrc"
alias barc="nano ~/.bashrc.d/aliases.sh"
alias carc="cat ~/.bashrc.d/aliases.sh"
alias q="exit"

# Misc aliases.
alias kver="uname -a"
alias sv="sudo visudo"
alias pd="passwd"
alias spd="sudo passwd"
alias shf="ls -ld .?*"
alias size1="du -h -s"
alias size2="du -h -s .*"

# ls aliases
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'

# Basic Aliases
alias cls="clear"
alias wi="whereis"
alias wh="which"
alias shell='exec "$SHELL" -l'
alias sun="sudo nano"

# Trash CLI Aliases
alias tp="trash-put"
alias tl="trash-list"
alias trs="trash-restore"
alias te="trash-empty"
alias rem="sudo rm -f -i"

# GRUB
alias ngrub="sudo nano /etc/default/grub"
# alias ugrub="sudo grub2-mkconfig -o /boot/grub2/grub.cfg"  # Use for Legacy BIOS systems
alias uefigrub="sudo grub2-mkconfig -o /boot/grub2/grub.cfg"  # Use for UEFI systems
alias cgrub="cat /etc/default/grub"
alias lgrub="sudo grubby --info=ALL" # List all kernel entries managed by BLS

# Customizations
alias fcache="sudo fc-cache -f -r -s"
alias sysfont="cd /usr/share/fonts/"
alias usrfont="cd ~/.local/share/fonts/"
alias systhm="cd /usr/share/themes/"
alias usrthm="cd ~/.local/share/themes/"
alias sysico="cd /usr/share/icons/"
alias usrico="cd ~/.local/share/icons/"****
alias syscur="cd /usr/share/icons/"
alias usrcur="cd ~/.local/share/icons/"

Extensions

Extensions unavailable in Gnome Extensions

Releases

Packages

Contributors

Languages