Skip to content

dotfiles

Notifications You must be signed in to change notification settings

eratio08/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔵 Dotfiles

This repository uses stow to manage the dotfile. stow will manage the symbolic linking. For this reason each package has to contain the target directory structure.

To link a package run

cd dotfiles
stow nvim

This will only work if /dotfile is located in ~/.


🍏 macOS on MacBook Pro 18.4

🖥️ Apps

  • Amethyst - simulate tiling window manager
  • Yazi - tui file manager
  • lazydocker - docker tui
  • WezTerm - terminal emulator
  • bat - cat alternative
  • ripgrep - grep alternative
  • eza - ls alternative
  • asdf - universal version manager for languages
  • fd - find alternative
  • Typst - fast LaTeX alternative

👞 Steps

Yazi
# rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update

# sources
git clone https://github.com/sxyazi/yazi --depth=1
cargo build --release --locked

# put it on the path
sudo cp target/release/yazi /usr/local/bin/ya
sudo cp target/release/ya /usr/local/bin/yacli

🐧 Archlinux on MacBook Pro 11.1 🍎

🧑‍💻 Apps

Steps

Setup via BT tethering as WiFi will not work yet.

Optimize pacman mirros for germany.

sudo pacman-mirrors -c Germany

Install yay

sudo pacman -S yay

Install WiFi driver

broadcom-wl-dkms

WiFi should work now

Install dev package (used by some AUR packages)

yay -S base-devel

Install main font

yay -S nerd-fonts-jetbrains-mono

Install sway and the rest

yay -S sway swayidle swaylock swaybg waybar mako alacritty hunter redshift-wayland-git

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install powerlevel10k

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Install tlp for laptop power management

yay -S tlp

Dev Stuff

Node Version Manager, Rustup

yay -S nvm rustup

SDKMAN

curl -s "https://get.sdkman.io" | bash

Elliptic Curve SSH Key (source)

ssh-keygen -o -a 256 -t ed25519 -C "$(hostname)-$(date +'%d-%m-%Y')"

Elliptic Curve GPG Key (source)

gpg2 --expert --full-gen-key

Also checkout the Archwiki gpg page about how to configure pinentry-tty to allow gpg key password in shell.


🪟 Sway

For more information use:

man 5 sway

📔 Mako

Test mako styling with

notify-send 'Hello world!' 'This is an example notification.'

💨 Fan Control

Use mbpfan as of 2020-05-30 only the repo version (self build) works

If it got fixed use:

yay -S mbpfan-git

🗄 Restic

Use the following crontab to schedule the backups. When using cronie/anachron make sure to not include the .sh.

# mm hh DD MM W
0  6-23/2  *  *  * /home/.../backup

🦊 Firefox

To force darkmode on websites, visit about:config and create a new entry with the value of 1.

ui.systemUsesDarkTheme

⌨️ Keyboard

Fn Keys

To disable fn-look use:

echo 2 | sudo tee -a /sys/module/hid_apple/parameters/fnmode

Or use the alias:

alias fn-lock="echo 2 | sudo tee -a /sys/module/hid_apple/parameters/fnmode"
alias fn-lock-off="echo 1 | sudo tee -a /sys/module/hid_apple/parameters/fnmode"

fn-lock
fn-lock-off

🔋 Immediate Wake Up after Standby Issue

There is an issue with the power management where the os wakes up immediately after standby sometimes.

Check the wake up settings with

cat /proc/acpi/wakeup

Most of the time the offender is the XHC1. Disable it using:

echo XHC1 > /proc/acpi/wakeup

Linux tools in Rust

  • eza instead of ls
  • bat instead of cat
  • bottom instead of top
  • tokei for source code statistics
  • ripgrep better grep
  • fd better find

Planned

  • zoxide smart cd

References