~myrovh/dotfiles

myrovh's dotfiles

8b9563f enable smooth scroll in emacs

~myrovh pushed to ~myrovh/dotfiles git

6 days ago

2b62a01 fix karakal hostname

~myrovh pushed to ~myrovh/dotfiles git

6 days ago

#Dotfiles

Personal repository of dotfiles managed with dotter-rs dotfile manager.

#Initial Setup

Create user account (use wheel in Arch and sudo in Debian)

  • use 'sudo' on debian instead of wheel
  • if needed use -u 1000 -g 1000 to set the user and group ids but 1000 should be the default for both
useradd -m -G wheel ${USERNAME}
chsh -s /bin/zsh ${USERNAME} #if zsh is installed

# if you need to add extra groups later use:
usermod -aG additional_groups username

#Install on Arch Linux

sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/paru.git ~/build/paru
cd ~/build/paru && makepkg -si
git clone https://aur.archlinux.org/dotter-rs.git ~/build/dotter
cd ~/build/dotter && makepkg -si

#Debian

sudo apt install gcc rustup git libssl-dev pkg-config
rustup default stable
cargo install dotter topgrade cargo-update

#Install on Alpine Linux

sudo apk add gcc git rustup musl-dev
rustup-init
cargo install dotter

#Clone and install repo

git clone https://git.sr.ht/~myrovh/dotfiles ~/.dotfiles
cp ~/.dotfiles/.dotter/local_example.toml ~/.dotfiles/.dotter/local.toml
nvim ~/.dotfiles/.dotter/local.toml
cd ~/.dotfiles && dotter

Use local.toml to define which packages you want to install and to set any required variables.

All colours are managed with via base16 templates. Import a base16 .toml in local.toml. To regenerate the templates run:

# base16-builder-go can have errors if you try to run it from another directory and point to the right templates via the templates-dir flag
cd ~/.dotfiles/.dotter/base16
base16-builder-go -online
#Changing remote after getting ssh-agent hooked up to git keys

Need to switch over to ssh url in order to push changes back to sourcehut.

git remote set-url origin git@git.sr.ht:~myrovh/dotfiles

#Zsh

#Arch

paru -S zoxide broot rsync bat eza man-db

#Debian

sudo apt install zoxide rsync bat eza build-essential libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev -y
cargo install --locked broot

#Sway

List of Arch Linux package names for all the programs that are expected to be executed by the sway environment.

  • autotiling-rs: automatically switch horizontal and vertical
  • cliphist: clipboard manager
  • kanshi: auto apply output configs on display hotswap
  • dex: autostart/execute all programs in the autostart folders
  • GNOME Keyring: easiest secret management for applications
  • wlsunset: day/night gamma adjustments for wayland
  • wl-clipboard: basic clipboard utilities in wayland
  • wob: overlay bar
  • wofi: launcher/menu program for wayland
  • grimshot: grim contrib script for taking screenshots easier
  • python: used by swayfader.py
  • iosevka
  • Inter

#Arch

paru -S gnome-keyring kanshi wl-clipboard wtype dex wlsunset autotiling-rs cliphist wob dunst grim python python-i3ipc ttc-iosevka inter-font brightnessctl blueman pasystray papirus-icon-theme sway grimshot-bin-sway inter-font

Only needed if flatpak support is desired:

paru -S xdg-desktop-portal-wlr

#Debian

sudo apt install wob brightnessctl sway dunst python3-i3ipc python3 dex

#Alpine

sudo apk add wl-clipboard wtype dex wlsunset cliphist wob dunst python3 font-iosevka

#emacs-doom

#Arch

paru -S emacs-wayland graphviz shellcheck fd pandoc prettier markdownlint proselint sqlite texlive-core texlive-bin texlive-science texlive-latexextra hunspell hunspell-en_au hunspell-en_gb ktlint

#Debian

sudo apt install emacs-pgtk fd-find graphviz shellcheck pandoc python3-proselint sqlite3 texlive dvipng hunspell hunspell-en-au hunspell-en-gb