From c481df0ed3644893611f03b85a94b1bd4791dca8 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 22 May 2016 01:06:48 -0400 Subject: [PATCH] Minor and major changes, too many to explain --- i3/config | 5 +++-- scripts/sync.sh | 2 +- shells/zshrc | 40 ++++++++++++++++++++++++++++++++++++++++ vimperator/vimperatorrc | 2 +- zsh/security.zsh | 2 +- 5 files changed, 46 insertions(+), 5 deletions(-) diff --git a/i3/config b/i3/config index 82360ee..ad6380f 100644 --- a/i3/config +++ b/i3/config @@ -9,10 +9,11 @@ bindsym $mod+shift+apostrophe bar mode dock bindsym $mod+shift+d exec i3-input -F 'rename workspace to "%s"' -P 'Rename to: ' bindsym $mod+semicolon exec quickswitch.py -d 'rofi -font "Monospace 12" -dmenu' bindsym $mod+p exec rofi -font "Monospace 12" -show run -bindsym $mod+shift+p exec "~/.i3/run.sh pass" +#bindsym $mod+shift+p exec "~/.i3/run.sh pass" +bindsym $mod+shift+p exec "rofi-pass" bindsym --release Num_Lock exec "xdotool key --clearmodifiers Shift+Insert;numlockx on" - +workspace_layout tabbed bindsym Print exec "shutter -r" #exec --no-startup-id xautolock -time 10 -locker '~/.i3/run.sh screensaver' diff --git a/scripts/sync.sh b/scripts/sync.sh index 2f5140e..b2f4af9 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -75,7 +75,7 @@ while getopts ":hbsdpcw" VALUE "$@"; do zsh -c "source ~/.zshrc;exit" fi if [ ! -d ~/.fzf ] ; then - git clone https://github.com/stonewareslord/fzf.git ~/.fzf + git clone https://austenwares.com/gogs/stonewareslord/fzf.git ~/.fzf else \cd ~/.fzf git pull origin master diff --git a/shells/zshrc b/shells/zshrc index aa2fca4..9f68567 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -217,6 +217,46 @@ paste() { fi sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" | curl --data-urlencode text@- $NAME -d name=$USER https://austenwares.com/paste/api/create } +grename() { + echo incomplete + return + FILES=($*) + REGEX='s///' + echo -n "Command (frneVVVq): " + while read input; do + case $input in + f) + echo "File list:" + printf '%s\n' $FILES + ;; + r) + echo "Regex:" + echo "$REGEX" + ;; + n) + echo "Simulated replacement:" + perl-rename -n "$REGEX" $FILES + ;; + e) + echo "Editing regex..." + TEMPFILE=$(tempfile) + (cat <(printf '%s\n' $FILES);echo;echo "$REGEX") > $TEMPFILE + vim $TEMPFILE +'normal G$h' + REGEX=$(tac $TEMPFILE|grep -m1 '.') + rm $TEMPFILE + ;; + VVV) + echo "Actual results:" + perl-rename -v $REGEX $FILES + return + ;; + q) + return + ;; + esac + echo -n "Command (frneVVVq): " + done +} alias -g c='rsync --partial -ha --info=progress2 "$@"' alias -g cfat='rsync --partial -hrlc --info=progress2 "$@"' alias -g nify=" > /dev/null 2>&1 &" diff --git a/vimperator/vimperatorrc b/vimperator/vimperatorrc index 83647d4..8318322 100644 --- a/vimperator/vimperatorrc +++ b/vimperator/vimperatorrc @@ -31,7 +31,7 @@ vnoremap H ^ noremap Y :js util.copyToClipboard(content.document.title, true) "set animations=true silent! colorscheme vimPgray -set defsearch=disconnect +set defsearch=google style -name ublick * #nav-bar * { visibility: visible; } set titlestring=Firefox set toolbars=noaddons,nobookmarks,nomenu,tabs,nonavigation diff --git a/zsh/security.zsh b/zsh/security.zsh index 004ac15..f92be94 100644 --- a/zsh/security.zsh +++ b/zsh/security.zsh @@ -1,3 +1,3 @@ -alias checkrootkits="sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check" +alias checkrootkits="sudo zsh -c 'rkhunter --update;rkhunter --propupd;rkhunter --check'" alias checkvirus="clamscan --recursive=yes --infected /home" alias updateantivirus="sudo freshclam"