dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c6e69e96421ebf192eb6de537324e269e7bfda78
parent bf8c6b1e20f42a7725d8d919830fdb274596b20f
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 19 May 2019 20:05:14 -0400

massive cleanup

Diffstat:
D.config/bmfiles | 17-----------------
R.config/bmdirs -> .config/directories | 0
A.config/files | 18++++++++++++++++++
R.inputrc -> .config/inputrc | 0
R.local/bin/i3cmds/camtoggle -> .local/bin/camtoggle | 0
R.local/bin/tools/compiler -> .local/bin/compiler | 0
R.local/bin/i3cmds/displayselect -> .local/bin/displayselect | 0
R.local/bin/tools/dmenuhandler -> .local/bin/dmenuhandler | 0
R.local/bin/i3cmds/dmenumount -> .local/bin/dmenumount | 0
R.local/bin/tools/dmenupass -> .local/bin/dmenupass | 0
R.local/bin/i3cmds/dmenurecord -> .local/bin/dmenurecord | 0
R.local/bin/i3cmds/dmenuumount -> .local/bin/dmenuumount | 0
R.local/bin/i3cmds/dmenuunicode -> .local/bin/dmenuunicode | 0
A.local/bin/ext | 2++
R.local/bin/tools/extract -> .local/bin/extract | 0
R.local/bin/tools/getbib -> .local/bin/getbib | 0
R.local/bin/tools/getkeys -> .local/bin/getkeys | 0
D.local/bin/i3cmds/hover | 14--------------
R.local/bin/tools/ifinstalled -> .local/bin/ifinstalled | 0
R.local/bin/tools/linkhandler -> .local/bin/linkhandler | 0
R.local/bin/tools/lmc -> .local/bin/lmc | 0
R.local/bin/i3cmds/maimpick -> .local/bin/maimpick | 0
R.local/bin/tools/opout -> .local/bin/opout | 0
R.local/bin/tools/pauseallmpv -> .local/bin/pauseallmpv | 0
R.local/bin/tools/podentr -> .local/bin/podentr | 0
R.local/bin/i3cmds/prompt -> .local/bin/prompt | 0
R.local/bin/tools/qndl -> .local/bin/qndl | 0
R.local/bin/tools/queueandnotify -> .local/bin/queueandnotify | 0
R.local/bin/tools/remaps -> .local/bin/remaps | 0
R.local/bin/tools/rotdir -> .local/bin/rotdir | 0
R.local/bin/tools/rssadd -> .local/bin/rssadd | 0
R.local/bin/i3cmds/samedir -> .local/bin/samedir | 0
R.local/bin/tools/setbg -> .local/bin/setbg | 0
A.local/bin/shortcuts | 26++++++++++++++++++++++++++
R.local/bin/i3cmds/showclip -> .local/bin/showclip | 0
R.local/bin/i3cmds/td-toggle -> .local/bin/td-toggle | 0
R.local/bin/tools/texclear -> .local/bin/texclear | 0
R.local/bin/i3cmds/toggletouchpad -> .local/bin/toggletouchpad | 0
D.local/bin/tools/ext | 2--
D.local/bin/tools/shortcuts | 26--------------------------
R.local/bin/i3cmds/torwrap -> .local/bin/torwrap | 0
R.local/bin/tools/transadd -> .local/bin/transadd | 0
R.local/bin/i3cmds/tutorialvids -> .local/bin/tutorialvids | 0
M.profile | 8++++----
44 files changed, 50 insertions(+), 63 deletions(-)

diff --git a/.config/bmfiles b/.config/bmfiles @@ -1,17 +0,0 @@ -bf ~/.config/bmfiles -bd ~/.config/bmdirs -cfb ~/.bashrc -cfa ~/.config/aliasrc -cfz ~/.zshrc -cfv ~/.config/nvim/init.vim -cfi ~/.config/i3/config -cfm ~/.config/mutt/muttrc -eb ~/Documents/LaTeX/uni.bib -cv ~/Documents/LaTeX/cv.tex -cfd ~/.Xdefaults -cfu ~/.config/newsboat/urls -cfn ~/.config/newsboat/config -cfmb ~/.config/ncmpcpp/bindings -cfmc ~/.config/ncmpcpp/config -er ~/Documents/referbib -cfB ~/.config/i3blocks/config diff --git a/.config/bmdirs b/.config/directories diff --git a/.config/files b/.config/files @@ -0,0 +1,18 @@ +bf ~/.config/files +bd ~/.config/directories +bw ~/.config/bookmarks +cfb ~/.bashrc +cfa ~/.config/aliasrc +cfz ~/.zshrc +cfv ~/.config/nvim/init.vim +cfi ~/.config/i3/config +cfm ~/.config/mutt/muttrc +eb ~/Documents/LaTeX/uni.bib +cv ~/Documents/LaTeX/cv.tex +cfd ~/.Xdefaults +cfu ~/.config/newsboat/urls +cfn ~/.config/newsboat/config +cfmb ~/.config/ncmpcpp/bindings +cfmc ~/.config/ncmpcpp/config +er ~/Documents/referbib +cfB ~/.config/i3blocks/config diff --git a/.inputrc b/.config/inputrc diff --git a/.local/bin/i3cmds/camtoggle b/.local/bin/camtoggle diff --git a/.local/bin/tools/compiler b/.local/bin/compiler diff --git a/.local/bin/i3cmds/displayselect b/.local/bin/displayselect diff --git a/.local/bin/tools/dmenuhandler b/.local/bin/dmenuhandler diff --git a/.local/bin/i3cmds/dmenumount b/.local/bin/dmenumount diff --git a/.local/bin/tools/dmenupass b/.local/bin/dmenupass diff --git a/.local/bin/i3cmds/dmenurecord b/.local/bin/dmenurecord diff --git a/.local/bin/i3cmds/dmenuumount b/.local/bin/dmenuumount diff --git a/.local/bin/i3cmds/dmenuunicode b/.local/bin/dmenuunicode diff --git a/.local/bin/ext b/.local/bin/ext @@ -0,0 +1 @@ +extract+ \ No newline at end of file diff --git a/.local/bin/tools/extract b/.local/bin/extract diff --git a/.local/bin/tools/getbib b/.local/bin/getbib diff --git a/.local/bin/tools/getkeys b/.local/bin/getkeys diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover @@ -1,14 +0,0 @@ -#!/bin/sh -[ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right -current=$(xdotool getwindowfocus) -newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3)) -newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3)) -xdotool windowsize "$current" $newheight $newwidth -newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}') -newwidth=$(xdotool getwindowgeometry "$current" | grep Geometry | grep -o " [0-9]*") - -case "$1" in - left) horizontal=0; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;; - right) horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth)) ; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;; -esac -xdotool windowmove "$current" $horizontal $vertical diff --git a/.local/bin/tools/ifinstalled b/.local/bin/ifinstalled diff --git a/.local/bin/tools/linkhandler b/.local/bin/linkhandler diff --git a/.local/bin/tools/lmc b/.local/bin/lmc diff --git a/.local/bin/i3cmds/maimpick b/.local/bin/maimpick diff --git a/.local/bin/tools/opout b/.local/bin/opout diff --git a/.local/bin/tools/pauseallmpv b/.local/bin/pauseallmpv diff --git a/.local/bin/tools/podentr b/.local/bin/podentr diff --git a/.local/bin/i3cmds/prompt b/.local/bin/prompt diff --git a/.local/bin/tools/qndl b/.local/bin/qndl diff --git a/.local/bin/tools/queueandnotify b/.local/bin/queueandnotify diff --git a/.local/bin/tools/remaps b/.local/bin/remaps diff --git a/.local/bin/tools/rotdir b/.local/bin/rotdir diff --git a/.local/bin/tools/rssadd b/.local/bin/rssadd diff --git a/.local/bin/i3cmds/samedir b/.local/bin/samedir diff --git a/.local/bin/tools/setbg b/.local/bin/setbg diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts @@ -0,0 +1,26 @@ +#!/bin/bash +# Output locations. Unactivated progs should go to /dev/null. +shell_shortcuts="$HOME/.config/shortcutrc" +ranger_shortcuts="/dev/null" +qute_shortcuts="/dev/null" +fish_shortcuts="/dev/null" +vifm_shortcuts="$HOME/.config/vifm/vifmshortcuts" + +# Remove, prepare files +rm -f "$ranger_shortcuts" "$qute_shortcuts" 2>/dev/null +printf "# vim: filetype=sh\\n" > "$fish_shortcuts" +printf "# vim: filetype=sh\\nalias " > "$shell_shortcuts" +printf "\" vim: filetype=vim\\n" > "$vifm_shortcuts" + +# Format the `directories` file in the correct syntax and sent it to all three configs. +sed "s/\s*#.*$//;/^\s*$/d" "$HOME/.config/directories" | tee >(awk '{print $1"=\"cd "$2" && ls -a\" \\"}' >> "$shell_shortcuts") \ + >(awk '{print "abbr", $1, "\"cd " $2 "; and ls -a\""}' >> "$fish_shortcuts") \ + >(awk '{print "map g" $1, ":cd", $2 "<CR>\nmap t" $1, "<tab>:cd", $2 "<CR><tab>\nmap M" $1, "<tab>:cd", $2 "<CR><tab>:mo<CR>\nmap Y" $1, "<tab>:cd", $2 "<CR><tab>:co<CR>" }' >> "$vifm_shortcuts") \ + >(awk '{print "config.bind(\";"$1"\", \"set downloads.location.directory "$2" ;; hint links download\")"}' >> "$qute_shortcuts") \ + | awk '{print "map g"$1" cd "$2"\nmap t"$1" tab_new "$2"\nmap m"$1" shell mv -v %s "$2"\nmap Y"$1" shell cp -rv %s "$2}' >> "$ranger_shortcuts" + +# Format the `files` file in the correct syntax and sent it to both configs. +sed "s/\s*#.*$//;/^\s*$/d" "$HOME/.config/files" | tee >(awk '{print $1"=\"$EDITOR "$2"\" \\"}' >> "$shell_shortcuts") \ + >(awk '{print "abbr", $1, "\"$EDITOR "$2"\""}' >> "$fish_shortcuts") \ + >(awk '{print "map", $1, ":e", $2 "<CR>" }' >> "$vifm_shortcuts") \ + | awk '{print "map "$1" shell $EDITOR "$2}' >> "$ranger_shortcuts" diff --git a/.local/bin/i3cmds/showclip b/.local/bin/showclip diff --git a/.local/bin/i3cmds/td-toggle b/.local/bin/td-toggle diff --git a/.local/bin/tools/texclear b/.local/bin/texclear diff --git a/.local/bin/i3cmds/toggletouchpad b/.local/bin/toggletouchpad diff --git a/.local/bin/tools/ext b/.local/bin/tools/ext @@ -1 +0,0 @@ -extract- \ No newline at end of file diff --git a/.local/bin/tools/shortcuts b/.local/bin/tools/shortcuts @@ -1,26 +0,0 @@ -#!/bin/bash -# Output locations. Unactivated progs should go to /dev/null. -shell_shortcuts="$HOME/.config/shortcutrc" -ranger_shortcuts="/dev/null" -qute_shortcuts="/dev/null" -fish_shortcuts="/dev/null" -vifm_shortcuts="$HOME/.config/vifm/vifmshortcuts" - -# Remove, prepare files -rm -f "$ranger_shortcuts" "$qute_shortcuts" 2>/dev/null -printf "# vim: filetype=sh\\n" > "$fish_shortcuts" -printf "# vim: filetype=sh\\nalias " > "$shell_shortcuts" -printf "\" vim: filetype=vim\\n" > "$vifm_shortcuts" - -# Format the `bmdirs` file in the correct syntax and sent it to all three configs. -sed "s/\s*#.*$//;/^\s*$/d" "$HOME/.config/bmdirs" | tee >(awk '{print $1"=\"cd "$2" && ls -a\" \\"}' >> "$shell_shortcuts") \ - >(awk '{print "abbr", $1, "\"cd " $2 "; and ls -a\""}' >> "$fish_shortcuts") \ - >(awk '{print "map g" $1, ":cd", $2 "<CR>\nmap t" $1, "<tab>:cd", $2 "<CR><tab>\nmap M" $1, "<tab>:cd", $2 "<CR><tab>:mo<CR>\nmap Y" $1, "<tab>:cd", $2 "<CR><tab>:co<CR>" }' >> "$vifm_shortcuts") \ - >(awk '{print "config.bind(\";"$1"\", \"set downloads.location.directory "$2" ;; hint links download\")"}' >> "$qute_shortcuts") \ - | awk '{print "map g"$1" cd "$2"\nmap t"$1" tab_new "$2"\nmap m"$1" shell mv -v %s "$2"\nmap Y"$1" shell cp -rv %s "$2}' >> "$ranger_shortcuts" - -# Format the `configs` file in the correct syntax and sent it to both configs. -sed "s/\s*#.*$//;/^\s*$/d" "$HOME/.config/bmfiles" | tee >(awk '{print $1"=\"$EDITOR "$2"\" \\"}' >> "$shell_shortcuts") \ - >(awk '{print "abbr", $1, "\"$EDITOR "$2"\""}' >> "$fish_shortcuts") \ - >(awk '{print "map", $1, ":e", $2 "<CR>" }' >> "$vifm_shortcuts") \ - | awk '{print "map "$1" shell $EDITOR "$2}' >> "$ranger_shortcuts" diff --git a/.local/bin/i3cmds/torwrap b/.local/bin/torwrap diff --git a/.local/bin/tools/transadd b/.local/bin/transadd diff --git a/.local/bin/i3cmds/tutorialvids b/.local/bin/tutorialvids diff --git a/.profile b/.profile @@ -2,17 +2,17 @@ # Profile file. Runs on login. # Adds `~/.scripts` and all subdirectories to $PATH -export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" +export PATH="$PATH:$HOME/.local/bin/" export EDITOR="nvim" export TERMINAL="st" export BROWSER="tabbed -r 2 surf -e lmao" export READER="zathura" export FILE="vifm" -export BIB="$HOME/Documents/LaTeX/uni.bib" -export REFER="$HOME/Documents/referbib" -export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass" +export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" +export LESSHISTFILE="-" +export INPUTRC="$HOME/.config/inputrc" # less/man colors export LESS=-R