Skip to content

dmitana/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Prerequisites

Installation

  1. Add .dots directory to the .gitignore file.
$ echo ".dots" >> .gitignore
  1. Clone the repo.
# SSH
$ git clone --bare git@github.com:dmitana/dotfiles.git $HOME/.dots

# HTTPS
$ git clone --bare https://github.com/dmitana/dotfiles.git $HOME/.dots
  1. Restart shell or define the alias in the current shell scope.
$ alias dots='/usr/bin/git --git-dir=$HOME/.dots/ --work-tree=$HOME'

# Add fetch line if you want behaviour as with a non-bare repository clone.
$ dots config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
  1. Checkout the actual content from the bare repository to your $HOME. $HOME folder might already have some stock configuration files which would be overwritten by Git (e.g. .vimrc, .zshrc, ...).
# Back up the files if you care about them
$ mkdir -p .dots_backup && \
dots checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .dots-backup/{}

# Remove them if you don't care
$ dots checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} rm {}

# Checkout the actual content
$ dots checkout
  1. Set the flag showUntrackedFiles to no on this specific (local) repository.
$ dots config --local status.showUntrackedFiles no
  1. Install zsh.

  2. Install powerline for tmux (based on this answer and doc). Quick install (when fonts are already installed).

# Ach
$ yay -S powerline powerline-fonts

# Ubuntu
$ sudo apt install powerline

# Python
$ pip install --user powerline-status
  1. Install nvim.

Optional

  1. Use the predefined configurations for X server, Udev rules and SDDM.
# Monitor and X input configuration
$ sudo ln -s ~/etc/xorg/10-monitor.conf /etc/X11/xorg.conf.d/10-monitor.conf
$ sudo ln -s ~/etc/xorg/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf

# Udev rules configuration
$ sudo cp ~/etc/udev/10-ambilight.rules /etc/udev/rules.d/10-ambilight.rules
$ sudo ln -s ~/etc/udev/99-udisks2.rules /etc/udev/rules.d/99-udisks2.rules
$ sudo ln -s ~/etc/tmpfiles/media.conf /etc/tmpfiles.d/media.conf # set mount directory to the /media/$USER instead of /run/media/$USER

# SDDM configuration
$ sudo mkdir /etc/sddm.conf.d
$ sudo cp ~/etc/sddm/general.conf /etc/sddm.conf.d/general.conf
$ sudo ln -s ~/etc/sddm/xorg.conf /etc/sddm.conf.d/xorg.conf
$ sudo ln -s ~/etc/sddm/theme.conf /etc/sddm.conf.d/theme.conf
$ sudo cp ~/.config/awesome/theme/wallpapers/* /usr/share/sddm/themes/Sugar-Candy/Backgrounds # Copy custom wallpapers
$ sudo cp ~/etc/sddm/themes/Sugar-Candy/theme.conf.user /usr/share/sddm/themes/Sugar-Candy/theme.conf.user
$ sudo ln -sf ~/etc/sddm/scripts/Xsetup /usr/share/sddm/scripts/Xsetup