diff options
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 28 |
1 files changed, 3 insertions, 25 deletions
@@ -1,5 +1,6 @@ # Aliases +alias monero-wallet-cli='monero-wallet-cli --config-file=/home/atc/.config/bitmonero/monero-wallet-cli.conf ' alias cp="cp -i" alias dd="dd status=progress" alias define="dict -d gcide" @@ -53,7 +54,7 @@ function o() { i3-swallow && mupdf "$@" && i3-unswallow ;; *.jpg|*.png|*.bmp|*.gif|*.jpeg|*.JPG|*.JPEG|*.webp|*.tiff) - i3-swallow && sxiv -a "$(dirname $1)" "$@" && i3-unswallow + i3-swallow && sxiv -a "$@" "$(dirname $1)" && i3-unswallow ;; *.xcf) gimp "$@" 2>/dev/null & @@ -82,29 +83,6 @@ function o() { esac } -theme_add() { - indir="${1:-~/downloads}" - [ -d "$indir" ] || exit - - outdir=~/.local/share/wallpapers - [ -d "$outdir" ] || mkdir -p "$outdir" - - sxiv -rot "$indir" | while read infile; do - outfile="$outdir/$(echo ${infile##*/} | tr -s [:blank:] - | tr [:upper:] [:lower:])" - convert "$infile" -geometry '2560x1440^' -gravity center -crop 2560x1440+0+0 "$outfile" - wpg -a "$outfile" - done -} - -theme_set() { - theme="$(sxiv -rot ~/.config/wpg/wallpapers | head -1)" - [ -f "$theme" ] && wpg -s "$theme" -} - -theme_reset() { - wpg -s "$(wpg -c)" -} - bak() { mv -n "$1" "$1".bak } @@ -115,5 +93,5 @@ rename() { dst="$(mktemp -t rename)" printf '%s\n' "$@" | tee "$src" > "$dst" $EDITOR "$dst" - diff -s "$src" "$dst" > /dev/null || paste "$src" "$dst" | sed -e "s/\t/' '/" -e "s/^/mv -i '/" -e "s/$/'/" | sh + diff -s "$src" "$dst" > /dev/null || paste "$src" "$dst" | sed -e "s/\t/' '/" -e "s/^/mv -i '/" -e "s/$/'/" | sh } |