diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2023-12-30 11:47:56 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2023-12-30 11:47:56 +0000 |
| commit | 5d631bd3ad7f78e8ca69d7001cada582fcd8d18f (patch) | |
| tree | 0e1e87fc8c75eea323b31fe8b67e76241210d3b2 | |
| parent | 82cd5a7b072b4060c6f6ce519a904772dd5f2a0d (diff) | |
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | aliases/.config/aliasrc | 18 | ||||
| -rwxr-xr-x | bin/.local/bin/remaps | 4 | ||||
| -rwxr-xr-x | bin/.local/bin/statusbar/battery (renamed from statusbar/.local/bin/statusbar/battery) | 0 | ||||
| -rwxr-xr-x | bin/.local/bin/statusbar/clock (renamed from statusbar/.local/bin/statusbar/clock) | 0 | ||||
| -rw-r--r-- | wget/.config/wget/wgetrc | 1 | ||||
| -rw-r--r-- | xinit/.config/xinitrc | 10 | ||||
| -rw-r--r-- | xprofile/.config/xprofile | 4 | ||||
| -rw-r--r-- | zsh/.config/zsh/zprofile | 5 |
9 files changed, 47 insertions, 1 deletions
@@ -1,9 +1,13 @@ clean: rm -f $$HOME/.profile + rm -f $$HOME/.xinitrc + rm -f $$HOME/.xprofile rm -f $$HOME/.zprofile stow --verbose --target=$$HOME --delete */ install: stow --verbose --target=$$HOME --restow */ - ln -s $$HOME/.config/zsh/zprofile $$HOME/.zprofile + ln -s $$HOME/.config/xinitrc $$HOME/.xinitrc + ln -s $$HOME/.config/xprofile $$HOME/.xprofile ln -s $$HOME/.config/zsh/zprofile $$HOME/.profile + ln -s $$HOME/.config/zsh/zprofile $$HOME/.zprofile diff --git a/aliases/.config/aliasrc b/aliases/.config/aliasrc new file mode 100644 index 0000000..969d5c2 --- /dev/null +++ b/aliases/.config/aliasrc @@ -0,0 +1,18 @@ +alias ls="ls -hN --color=auto --group-directories-first" +alias ll='ls -l' + +alias cp='cp -iv' +alias rm='rm -iv' +alias mv='mv -iv' + +alias grep="grep --color=auto" +alias diff="diff --color=auto" + +# Git +alias gs='git status' +alias ga='git add' +alias gb='git branch' +alias gc='git commit' +alias gd='git diff' +alias go='git checkout' +alias gl='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' diff --git a/bin/.local/bin/remaps b/bin/.local/bin/remaps new file mode 100755 index 0000000..4cd25d4 --- /dev/null +++ b/bin/.local/bin/remaps @@ -0,0 +1,4 @@ +#!/bin/sh + +setxkbmap -layout gb +setxkbmap -option caps:super diff --git a/statusbar/.local/bin/statusbar/battery b/bin/.local/bin/statusbar/battery index 9373375..9373375 100755 --- a/statusbar/.local/bin/statusbar/battery +++ b/bin/.local/bin/statusbar/battery diff --git a/statusbar/.local/bin/statusbar/clock b/bin/.local/bin/statusbar/clock index d2b8a51..d2b8a51 100755 --- a/statusbar/.local/bin/statusbar/clock +++ b/bin/.local/bin/statusbar/clock diff --git a/wget/.config/wget/wgetrc b/wget/.config/wget/wgetrc new file mode 100644 index 0000000..4445aa6 --- /dev/null +++ b/wget/.config/wget/wgetrc @@ -0,0 +1 @@ +hsts-file=~/.cache/wget/wget-hsts diff --git a/xinit/.config/xinitrc b/xinit/.config/xinitrc new file mode 100644 index 0000000..ec388f3 --- /dev/null +++ b/xinit/.config/xinitrc @@ -0,0 +1,10 @@ +#!/bin/sh + +# xinitrc runs when you run starx + +# Source xprofile as that contains commands that need run whenever we startx. +# Commands are kept in xprofile as that will run automatically if a display manager is used when logging in. +. ~/.xprofile + +exec dwm + diff --git a/xprofile/.config/xprofile b/xprofile/.config/xprofile new file mode 100644 index 0000000..3581af3 --- /dev/null +++ b/xprofile/.config/xprofile @@ -0,0 +1,4 @@ +#!/bin/sh + +remaps & # Sets correct keyboard layout and remaps some keys to make life easier in dwm. +dwmblocks & diff --git a/zsh/.config/zsh/zprofile b/zsh/.config/zsh/zprofile index 9f45164..a737d5b 100644 --- a/zsh/.config/zsh/zprofile +++ b/zsh/.config/zsh/zprofile @@ -13,3 +13,8 @@ export XDG_CACHE_HOME="$HOME/.cache" export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh" export LESSHISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/less/history" export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc" + +## StartX when first logging in. +if [[ "$(tty)" = "/dev/tty1" ]]; then + pgrep dwm || startx +fi |
