dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 6d1b6deb7c1ebe5e673f738ef73bbeaa2631e61c
parent bee652342e6e217f5d90f739b128f6dc0d52d774
Author: Chris Noxz <chris@noxz.tech>
Date:   Thu, 26 Mar 2020 20:11:37 +0100

[bin] fix some more XDG stuff...again

Diffstat:
Mbin/.local/bin/alias/vim | 1-
Mbin/.local/bin/dmenu_passmenu | 2+-
Mbin/.local/bin/fetch-icals | 2+-
Mbin/.local/bin/fzf-history.tmux | 2+-
Mbin/.local/bin/mkthemes | 2+-
Mbin/.local/bin/set-wallpaper | 6+++---
Mksh/.config/ksh/kshrc.d/10-enviornment.sh | 124+------------------------------------------------------------------------------
Mksh/.profile | 122++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
8 files changed, 129 insertions(+), 132 deletions(-)

diff --git a/bin/.local/bin/alias/vim b/bin/.local/bin/alias/vim @@ -1,4 +1,3 @@ #!/bin/sh -#/bin/vim -S "$HOME/.config/vim/vimrc" "$@" /bin/vim "$@" diff --git a/bin/.local/bin/dmenu_passmenu b/bin/.local/bin/dmenu_passmenu @@ -6,7 +6,7 @@ if [ "$1" = "--type" ]; then fi args=" -l 20 -p pass: $@" -prefix="$HOME/.password-store" +prefix="$XDG_DATA_HOME/pass" password_files="$( find "$prefix" -name "*.gpg" \ | sed -e "s,$prefix/,,g" -e "s,.gpg,,g" diff --git a/bin/.local/bin/fetch-icals b/bin/.local/bin/fetch-icals @@ -1,6 +1,6 @@ #!/bin/sh -_cal=$HOME/.data/calcurse/online +_cal="$XDG_DATA_HOME"/calcurse/cals/online _tmp=$(mktemp /tmp/.cal.XXXXXX) _i=0 _e=0 diff --git a/bin/.local/bin/fzf-history.tmux b/bin/.local/bin/fzf-history.tmux @@ -10,7 +10,7 @@ _TTY=$(tmux display -p "#{pane_tty}" | sed "s=/dev/==") # make sure HISTFILE is set if [ ! -n "$HISTFILE" ] then - HISTFILE="$HOME/.cache/ksh/history" + HISTFILE="$HOME_CACHE_HOME/ksh/history" fi # get command from history file diff --git a/bin/.local/bin/mkthemes b/bin/.local/bin/mkthemes @@ -1,6 +1,6 @@ #!/bin/sh -for vt in $HOME/.config/themes/*.vt +for vt in "$XDG_CONFIG_HOME"/themes/*.vt do _r=""; _g=""; _b="" _n=${vt##*/} diff --git a/bin/.local/bin/set-wallpaper b/bin/.local/bin/set-wallpaper @@ -6,16 +6,16 @@ STDIN="$(cat -)" case "$STDIN" in *.ff.gz) - cp "$STDIN" "$HOME/.wallpaper.ff.gz" + cp "$STDIN" "$XDG_CONFIG_HOME/wallpaper.ff.gz" ;; *.png | *.jpg | *.jpeg | *.gif | *.bmp) tmp="$(mktemp)" convert "$STDIN" png:- | png2ff | gzip -c > "$tmp" && \ - mv "$tmp" "$HOME/.wallpaper.ff.gz" + mv "$tmp" "$XDG_CONFIG_HOME/wallpaper.ff.gz" ;; *) exit 1 ;; esac -swall "$HOME/.wallpaper.ff.gz" +swall "$XDG_CONFIG_HOME/wallpaper.ff.gz" diff --git a/ksh/.config/ksh/kshrc.d/10-enviornment.sh b/ksh/.config/ksh/kshrc.d/10-enviornment.sh @@ -1,124 +1,2 @@ #!/bin/ksh - -export VISUAL="vim" -export EDITOR="$VISUAL" -export BROWSER="/usr/local/bin/surf" -export IMG_VIEWER="/usr/local/bin/sxiv" -export PDF_VIEWER="/bin/zathura" -export HISTFILE="$HOME/.cache/ksh/history" -export REFER="$HOME/documents/data/refer.bib" -export GROFF_FONT_PATH="$HOME/.fonts/groff" -export RTV_BROWSER="$BROWSER -y surf_rtv" -export FZF_DEFAULT_OPTS="--bind='K:up,J:down,H:preview-up,L:preview-down'" -export GREP_COLORS="\ -ms=01;31:\ -mc=01;31:\ -sl=:\ -cx=:\ -fn=01;37:\ -ln=32:\ -bn=32:\ -se=36" -export LS_COLORS="\ -no=00:\ -fi=00:\ -di=01;34:\ -ln=01;36:\ -pi=40;33:\ -so=01;36:\ -do=01;36:\ -bd=40;33;01:\ -cd=40;33;01:\ -or=40;31;01:\ -mi=01;05;37;41:\ -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:\ -*.svgz=01;31:\ -*.arj=01;31:\ -*.taz=01;31:\ -*.lzh=01;31:\ -*.lzma=01;31:\ -*.zip=01;31:\ -*.z=01;31:\ -*.Z=01;31:\ -*.dz=01;31:\ -*.gz=01;31:\ -*.bz2=01;31:\ -*.tbz2=01;31:\ -*.bz=01;31:\ -*.tz=01;31:\ -*.deb=01;31:\ -*.rpm=01;31:\ -*.jar=01;31:\ -*.rar=01;31:\ -*.ace=01;31:\ -*.zoo=01;31:\ -*.cpio=01;31:\ -*.7z=01;31:\ -*.rz=01;31:\ -\ -*.jpg=01;36:\ -*.jpeg=01;36:\ -*.gif=01;36:\ -*.bmp=01;36:\ -*.pbm=01;36:\ -*.pgm=01;36:\ -*.ppm=01;36:\ -*.tga=01;36:\ -*.xbm=01;36:\ -*.xpm=01;36:\ -*.tif=01;36:\ -*.tiff=01;36:\ -*.ff.bz=01;36:\ -*.ff.gz=01;36:\ -*.ff.xz=01;36:\ -*.png=01;36:\ -*.mng=01;36:\ -*.pcx=01;36:\ -*.mov=01;36:\ -*.mpg=01;36:\ -*.mpeg=01;36:\ -*.m2v=01;36:\ -*.mkv=01;36:\ -*.ogm=01;36:\ -*.mp4=01;36:\ -*.m4v=01;36:\ -*.mp4v=01;36:\ -*.vob=01;36:\ -*.qt=01;36:\ -*.nuv=01;36:\ -*.wmv=01;36:\ -*.asf=01;36:\ -*.rm=01;36:\ -*.rmvb=01;36:\ -*.flc=01;36:\ -*.avi=01;36:\ -*.fli=01;36:\ -*.gl=01;36:\ -*.dl=01;36:\ -*.xcf=01;36:\ -*.xwd=01;36:\ -*.yuv=01;36:\ -*.svg=01;36:\ -*.pdf=01;36:\ -\ -*.aac=00;36:\ -*.au=00;36:\ -*.flac=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:\ -" +export HISTFILE="$XDG_CACHE_HOME/ksh/history" diff --git a/ksh/.profile b/ksh/.profile @@ -39,8 +39,128 @@ export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" # setup miscellaneous environment variables -export TERMINAL="/usr/local/bin/st" export WM="dwm" +export TERMINAL="/usr/local/bin/st" +export VISUAL="vim" +export EDITOR="$VISUAL" +export BROWSER="/usr/local/bin/surf" +export IMG_VIEWER="/usr/local/bin/sxiv" +export PDF_VIEWER="/bin/zathura" +export FZF_DEFAULT_OPTS="--bind='K:up,J:down,H:preview-up,L:preview-down'" +export REFER="$HOME/documents/data/refer.bib" +export GROFF_FONT_PATH="$XDG_DATA_HOME/fonts/groff" +export GREP_COLORS="\ +ms=01;31:\ +mc=01;31:\ +sl=:\ +cx=:\ +fn=01;37:\ +ln=32:\ +bn=32:\ +se=36" +export LS_COLORS="\ +no=00:\ +fi=00:\ +di=01;34:\ +ln=01;36:\ +pi=40;33:\ +so=01;36:\ +do=01;36:\ +bd=40;33;01:\ +cd=40;33;01:\ +or=40;31;01:\ +mi=01;05;37;41:\ +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:\ +*.svgz=01;31:\ +*.arj=01;31:\ +*.taz=01;31:\ +*.lzh=01;31:\ +*.lzma=01;31:\ +*.zip=01;31:\ +*.z=01;31:\ +*.Z=01;31:\ +*.dz=01;31:\ +*.gz=01;31:\ +*.bz2=01;31:\ +*.tbz2=01;31:\ +*.bz=01;31:\ +*.tz=01;31:\ +*.deb=01;31:\ +*.rpm=01;31:\ +*.jar=01;31:\ +*.rar=01;31:\ +*.ace=01;31:\ +*.zoo=01;31:\ +*.cpio=01;31:\ +*.7z=01;31:\ +*.rz=01;31:\ +\ +*.jpg=01;36:\ +*.jpeg=01;36:\ +*.gif=01;36:\ +*.bmp=01;36:\ +*.pbm=01;36:\ +*.pgm=01;36:\ +*.ppm=01;36:\ +*.tga=01;36:\ +*.xbm=01;36:\ +*.xpm=01;36:\ +*.tif=01;36:\ +*.tiff=01;36:\ +*.ff.bz=01;36:\ +*.ff.gz=01;36:\ +*.ff.xz=01;36:\ +*.png=01;36:\ +*.mng=01;36:\ +*.pcx=01;36:\ +*.mov=01;36:\ +*.mpg=01;36:\ +*.mpeg=01;36:\ +*.m2v=01;36:\ +*.mkv=01;36:\ +*.ogm=01;36:\ +*.mp4=01;36:\ +*.m4v=01;36:\ +*.mp4v=01;36:\ +*.vob=01;36:\ +*.qt=01;36:\ +*.nuv=01;36:\ +*.wmv=01;36:\ +*.asf=01;36:\ +*.rm=01;36:\ +*.rmvb=01;36:\ +*.flc=01;36:\ +*.avi=01;36:\ +*.fli=01;36:\ +*.gl=01;36:\ +*.dl=01;36:\ +*.xcf=01;36:\ +*.xwd=01;36:\ +*.yuv=01;36:\ +*.svg=01;36:\ +*.pdf=01;36:\ +\ +*.aac=00;36:\ +*.au=00;36:\ +*.flac=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:\ +" # To avoid potential situation where cdm(1) crashes on every TTY, here we # default to execute cdm(1) on tty1 only, and leave other TTYs untouched.