My dotfiles. I started from Achilleas Koutsou's configs for some of these, see e.g. his vim configuration.
Run create_symlinks.sh
to create symlinks to the configuration files in this repo in your home directory. Optionally pass the -x
flag to add configuration files for the full desktop environment, see below. You will be prompted to backup or delete existing configuration files, see code and comments in create_symlinks.sh
.
- autojump
- a Nerd Font for glyphs and Powerline characters
- all configs in here use Fira Code and Fantasque Sans Mono
- ranger
- submodules:
- base-16-shell
- ranger_devicons
- tmux
- vim (optionally replaced by neovim)
- zsh
- all submodules of this repo
- sway
- Bindings and/or configs for these exist, but nothing else breaks without them:
- all autostarts and workspace assignments in the i3 config
- astroid
- dunst
- contour
- grim and slurp
- NetworkManager
- disable polybar module if you don't use this
- noisetorch
- rofi with wayland support
- rofi-calc
- waybar
- waylock
- wl-clipboard
- zathura
- change the view method for vimtex if you don't use this
automatically lock screen on suspend/sleep/hibernate
[Unit]
Description=Lock screen before suspend
Before=sleep.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
[Service]
User=user
Type=simple
Environment=DISPLAY=:0
ExecStart=/bin/sh -c "~/.config/sway/scripts/lock_screen.sh"
[Install]
WantedBy=sleep.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
ensure the screen is locked before suspend/sleep/hibernate
[Unit]
Description=Wait for Screen Lock
Before=sleep.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
[Service]
User=user
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/bin/sleep 3
[Install]
WantedBy=sleep.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
automatically turn wifi off/on when connecting to/disconnecting from a wired network
#!/bin/bash
wired_interfaces="en.*|eth.*"
if [[ "$1" =~ $wired_interfaces ]]; then
case "$2" in
up)
nmcli radio wifi off
;;
down)
nmcli radio wifi on
;;
esac
fi