Skip to content

Kleinjohann/dotfiles

Repository files navigation

dotfiles

My dotfiles. I started from Achilleas Koutsou's configs for some of these, see e.g. his vim configuration.

Screenshots

Installation

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.

Requirements

Necessary

  • 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

Optional

Full Desktop Environment (Optional, create symlinks with -x flag)

Installation Tips

Services / Hooks

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published