Skip to content

vnea/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Just my dotfiles and tools.

0. Getting started

Prerequisite(s)

Installation

# Via SSH
git clone git@github.com:vnea/dotfiles.git ~/dotfiles

# Or via HTTP
git clone https://github.com/vnea/dotfiles.git ~/dotfiles

1. Bash aliases (Linux & Mac)

Installation

In your .bashrc or .zshrc, add:

##############################
# Load aliases
##############################
for f in $(find ~/dotfiles/aliases -maxdepth 1 -name "*.sh"); do source $f; done

Then, reload the configuration:

# For Bash
source .bashrc

# For Zsh
source .zshrc

2. Neovim (Linux & Mac)

Prerequisite(s)

Installation

rm -rf ~/.config/nvim && stow nvim

# For vim-sort-folds
pip install neovim

# Then enable undercurl: https://dev.to/anurag_pramanik/how-to-enable-undercurl-in-neovim-terminal-and-tmux-setup-guide-2ld7
tic -x ~/dotfiles/terminal/xterm-256color.ti

3. tmux (Linux & Mac)

Prerequisite(s)

Installation

# tmux
rm -rf ~/.tmux.conf ~/.config/tmux && stow tmux

# Install tmux plugins
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
tmux
# Press "CTRL-Q then I", wait for installation and restart tmux

4. Git (Linux & Mac)

Prerequisite(s)

  • git

  • delta

  • diff-so-fancy

  • (optional) ansible-vault-merge:

    1. Download it here and name it ansible-vault-merge.

    2. Check that script is not malicious before continuing.

    3. Run: chmod +x ansible-vault-merge.

    4. Run: sudo mv ansible-vault-merge /usr/local/bin.

Installation

rm -f ~/.gitconfig
git config --global user.name "User name"
git config --global user.email "email"

cat <<EOT >> ~/.gitconfig

[include]
    path = dotfiles/git/.gitconfig

EOT

5. i3 (Linux)

Prerequisite(s)

Installation

# i3
rm -rf ~/.config/i3 && stow i3

# picom
rm -rf ~/.config/picom && stow picom

# light
sudo gpasswd -a $USER video
# Reboot computer

6. rofi (Linux)

Prerequisite(s)

Installation

rm -rf ~/.config/rofi/config.rasi && stow rofi

7. thefuck (Linux & Mac)

Installation

rm -rf ~/.config/thefuck && stow thefuck

8. GTK (Linux)

Installation

rm -rf ~/.config/gtk-3.0 && stow gtk

9. Dunst (Linux)

Installation

rm -rf ~/.config/dunst && stow dunst

10. Zsh + Oh My Zsh + Powerlevel10k (Linux & Mac)

Prerequisite(s)

Installation

rm -f ~/.p10k.zsh && stow p10k
rm -f ~/.zshrc && stow zsh

# Reboot the Terminal

11. Betterlockscreen (Linux)

Prerequisite(s)

Generate cache

betterlockscreen --update ~/.config/i3/images/lockscreen.jpg --fx blur

Lockscreen after sleep/suspend

systemctl enable betterlockscreen@$USER

12. Alacritty (Linux & Mac)

Installation

~/dotfiles/alacritty/.config/alacritty/scripts/toggle_theme.sh
rm -rf ~/.config/alacritty && stow alacritty

# Restart alacritty

13. Kitty (Linux & Mac)

Installation

rm -rf ~/.config/kitty && stow kitty

# Restart kitty

14. Flameshot (Linux & Mac)

Installation

rm -rf ~/.config/flameshot/flameshot.ini && cp ~/dotfiles/flameshot/.config/flameshot/flameshot.ini ~/.config/flameshot

15. Systemd services & timers (Linux)

Notify low battery

sudo ln -s ~/dotfiles/systemd/user/notify-low-battery /usr/local/bin/notify-low-battery
ln -s ~/dotfiles/systemd/user/notify-low-battery.service ~/.config/systemd/user/notify-low-battery.service
ln -s ~/dotfiles/systemd/user/notify-low-battery.timer ~/.config/systemd/user/notify-low-battery.timer
systemctl --user daemon-reload
systemctl --user start notify-low-battery.service
systemctl --user enable notify-low-battery.timer
systemctl --user start notify-low-battery.timer

16. mise-en-place (Linux & Mac)

Installation

rm -rf ~/.config/mise && stow mise

17. Lazydocker (Linux & Mac)

Installation

# Linux
rm -rf ~/.config/lazydocker && stow lazydocker

# Mac OS
rm ~/Library/Application\ Support/lazydocker/config.yml && ln -s ~/dotfiles/lazydocker/.config/lazydocker/config.yml ~/Library/Application\ Support/lazydocker/config.yml

18. Lazygit (Linux & Mac)

Installation

# Linux
rm -rf ~/.config/lazygit && stow lazygit

# Mac OS
rm ~/Library/Application\ Support/lazygit/config.yml && ln -s ~/dotfiles/lazygit/.config/lazygit/config.yml ~/Library/Application\ Support/lazygit/config.yml

19. Aerospace (Mac)

Installation

rm -rf ~/.config/aerospace && stow aerospace

20. Karabiner (Mac)

Installation

rm -rf ~/.config/karabiner && stow karabiner

21. k9s (Linux & Mac)

Installation

# Linux
rm -rf ~/.config/k9s && stow k9s

# Mac OS
rm -rf ~/Library/Application\ Support/k9s && ln -s ~/dotfiles/k9s/.config/k9s ~/Library/Application\ Support/k9s

22. Raycast (Mac)

Installation

Steps to install scripts:

  • Open Raycast, search for Extensions, open it.

  • Click on the + button.

  • Click on Add Script Directory.

  • Select ~/dotfiles/raycast/scripts/.