add dotfiles

This commit is contained in:
Jean-Marie Mineau 2020-09-13 21:06:35 +02:00
commit a11416f4a8
4 changed files with 128 additions and 0 deletions

17
.bashrc Normal file
View file

@ -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'

View file

@ -0,0 +1,4 @@
env:
TERM: "xterm-256color"
key_bindings:
- { key: Return, mods: Control|Shift, action: SpawnNewInstance }

49
.config/i3/lock.sh Executable file
View file

@ -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

58
.xinitrc Normal file
View file

@ -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