Better screenshot helper
This commit is contained in:
parent
fd8088ee25
commit
b92da9287a
1 changed files with 9 additions and 1 deletions
|
@ -21,6 +21,7 @@ alias lm='ll | more'
|
|||
alias lr='ll -R' # please don't - why is this even here...?
|
||||
alias la='ll -A' # show all
|
||||
alias tree='tree -Csuh'
|
||||
alias f='fzf'
|
||||
|
||||
# navigation aliases
|
||||
function c() {
|
||||
|
@ -62,12 +63,12 @@ alias tcom="tmux attach -t comms || tmux new -s comms"
|
|||
# git aliases
|
||||
# TODO: make these git aliases in the gitconfig?
|
||||
alias gs="git status"
|
||||
alias gl="git log"
|
||||
alias gpl="git pull"
|
||||
alias gp="git push --all"
|
||||
alias grbpf="git push --force-with-lease"
|
||||
alias gac="git add -A && git commit"
|
||||
alias gsur="git submodule update --remote"
|
||||
alias glf="git ls-files"
|
||||
alias gl="git log --graph --pretty=oneline --abbrev-commit --decorate"
|
||||
|
||||
grb() {
|
||||
|
@ -103,6 +104,13 @@ alias resrc="source \$HOME/.bashrc"
|
|||
alias redshift="redshift -l 39.0997:-94.5786"
|
||||
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"
|
||||
|
||||
n() {
|
||||
|
|
Reference in a new issue