Home

Awesome

dotfiles

Clone this repository in your home directory (~). The install.sh script checks pre- and post-conditions, links files and installs/updates programs.

cd ~
git clone https://github.com/andys8/dotfiles.git
cd dotfiles
./install.sh

Machine specific configuration

~/bin/startup.sh

Local script executed on machine startup

#!/bin/bash
[ -z "$(pgrep dropbox)" ] && dropbox start &
[ -z "$(pgrep -f duplicati)" ] && duplicati &
# ubuntu only
[ -z "$(pgrep pulseaudio)" ] && pulseaudio --daemonize
#!/bin/bash
[ -z "$(pgrep -f slack)" ] && slack --startup &
[ -z "$(pgrep -f gcal-notifier-kotlin-gtk)" ] && gcal-notifier-kotlin-gtk &
[ -z "$(pgrep -f hasmail)" ] || killall hasmail
hasmail &

.hasmailrc

click=xdg-open https://mail.google.com

[gmail]
hostname=imap.gmail.com:993
username=<email>
password=lpass show -p personal/gmail-hasmail

~/.gitconfig.machine

Local default git user configuration with an example for conditional includes.

[user]
    name = andys8
    email = andys8@users.noreply.github.com

[includeIf "gitdir:~/dev/repository/work/"]
    path = ~/.gitconfig.work

~/.gitconfig.work

[user]
    name = andreas
    email = andreas@work.com
[url "ssh://git@github.com/"]
    insteadOf = https://andreas-work@github.com/

~/.profile.machine

Contains per system environment variables (optional).

export PATH=/home/user/example-path:$PATH
export SLACK_TOKEN=example-token

Shell

Change shell to fish

bash -c 'chsh -s $(chsh -l | grep -m 1 fish)'

Fish theme

Open config with fish_config and set theme to dracula in Web-UI.

Terminal

Alacritty

DPI

Add WINIT_HIDPI_FACTOR=1.0 to /etc/environment

Add alacritty to terminals

sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/alacritty 80

st (suckless-terminal)

Fork of st: andys8/st

Add st to terminals and set as default

sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/st 80
sudo update-alternatives --config x-terminal-emulator

Xmonad

lightdm is expected. /usr/share/xsessions/xmonad.desktop will be created if not existing.

Super + Space on Ubuntu

Run ibus-setup and delete shortcut to remove conflict with keybinding.

Qutebrowser

Default browser

xdg-settings set default-web-browser org.qutebrowser.qutebrowser.desktop
xdg-settings set default-web-browser chromium.desktop # or stick with chromium
xdg-mime default chromium.desktop x-scheme-handler/https
xdg-mime default chromium.desktop x-scheme-handler/http

Spell checking

Download dictionaries for spell checking

git clone https://github.com/qutebrowser/qutebrowser.git && cd qutebrowser
./scripts/dictcli.py install en-US
./scripts/dictcli.py install de-DE
# or with virtualenv (if wrong directory)
./.venv/bin/python3 ./scripts/dictcli.py install en-US

Might be necessary to copy to ~/.local/share/qutebrowser/qtwebengine_dictionaries

Time

Enable time synchronization with timedatectl set-ntp true.

Git

Set credentials in ~/.netrc

sudo

Open sudo visudo and add these lines to enable asterisks and silly feedback.

Defaults insults
Defaults pwfeedback

Pacman

Enable in /etc/pacman.conf:

Color
ILoveCandy
VerbosePkgLists

Theme

Install xcursor-breeze and Ant-Dracula theme. Configure with lxappearance.

stats