This config is tuned to a single laptop screen. If features simple layouts with several options to enlarge/maximize windows. There are also options to toggle a status bar and/or gaps between windows.
For decorations we use picom to draw small shadows, round corners and optionally make alacritty transparent. Xmonad layouts are tweaked so that xmonad doesn't draw focus border when there is only a single window and maximized windows doesn't have round borders.
Switching between light and dark themes sets background and adjust configs of Dunst (notifications), xmonar (status bar), trayer (system tray), alacritty, rofi (app launcher menu).
Leader-style keys (aka which-key) help to organize numerous options into structured discoverable keybindings. As cherry on top, a physical volume control knob is hooked to interactively adjust different options, such as transparency or gaps.
- window list in status bar
The main problem of installing/updating dotfiles is that some files might already exist. The installation script prevents unexpected losses like this:
- Create a temporal "fake" home in /tmp directory
- Checkout dotfiles and all the related git repositories in the fake home.
- Compare the result file by file with the existing home and interactively resolve conflicts with user.
- Generate a script to override existing files with the new ones and present is to the user before running.
Conflict resolution:
-
Override nested git repositories.
For example ~/.xmonad/xmonad-contrib
-
Just copy new files and files without conflicts.
-
Run a difftool to merge existing files
Configure github access
scp ~/.ssh/* 192.168.1.104:~/.ssh/
Install Nushell and system tools
# from https://www.nushell.sh/book/installation.html
wget -qO- https://apt.fury.io/nushell/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/fury-nushell.gpg
echo "deb [signed-by=/etc/apt/keyrings/fury-nushell.gpg] https://apt.fury.io/nushell/ /" | sudo tee /etc/apt/sources.list.d/fury-nushell.list
sudo apt update
sudo apt install nushell
sudo apt-get install curl git myrepos vcsh
Step 2: download and run script
nu -e "
curl https://raw.githubusercontent.com/kevroletin/dotfiles/master/.config/dotfiles/install.nu
| save -f /tmp/dotfiles-install.nu
nu /tmp/dotfiles-install.nu install
"