Personal Linux setup
-
Git:
sudo add-apt-repository ppa:git-core/ppa -y sudo apt update; sudo apt install git
-
Enalbe RPM Fusion for Fedora: https://rpmfusion.org/Configuration/
-
Dev tools, software
# Fedora sudo dnf groupinstall "Development Tools" "Development Libraries" sudo dnf install tmux vim neovim bash-completion python3-neovim tldr htop sudo dnf install evolution evolution-ews # Debian sudo apt install -y tmux vim curl build-essential bash-completion sudo add-apt-repository ppa:neovim-ppa/stable sudo apt update sudo apt install -y neovim
-
Git Prompt
-
Install Bash Git Prompt
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
Add the following to
~/.bashrc
# git-bash-prompt if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then GIT_PROMPT_ONLY_IN_REPO=1 source $HOME/.bash-git-prompt/gitprompt.sh fi
-
git clone https://github.com/olivierverdier/zsh-git-prompt.git ~/.zsh-git-prompt --depth=1
Add the following to
~/.zshrc
# load zsh git prompt source $HOME/.zsh-git-prompt/zshrc.sh # configure prompt PROMPT='%B%m%~%b$(git_super_status) %# '
-
-
NVM, Node.js
# Install NVM curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash . ~/.bashrc # Install Node.js nvm install --lts
-
Set up Flathub.
-
Use Nvidia Driver on Fedora
- Install drivers follow https://rpmfusion.org/Howto/NVIDIA
- (optionally) set Nvidia as primary GPU
- On login: select GNOME on xorg
Sync dotfiles using chezmoi
sh -c "$(curl -fsLS chezmoi.io/get)"
chezmoi init --apply [email protected]:paseaf/dotfiles.git
- In Obsidian, install vimrc-support plugin
- Create a
.obsidian.vimrc
file in your Obsidian Vault root path - In
.obsidian.vimrc
, add the following and save" Yank to system clipboard set clipboard=unnamed
- Reload Obsidian (
Ctrl+P
and searchreload
)
- Install Gnome Tweaks
sudo dnf install gnome-tweaks
- Open
Gnome Tweaks
InFonts
, adjustScaling Factor
- Turn off
Super+Tab
:
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Alt>Tab']"
Need Super+Tab
for obsidian templater
- Disble
Ctrl+Alt+Left/Right
from switchign workspaces
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Super>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Super>Page_Up']"
- Toggle "Always on Top" with
Ctrl+Super+T
dconf write /org/gnome/desktop/wm/keybindings/always-on-top "['<Control><Super>t']"
Create /lib/systemd/system-sleep/bluetooth
with
#!/bin/sh
case $1 in
post)
modprobe -r btusb
sleep 1
service bluetooth restart
sleep 1
modprobe btusb
;;
esac
chmod +x /lib/systemd/system-sleep/bluetooth