From a11416f4a860e3c667ed24784a9df0d6d052d34d Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Sun, 13 Sep 2020 21:06:35 +0200 Subject: [PATCH] add dotfiles --- .bashrc | 17 ++++++++++ .config/alacritty/alacritty.yml | 4 +++ .config/i3/lock.sh | 49 ++++++++++++++++++++++++++++ .xinitrc | 58 +++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 .bashrc create mode 100755 .config/alacritty/alacritty.yml create mode 100755 .config/i3/lock.sh create mode 100644 .xinitrc diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..40bbbd0 --- /dev/null +++ b/.bashrc @@ -0,0 +1,17 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +PS1='[\u@\h \W]\$ ' + +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env" +fi +if [[ ! "$SSH_AUTH_SOCK" ]]; then + source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null +fi +alias config='/usr/bin/git --git-dir=/home/me/.cfg/ --work-tree=/home/me' diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100755 index 0000000..521f05d --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,4 @@ +env: + TERM: "xterm-256color" +key_bindings: + - { key: Return, mods: Control|Shift, action: SpawnNewInstance } diff --git a/.config/i3/lock.sh b/.config/i3/lock.sh new file mode 100755 index 0000000..8d8475e --- /dev/null +++ b/.config/i3/lock.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +B='#00000000' # blank +C='#ffffff22' # clear ish +D='#ff00ffcc' # default +T='#ee00eeee' # text +W='#880000bb' # wrong +V='#bb00bbbb' # verifying + +RED='#aa0000ff' +BLACK='#000000ff' +GRAY='#aaaaaaff' + +i3lock \ +-i ~/.config/img/lockscreen.png \ +-t \ +--insidevercolor=$B \ +--ringvercolor=$GRAY \ +\ +--insidewrongcolor=$B \ +--ringwrongcolor=$RED \ +\ +--insidecolor=$B \ +--ringcolor=$B \ +--linecolor=$B \ +--separatorcolor=$B \ +\ +--verifcolor=$GRAY \ +--wrongcolor=$RED \ +--timecolor=$BLACK \ +--datecolor=$BLACK \ +--keyhlcolor=$GRAY \ +--bshlcolor=$GRAY \ +\ +--clock \ +--indicator \ +--timestr="%H:%M:%S" \ +--datestr="%A, %m %Y" \ +#--keylayout 0 \ +#--blur 5 \ +#--screen 1 \ + +# --veriftext="Drinking verification can..." +# --wrongtext="Nope!" +# --textsize=20 +# --modsize=10 +# --timefont=comic-sans +# --datefont=monofur +# etc diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..5339198 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,58 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + + + + + + + + xrdb -merge $sysresources + +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f "$userresources" ]; then + + + + + + + + xrdb -merge "$userresources" + +fi + +if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" +fi + +# start some nice programs + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +setxkbmap fr & +exec i3 + +#twm & +#xclock -geometry 50x50-1+1 & +#xterm -geometry 80x50+494+51 & +#xterm -geometry 80x20+494-0 & +#exec xterm -geometry 80x66+0+0 -name login