Initial import

This commit is contained in:
Lucas 2019-09-11 02:11:40 +00:00
commit 3779fdce2c
48 changed files with 2012 additions and 0 deletions

31
dotfiles/Makefile Normal file
View file

@ -0,0 +1,31 @@
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
.POSIX:
.SUFFIXES:
PREFIX= $(HOME)
FILES= Xdefaults gitconfig mg nexrc profile shrc tmux.conf xinitrc
all: install
clean: ;
diff:
-for f in $(FILES); do diff -u "$$f" $(PREFIX)/."$$f"; done
install:
for f in $(FILES); do cp -fv "$$f" $(PREFIX)/."$$f"; done
ln -fs $(PREFIX)/.xinitrc $(PREFIX)/.xsession
uninstall:
for f in $(FILES); do rm -f $(PREFIX)/."$$f"; done
rm -f $(PREFIX)/.xsession

78
dotfiles/Xdefaults Normal file
View file

@ -0,0 +1,78 @@
! env
! Written in 2019 by Lucas
! CC0 1.0 Universal/Public domain - No rights reserved
!
! To the extent possible under law, the author(s) have dedicated all
! copyright and related and neighboring rights to this software to the
! public domain worldwide. This software is distributed without any
! warranty. You should have received a copy of the CC0 Public Domain
! Dedication along with this software. If not, see
! <http://creativecommons.org/publicdomain/zero/1.0/>.
! xterm
XTerm.termName: xterm-256color
XTerm.VT100.loginShell: true
XTerm.VT100.backarrowKey: false
XTerm.VT100.backarrowKeyIsErase: true
XTerm.VT100.bellIsUrgent: true
XTerm.VT100.charClass: 33-47:48,58-64:48,91-96:48,123-126:48
XTerm.VT100.deleteIsDEL: false
XTerm.VT100.metaSendsEscape: true
XTerm.VT100.translations: #override \n\
Ctrl Alt <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl Alt <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(SELECT) \n\
Ctrl Shift <Key>V: insert-selection(SELECT)
XTerm.VT100.saveLines: 2000
XTerm.VT100.scrollBar: false
XTerm.VT100.scrollTtyOutput: false
XTerm.VT100.scrollKey: true
!XTerm.VT100.font: -lucy-tewi-medium-r-normal--11-90-100-100-c-60-iso10646-1
!XTerm.VT100.boldFont: -lucy-tewi-bold-r-normal--11-80-100-100-c-60-iso10646-1
XTerm.VT100.font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1
XTerm.VT100.boldFont: -misc-fixed-medium-r-bold--13-120-75-75-c-70-iso10646-1
XTerm.VT100.faceName: monospace:size=9
XTerm.VT100.faceNameDoublesize: M+ 2p:size=9
XTerm.VT100.color0: #000000
XTerm.VT100.color1: #cc2900
XTerm.VT100.color2: #29cc00
XTerm.VT100.color3: #cca300
XTerm.VT100.color4: #0029cc
XTerm.VT100.color5: #cc00a3
XTerm.VT100.color6: #00a3cc
XTerm.VT100.color7: #cccccc
XTerm.VT100.color8: #333333
XTerm.VT100.color9: #ff5c33
XTerm.VT100.color10: #5cff33
XTerm.VT100.color11: #ffd633
XTerm.VT100.color12: #335cff
XTerm.VT100.color13: #ff33d6
XTerm.VT100.color14: #33d6ff
XTerm.VT100.color15: #ffffff
XTerm.VT100.background: #0d0a00
XTerm.VT100.foreground: #fffcf2
! ssh-askpass
SshAskpass.grabKeyboard: False
SshAskpass.grabPointer: False
!SshAskpass*font: -lucy-tewi-medium-r-normal--11-90-100-100-c-60-iso10646-1
!SshAskpass*fixedFont: -lucy-tewi-bold-r-normal--11-80-100-100-c-60-iso10646-1
SshAskpass*font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1
SshAskpass*fixedFont: -misc-fixed-medium-r-bold--13-120-75-75-c-70-iso10646-1
SshAskpass*foreground: #fffcf2
SshAskpass*background: #0d0a00
SshAskpass*bottomShadowColor: #cca300
SshAskpass*topShadowColor: #ffd633
SshAskpass.shadowThickness: 0
SshAskpass.Button.shadowThickness: 2
SshAskpass.Indicator.shadowThickness: 0
SshAskpass.Indicator.foreground: #33d6ff
SshAskpass.Indicator.background: #00a3cc
SshAskpass.Indicator.width: 4
SshAskpass.Indicator.height: 1
SshAskpass.Indicator.horizontalSpacing: 2
SshAskpass.Indicator.minimumCount: 10
SshAskpass.Indicator.maximumCount: 10

41
dotfiles/gitconfig Normal file
View file

@ -0,0 +1,41 @@
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
[user]
name = Lucas
email = lucas@domain.invalid
[core]
editor = ed
excludesfile = ~/.gitignore
[color]
ui = never
[format]
coverletter = auto
thread = shallow
[alias]
a = add -p
br = branch
ci = commit -v
cia = commit -v --amend
co = checkout
prb = pull --rebase
rb = rebase
rbc = rebase --continue
rbi = rebase -i --autosquash
st = status -s
tree = log --all --graph --pretty='%h%d %aN: %s'
[push]
default = simple

22
dotfiles/mg Normal file
View file

@ -0,0 +1,22 @@
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
global-set-key "\^w" backward-kill-word
global-set-key "\^x " set-mark-command
global-set-key "\^x\^z" suspend-emacs
global-set-key "\^xw" kill-region
global-set-key "\^z" undo
auto-indent-mode 1
backup-to-home-directory 1
column-number-mode 1
make-backup-files 1
set-default-mode indent

18
dotfiles/nexrc Normal file
View file

@ -0,0 +1,18 @@
" env
" Written in 2019 by Lucas
" CC0 1.0 Universal/Public domain - No rights reserved
"
" To the extent possible under law, the author(s) have dedicated all
" copyright and related and neighboring rights to this software to the
" public domain worldwide. This software is distributed without any
" warranty. You should have received a copy of the CC0 Public Domain
" Dedication along with this software. If not, see
" <http://creativecommons.org/publicdomain/zero/1.0/>.
set autoindent
set iclower
set leftright
set ruler
set showmatch
set showmode
set wrapscan

24
dotfiles/profile Normal file
View file

@ -0,0 +1,24 @@
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
# Mostly taken from OpenBSD's stock .profile
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
PATH=$HOME/bin:$HOME/local/bin:$PATH
LC_CTYPE="en_US.UTF-8"
export PATH HOME TERM LC_CTYPE
case "$-" in
*i*)
case "$SHELL" in
/bin/bash) . ~/.shrc ;;
/bin/ksh | /bin/loksh | /bin/mksh) export ENV=~/.shrc ;;
esac
esac

47
dotfiles/shrc Normal file
View file

@ -0,0 +1,47 @@
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
\unalias -a
EDITOR=ed
PAGER=less
VISUAL=ed
export EDITOR PAGER VISUAL
GPG_TTY=$(tty)
export GPG_TTY
alias cp="cp -i"
alias l="ls -F"
alias la="ls -aF"
alias ll="ls -lF"
alias mv="mv -i"
alias p="$PAGER"
if [ -d ~/local/man ]; then
alias man="/usr/bin/man -m ~/local/man"
fi
case $SHELL in
/bin/mksh)
PS1='${HOSTNAME:=$(hostname -s)}\$ '
;;
*) PS1='\h\$ '
;;
esac
export PS1
case $(uname -s) in
Linux) stty erase ^?
;;
esac
set -o emacs

18
dotfiles/tmux.conf Normal file
View file

@ -0,0 +1,18 @@
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
set -g default-terminal "tmux-256color"
set -g mouse off
set -g automatic-rename off
set -g base-index 1
bind A set -w synchronize-panes on
bind a set -w synchronize-panes off

27
dotfiles/xinitrc Executable file
View file

@ -0,0 +1,27 @@
#!/bin/sh
# env
# Written in 2019 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty. You should have received a copy of the CC0 Public Domain
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
test -r ~/.profile && . ~/.profile
setxkbmap \
-layout us \
-variant altgr-intl \
-option compose:menu -option ctrl:nocaps
xset r rate 330 75
xset b off
test -d /usr/local/share/fonts/bitmaps \
&& xset +fp /usr/local/share/fonts/bitmaps \
&& xset fp rehash
test -r ~/.Xresources && xrdb -merge ~/.Xresources
exec herbstluftwm -l >~/local/var/log/herbstluftwm 2>&1