First things I could think of

This commit is contained in:
Thomas Muller 2021-12-02 11:14:39 -05:00
parent f3d3fb246e
commit 208a1b4619
8 changed files with 172 additions and 0 deletions

13
.Xresources Normal file
View file

@ -0,0 +1,13 @@
;term*background: black
;term*foreground: lightgray
;term*faceName: monospace:pixelsize=14
URxvt.font: xft:monospace:pixelsize=14,xft:Font Awesome 5 Free:minspace=False
URxvt.background: [75]black
URxvt.foreground: lightgray
URxvt.depth: 32
st.foreground: lightgray
*.font: DejaVu Sans Mono:style=Book:pixelsize=10:antialias=true:autohint=true;

3
.bash_logout Normal file
View file

@ -0,0 +1,3 @@
#
# ~/.bash_logout
#

16
.bash_profile Normal file
View file

@ -0,0 +1,16 @@
#
# ~/.bash_profile
#
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
export EDITOR="nvim"
export TERMINAL="st"
export SHELL="/bin/bash"
mpd >/dev/null 2>&1 &
[[ -f ~/.bashrc ]] && . ~/.bashrc
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi

27
.bashrc Normal file
View file

@ -0,0 +1,27 @@
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
stty -ixon # Disable ctrl-s/ctrl-q
HISTSIZE= HISTFILESIZE= # Infinite history
alias vim="nvim"
alias ls='ls --color=auto --group-directories-first'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias record_audio="ffmpeg -f alsa -ac 2 -i default out.mp3"
[ -n "$XTERM_VERSION" ] && transset-df --id "$WINDOWID" > /dev/null
PS1='[\u@\h \W]\$ '
alias sshhome="ssh devnull@home.qtechofficial.com -p 35055"
eval $(ssh-agent)
alias weather="curl wttr.in"
alias radar="wget https://radar.weather.gov/lite/N0R/MLB_loop.gif -O /tmp/radar.gif; mpv /tmp/radar.gif --loop=yes"

14
.gitignore vendored
View file

@ -1,3 +1,17 @@
* *
# This file
!.gitignore !.gitignore
# Bash
!.bashrc
!.bash_profile
!.bash_logout
# XOrg
!.xinitrc
!.xprofile
!.Xresources
# Vim
!.vimrc

45
.vimrc Normal file
View file

@ -0,0 +1,45 @@
set nocompatible
filetype off
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
filetype plugin on
syntax on
set encoding=utf-8
set number relativenumber
set wildmode=longest,list,full
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
nnoremap S :%s//g<Left><Left>
" Splits below and right
set splitbelow splitright
" Copy paste
vnoremap <C-c> "+y
map <C-p> "+P
" Get rid of extra whitespace
autocmd BufWritePre * %s/\s\+$//e
" Markers
inoremap <leader><leader> <Esc>/<++><Enter>"_c4l
vnoremap <leader><leader> <Esc>/<++><Enter>"_c4l
map <leader><leader> <Esc>/<++><Enter>"_c4l
" Run xrdb when Xresources or Xdefaults are changed
autocmd BufWritePost *Xresources,*Xdefaults !xrdb %
" Reload sxhkd when config is edited
autocmd BufWritePost sxhkdrc :silent !pkill sxhkd; sxhkd &
" yml
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType yml setlocal ts=2 sts=2 sw=2 expandtab
set ts=4 sts=4 sw=4 expandtab

43
.xinitrc Normal file
View file

@ -0,0 +1,43 @@
#!/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
[ -f "$HOME/.xprofile" ] && . ~/.xprofile
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

11
.xprofile Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
xset r rate 200 150 &
xwallpaper --zoom $HOME/.config/wallpaper.png
xcompmgr &
dunst &
sxhkd &
keepassxc &
syncthingtray --wait &