From 47181863eff38278775e1fb3748e0a7814b7deff Mon Sep 17 00:00:00 2001 From: 53hornet Date: Fri, 15 Oct 2021 17:29:48 -0400 Subject: solarized --- .aliases | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to '.aliases') diff --git a/.aliases b/.aliases index a68442a..84427d9 100644 --- a/.aliases +++ b/.aliases @@ -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 } -- cgit v1.2.3