dotfiles

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

commit 21815f0a166acac8c08b5dd85ce287423b5a659c
parent a974ae09887e8760e50b10c02c28c2e59e1ab012
Author: Luke <luke@lukesmith.xyz>
Date:   Tue, 20 Feb 2018 21:25:07 -0700

shortcut-sync now separate from voidrice

Diffstat:
M.config/i3/i3_guide.rmd | 2+-
D.scripts/configs | 17-----------------
D.scripts/folders | 10----------
D.scripts/shortcuts.sh | 62--------------------------------------------------------------
4 files changed, 1 insertion(+), 90 deletions(-)

diff --git a/.config/i3/i3_guide.rmd b/.config/i3/i3_guide.rmd @@ -133,7 +133,7 @@ I use scrot and ffmpeg to make different recordings of the desktop and audio. Al + Mod+Delete -- kills ffmpeg and screenkey, thus ending recordings and screen + ThinkVantage button (on Thinkpads) -- kills ffmpeg and screenkey, thus ending recordings -Each of the recording scripts are located in `~/.config/Scripts/`. You can check them out or modify them if needed. +Each of the recording scripts are located in `~/.scripts`. You can check them out or modify them if needed. ## Other buttons diff --git a/.scripts/configs b/.scripts/configs @@ -1,17 +0,0 @@ -cfb ~/.bashrc -cfz ~/.zshrc -cfv ~/.vimrc -cfr ~/.config/ranger/rc.conf -cfi ~/.config/i3/config -cfq ~/.config/qutebrowser/config.py -cfm ~/.config/mutt/muttrc -cfM ~/.config/moc/keymap -cff ~/.scripts/folders -cfc ~/.scripts/configs -cft ~/.config/termite/config -cfT ~/.tmux.conf -eb ~/Documents/LaTeX/uni.bib -cv ~/Documents/LaTeX/cv.tex -cfa ~/.config/mutt/etc/aliases -cfp ~/.config/polybar/config -cfd ~/.Xdefaults diff --git a/.scripts/folders b/.scripts/folders @@ -1,10 +0,0 @@ -h ~/ -d ~/Documents -D ~/Downloads -pp ~/Pictures -vv ~/Videos -m ~/Music -b ~/Books -s ~/.scripts -r / -cf ~/.config diff --git a/.scripts/shortcuts.sh b/.scripts/shortcuts.sh @@ -1,62 +0,0 @@ -#!/bin/bash - -# Config locations -folders="$HOME/.scripts/folders" -configs="$HOME/.scripts/configs" - -# Output locations -bash_shortcuts="$HOME/.bash_shortcuts" -ranger_shortcuts="$HOME/.config/ranger/shortcuts.conf" -qute_shortcuts="$HOME/.config/qutebrowser/shortcuts.py" - -# Ensuring that output locations are properly sourced -cat ~/.bashrc | grep "source ~/.bash_shortcuts" >/dev/null && - echo Bashrc already ready. || - (echo "source ~/.bash_shortcuts" >> ~/.bashrc && - echo Bashrc now prepared for shortcuts.) - -cat ~/.config/ranger/rc.conf | grep "source ~/.config/ranger/shortcuts.conf" >/dev/null && - echo Rc.conf already ready. || - (echo "source ~/.config/ranger/shortcuts.conf" >> ~/.config/ranger/rc.conf && - echo rc.conf now prepared for shortcuts.) - -cat ~/.config/qutebrowser/config.py | grep shortcuts.py >/dev/null && - echo "Qutebrowser's config.py already ready." || - (echo "config.source('shortcuts.py')" >> ~/.config/qutebrowser/config.py && - echo "qutebrowser's config.py now prepared for shortcuts.") - -#Delete old shortcuts -echo "# vim: filetype=sh" > $bash_shortcuts -echo "# ranger shortcuts" > $ranger_shortcuts -echo "# qutebrowser shortcuts" > $qute_shortcuts - -writeDirs() { echo "alias $1='cd $2 && ls -a'" >> $bash_shortcuts - echo "map g$1 cd $2" >> $ranger_shortcuts - echo "map t$1 tab_new $2" >> $ranger_shortcuts - echo "map m$1 shell mv %s $2" >> $ranger_shortcuts - echo "map Y$1 shell cp -r %s $2" >> $ranger_shortcuts - echo "config.bind(';$1', 'set downloads.location.directory $2 ;; hint links download')" >> $qute_shortcuts ;} - -writeConfs() { - echo "alias $1='vim $2'" >> $bash_shortcuts - echo "map $1 shell vim $2" >> $ranger_shortcuts ;} - -IFS=$'\n' -set -f -for line in $(cat "$folders"); do - line=$(echo $line | sed 's/#.*//') - key=$(echo $line | awk '{print $1}') - dir=$(echo $line | awk '{print $2}') - [ "$dir" == "" ] || writeDirs $key $dir -done && echo "Directory shortcuts done." - -set -f -for line in $(cat "$configs"); -do - line=$(echo $line | sed 's/#.*//') - short=$(echo $line | awk '{print $1}') - conf=$(echo $line | awk '{print $2}') - [ "$conf" == "" ] || writeConfs $short $conf -done && echo "Config file shortcuts done." - -echo "All done!"