Minor and major changes, too many to explain

This commit is contained in:
Austen Adler 2016-05-22 01:06:48 -04:00
parent 088bf0f1cf
commit c481df0ed3
5 changed files with 46 additions and 5 deletions

View File

@ -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+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+semicolon exec quickswitch.py -d 'rofi -font "Monospace 12" -dmenu'
bindsym $mod+p exec rofi -font "Monospace 12" -show run 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" bindsym --release Num_Lock exec "xdotool key --clearmodifiers Shift+Insert;numlockx on"
workspace_layout tabbed
bindsym Print exec "shutter -r" bindsym Print exec "shutter -r"
#exec --no-startup-id xautolock -time 10 -locker '~/.i3/run.sh screensaver' #exec --no-startup-id xautolock -time 10 -locker '~/.i3/run.sh screensaver'

View File

@ -75,7 +75,7 @@ while getopts ":hbsdpcw" VALUE "$@"; do
zsh -c "source ~/.zshrc;exit" zsh -c "source ~/.zshrc;exit"
fi fi
if [ ! -d ~/.fzf ] ; then if [ ! -d ~/.fzf ] ; then
git clone https://github.com/stonewareslord/fzf.git ~/.fzf git clone https://austenwares.com/gogs/stonewareslord/fzf.git ~/.fzf
else else
\cd ~/.fzf \cd ~/.fzf
git pull origin master git pull origin master

View File

@ -217,6 +217,46 @@ paste() {
fi 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 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 c='rsync --partial -ha --info=progress2 "$@"'
alias -g cfat='rsync --partial -hrlc --info=progress2 "$@"' alias -g cfat='rsync --partial -hrlc --info=progress2 "$@"'
alias -g nify=" > /dev/null 2>&1 &" alias -g nify=" > /dev/null 2>&1 &"

View File

@ -31,7 +31,7 @@ vnoremap H ^
noremap Y :js util.copyToClipboard(content.document.title, true)<CR> noremap Y :js util.copyToClipboard(content.document.title, true)<CR>
"set animations=true "set animations=true
silent! colorscheme vimPgray silent! colorscheme vimPgray
set defsearch=disconnect set defsearch=google
style -name ublick * #nav-bar * { visibility: visible; } style -name ublick * #nav-bar * { visibility: visible; }
set titlestring=Firefox set titlestring=Firefox
set toolbars=noaddons,nobookmarks,nomenu,tabs,nonavigation set toolbars=noaddons,nobookmarks,nomenu,tabs,nonavigation

View File

@ -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 checkvirus="clamscan --recursive=yes --infected /home"
alias updateantivirus="sudo freshclam" alias updateantivirus="sudo freshclam"