usr

Modulate your userpace into POSIX-compliant shell scripts!
git clone git://clone.theohenson.com/usr.git
Log | Files | Refs | README

commit a4a8448efe29a9d54a17012fb88d64013cac5315
parent 770605531d7f43272b0a8ab0801987fe5037ef6b
Author: Theo Henson <[email protected]>
Date:   Sat,  3 Jul 2021 14:30:35 -0400

Update dots

Diffstat:
Mhome/.config/fish/config.fish | 2+-
Mhome/.config/python/rc.py | 31+++++++++++++++++++++++++++++++
Mhome/.config/rco/objects.csv | 2+-
Mhome/.config/sxhkd/sxhkdrc | 12+++---------
Mhome/.profile | 22++++++++++++----------
Mhome/.vim/vimrc | 4++--
Mhome/.xinitrc | 4++--
7 files changed, 52 insertions(+), 25 deletions(-)

diff --git a/home/.config/fish/config.fish b/home/.config/fish/config.fish @@ -28,7 +28,7 @@ abbr -ag ll ls -lAh abbr -ag s sudo abbr -ag a sudo apt abbr -ag p sudo pacman -abbr -ag paclean sudo pacman -R '(pacman -Qdtq)' +abbr -ag paclean sudo pacman -Rns '(pacman -Qdtq)' abbr -ag sus sudo systemctl abbr -ag sdn sudo shutdown now abbr -ag spn sudo poweroff now diff --git a/home/.config/python/rc.py b/home/.config/python/rc.py @@ -65,3 +65,34 @@ def r(number, root): # distance formula def dis(a, b): return m.sqrt( ((b[0] - a[0]) ** 2) + ((b[1] - a[1]) ** 2) ) + +# degree trig funcs +def dsin(a): + return m.sin(m.radians(a)) +def dcos(a): + return m.cos(m.radians(a)) +def dtan(a): + return m.tan(m.radians(a)) +def dasin(a): + return m.degrees(m.asin(a)) +def dacos(a): + return m.degrees(m.acos(a)) +def datan(a): + return m.degrees(m.atan(a)) + +# dot product +def dot(a, b): + product = 0 + for a, b in zip(a, b): + product += a * b + return product + +# hypotenuse +def hyp(a, b): + return m.sqrt(a**2 + b**2) + +# vector angle +def veca(a, b): + return dacos( + dot(a,b) / (hyp(a[0],a[1]) * hyp(b[0], b[1])) + ) diff --git a/home/.config/rco/objects.csv b/home/.config/rco/objects.csv @@ -4,7 +4,7 @@ ro,/home/theo/.config/rco/objects.csv,rco files nv,/home/theo/.config/nvim/init.vim,neovim init sx,/home/theo/.config/sxhkd/sxhkdrc,sxhkd config pi,/home/theo/.config/picom/picom.conf,picom config -sb,/home/theo/media/documents/subs.list,subs +sb,/home/theo/docs/subs.list,subs xi,/home/theo/.xinitrc,xinit rc g2,/home/theo/.config/gtk-2.0/gtkrc-2.0,gtk 2 ba,/home/theo/.bashrc,bash rc diff --git a/home/.config/sxhkd/sxhkdrc b/home/.config/sxhkd/sxhkdrc @@ -53,15 +53,12 @@ alt + shift + d # spotify alt + shift + s "$TERMINAL" -e spt -# thunar -alt + shift + t - thunar +# file manager +alt + shift + f + "$FILEM" # htop alt + shift + h "$TERMINAL" -e htop -# nnn -alt + shift + n - "$TERMINAL" -e nnn -de # zathura alt + shift + z "$READER" @@ -69,9 +66,6 @@ alt + shift + z # terminal super + Return "$TERMINAL" -# no tmux terminal -control + super + Return - "$TERMINAL" # dmenu super + r dmenu_run diff --git a/home/.profile b/home/.profile @@ -36,11 +36,7 @@ else export EDITOR="$(which vim)" fi -if which brave > /dev/null 2>&1 ; then - export BROWSER="$(which brave)" -else - export BROWSER="$(which firefox)" -fi +export BROWSER="$(which firefox)" if which st > /dev/null 2>&1 ; then export TERMINAL="$LOCAL_BIN/st" @@ -54,6 +50,10 @@ if which zathura > /dev/null 2>&1 ; then export READER="$(which zathura)" fi +if which pcmanfm > /dev/null 2>&1 ; then + export FILEM="$(which pcmanfm)" +fi + if which ipython3 > /dev/null 2>&1 ; then export INTPY="$(which ipython3)" else @@ -61,6 +61,7 @@ else fi # clean up ~ +export ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority" export IPFS_PATH="$XDG_DATA_HOME/ipfs" export SEST_DIR="$XDG_DATA_HOME/sest" export LESSHISTFILE="-" @@ -85,11 +86,12 @@ export CCACHE_DIR="$XDG_CACHE_HOME/ccache" export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history" export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" export GNUPGHOME="$XDG_DATA_HOME/gnupg" -export IPYTHONDIR="$XDG_CONFIG_HOME"/ipython -export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter -export TEXMFHOME=$XDG_DATA_HOME/texmf -export TEXMFVAR=$XDG_CACHE_HOME/texlive/texmf-var -export TEXMFCONFIG=$XDG_CONFIG_HOME/texlive/texmf-config +export IPYTHONDIR="$XDG_CONFIG_HOME/ipython" +export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter" +export TEXMFHOME="$XDG_DATA_HOME/texmf" +export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var" +export TEXMFCONFIG="$XDG_CONFIG_HOME/texlive/texmf-config" +export JULIA_DEPOT_PATH="$XDG_DATA_HOME/julia:$JULIA_DEPOT_PATH" # things for mitchweaver/subs export SUBS_FILE="$XDG_DOCUMENTS_DIR/subs.list" diff --git a/home/.vim/vimrc b/home/.vim/vimrc @@ -106,8 +106,8 @@ set statusline+=\ %l:%c " }}} " Create MakeTags command for ctags {{{ -command! MakeTags !ctags -R . -noremap <C-r> :MakeTags<cr> +"command! MakeTags !ctags -R . +"noremap <C-m> :MakeTags<cr> " }}} " Set colors {{{ diff --git a/home/.xinitrc b/home/.xinitrc @@ -8,8 +8,8 @@ runif() { # configure x if [ "$(hostname)" = "art" ] ; then - xrandr --output DP-3 --primary --mode 1920x1080 --pos 0x840 --rotate normal \ - --output HDMI-1 --mode 1920x1080 --pos 1920x0 --rotate left --gamma 0.86 + xrandr --output HDMI-1 --primary --mode 1920x1080 --pos 0x840 --rotate normal \ + --output DP-3 --mode 1920x1080 --pos 1920x0 --rotate left --gamma 0.75 fi xrdb -load "$XDG_CONFIG_HOME/X11/Xresources" setxkbmap -option caps:swapescape