summaryrefslogtreecommitdiff
path: root/.aliases
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-10-15 17:29:48 -0400
committer53hornet <atc@53hor.net>2021-10-15 17:29:48 -0400
commit47181863eff38278775e1fb3748e0a7814b7deff (patch)
tree6d14fbc6389adfcd34ecd4b335ef5e5cee45954b /.aliases
parentdc1fbe8f36b71d3742ec18fcd6aa7adb969bf499 (diff)
downloaddotfiles-47181863eff38278775e1fb3748e0a7814b7deff.tar.xz
dotfiles-47181863eff38278775e1fb3748e0a7814b7deff.zip
solarized
Diffstat (limited to '.aliases')
-rw-r--r--.aliases28
1 files changed, 3 insertions, 25 deletions
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
}