Whatever is on my tower

This commit is contained in:
Thomas Muller 2021-12-03 00:01:50 -05:00
commit fadf04dc37
Signed by: thomas
GPG key ID: AF006EB730564952
7 changed files with 214 additions and 0 deletions

2
.Xresources Normal file
View file

@ -0,0 +1,2 @@
! *.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
#

25
.bash_profile Normal file
View file

@ -0,0 +1,25 @@
#
# ~/.bash_profile
#
export LESS=-R
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
export EDITOR="nvim"
export TERMINAL="st"
export SHELL="/bin/bash"
export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:';
[[ -f ~/.bashrc ]] && . ~/.bashrc
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi

65
.bashrc Normal file
View file

@ -0,0 +1,65 @@
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
stty -ixon # Disable ctrl-s/ctrl-q
HISTSIZE= HISTFILESIZE= # Infinite history
alias ls='ls --color=auto --group-directories-first'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
# [ -n "$XTERM_VERSION" ] && transset-df --id "$WINDOWID" > /dev/null
source /usr/share/bash-completion/completions/docker-machine-prompt
source /usr/share/bash-completion/completions/docker-machine-wrapper
#PS1='[\e[0;32m\u@\h \W\e[m] $(__docker_machine_ps1 " [%s]")\$ '
PS1='[\u@\h \W] $(__docker_machine_ps1 " [%s]")\$ '
# PS1='[\u@cock-and-ball-torture-(_)_)----D~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \W] $(__docker_machine_ps1 " [%s]")\$ '
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
fi
alias vim="nvim"
alias sl="sl | lolcat"
alias reload_wallpaper="xwallpaper --stretch .config/wallpaper.png"
alias clean_packages="sudo pacman -Rsn $(pacman -Qdtq)"
function zoomer {
echo $1
xdg-open "zoommtg://zoom.us/join?action=join&confno=$1&zc=2&pwd=$2"
}
# alias kepuska="zoomer 8464845351"
alias kepuska="zoomer 95949273670"
alias hum="zoomer 98445205966"
alias osdev="zoomer 99279196522"
#alias junior="zoomer 82351096705 MDhwUXBrWU5MbXBxVVlEZlF3NTB2UT09"
alias protocol="zoomer 91261928071 OWNWWXAyeEROdmN4Nng1dXQrT21ZUT09"
alias make="make -j12"
alias rm="rm -I"
alias weather="curl wttr.in"
# alias radar="wget https://www.weather.gov/images/mlb/88d/KMLB_radar_loop.gif -O/tmp/radar.gif; mpv --no-osc /tmp/radar.gif"
alias radar="wget https://www.weather.gov/images/mlb/88d/KMLB_radar_loop.gif -O- | mpv --no-osc --loop=yes -"
alias fixdirectories='find . -type d -exec chmod 755 {} \;'
alias fixfiles='find . -type f -exec chmod 644 {} \;'
alias creationdate="stat -c '%w'"
alias thonkstream="ffmpeg -i thonksphere.gif -r 200 -filter_complex loop=loop=-1:size=200 -pix_fmt yuv420p -f v4l2 -s 1920x1080 /dev/video50"
alias stealyt='youtube-dl "`xclip -o | sed s/\&.*$//`"'
# sl

59
.vimrc Normal file
View file

@ -0,0 +1,59 @@
set nocompatible
filetype off
" Vundle shit
"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()
"Plugin 'VundleVim/Vundle.vim'
"Plugin 'https://github.com/ycm-core/YouCompleteMe.git'
"call vundle#end() " required
call plug#begin('~/.vim/plugged')
Plug 'ms-jpq/coq_nvim', {'branch': 'coq'}
Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'}
Plug 'ms-jpq/coq.thirdparty', {'branch': '3p'}
call plug#end()
" Indents
filetype plugin indent on " required
set tabstop=4
set shiftwidth=4
set softtabstop=4 expandtab
" Syntax hilighting and line numbers
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
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
" 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 &

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

17
.xprofile Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
export QT_QPA_PLATFORMTHEME=qt5ct
xset r rate 200 150 &
.screenlayout/default.sh
xwallpaper --stretch .config/wallpaper.png
xcompmgr &
dunst &
sxhkd &
# TODO: Move this shit
keepassxc &
gnome-keyring-daemon &
lxqt-policykit-agent &