Better screenshot helper

This commit is contained in:
Daniel Flanagan 2018-08-31 09:27:45 -05:00
parent fd8088ee25
commit b92da9287a
1 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,7 @@ alias lm='ll | more'
alias lr='ll -R' # please don't - why is this even here...? alias lr='ll -R' # please don't - why is this even here...?
alias la='ll -A' # show all alias la='ll -A' # show all
alias tree='tree -Csuh' alias tree='tree -Csuh'
alias f='fzf'
# navigation aliases # navigation aliases
function c() { function c() {
@ -62,12 +63,12 @@ alias tcom="tmux attach -t comms || tmux new -s comms"
# git aliases # git aliases
# TODO: make these git aliases in the gitconfig? # TODO: make these git aliases in the gitconfig?
alias gs="git status" alias gs="git status"
alias gl="git log"
alias gpl="git pull" alias gpl="git pull"
alias gp="git push --all" alias gp="git push --all"
alias grbpf="git push --force-with-lease" alias grbpf="git push --force-with-lease"
alias gac="git add -A && git commit" alias gac="git add -A && git commit"
alias gsur="git submodule update --remote" alias gsur="git submodule update --remote"
alias glf="git ls-files"
alias gl="git log --graph --pretty=oneline --abbrev-commit --decorate" alias gl="git log --graph --pretty=oneline --abbrev-commit --decorate"
grb() { grb() {
@ -103,6 +104,13 @@ alias resrc="source \$HOME/.bashrc"
alias redshift="redshift -l 39.0997:-94.5786" alias redshift="redshift -l 39.0997:-94.5786"
alias gpmdpe="electron --app=/usr/share/gpmdp/resources/app.asar" alias gpmdpe="electron --app=/usr/share/gpmdp/resources/app.asar"
screenshot() {
SCROT_DIR="$NICE_HOME/img/scrots/"
mkdir -p "$SCROT_DIR"
scrot "$@" "$NICE_HOME/img/scrots/%Y-%m-%d_%H-%M-%S_\$wx\$h.png"
}
export -f screenshot
export NOTES_DIR="$NICE_HOME" export NOTES_DIR="$NICE_HOME"
n() { n() {