summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/downloads2
-rwxr-xr-xbin/bin/password2
-rwxr-xr-xbin/bin/references2
-rwxr-xr-xbin/bin/run2
-rwxr-xr-xbin/bin/tldr8
-rwxr-xr-xbin/bin/tmux_attach2
6 files changed, 9 insertions, 9 deletions
diff --git a/bin/bin/downloads b/bin/bin/downloads
index 4a5fa7f..dfbbd98 100755
--- a/bin/bin/downloads
+++ b/bin/bin/downloads
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
download_dir="$HOME/Downloads"
-target=$(find $download_dir -regex '.*\.\(pdf\|PDF\|djvu\|ps\)' -printf "%T+ %f\n" | sort -r | cut -d' ' -f2- | dmenu -i -p "Open File:")
+target=$(find $download_dir -regex '.*\.\(pdf\|PDF\|djvu\|ps\)' -printf "%T+ %f\n" | sort -r | cut -d' ' -f2- | dmenu -i -p "Open File")
[[ -n $target ]] && exec zathura "$download_dir/$target"
diff --git a/bin/bin/password b/bin/bin/password
index ffcbb7e..eae4be6 100755
--- a/bin/bin/password
+++ b/bin/bin/password
@@ -2,6 +2,6 @@
# Username in primary, password in clipboard
-target=$(find "$HOME/.password-store/" -name "*.gpg" -printf "%P\\n" | dmenu -i -p "Get identifier for:")
+target=$(find "$HOME/.password-store/" -name "*.gpg" -printf "%P\\n" | dmenu -i -p "Get identifier for")
basename "$target" .gpg | xclip -i -selection "primary"
pass show --clip "${target%.gpg}"
diff --git a/bin/bin/references b/bin/bin/references
index 93ef5f4..46ff41e 100755
--- a/bin/bin/references
+++ b/bin/bin/references
@@ -1,5 +1,5 @@
#!/bin/bash
REF_DIR="$HOME/phd/references"
PDF=$(find $REF_DIR -regex ".*.\(pdf\|djvu\|PDF\|ps\)" -printf "%C@ %P\n" | sort | tac | cut -d' ' -f2-)
-TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:")
+TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File")
[[ -n $TARGET ]] && exec zathura "$REF_DIR/$TARGET"
diff --git a/bin/bin/run b/bin/bin/run
index aef09ea..43f83ab 100755
--- a/bin/bin/run
+++ b/bin/bin/run
@@ -1,3 +1,3 @@
#!/bin/bash
-target=$(find $HOME/dotfiles/bin/ -type f -not -name ".*" -printf "%f\n" | dmenu -i -p "Run script:")
+target=$(find $HOME/dotfiles/bin/ -type f -not -name ".*" -printf "%f\n" | dmenu -i -p "Run script")
[[ -n $target ]] && exec $target
diff --git a/bin/bin/tldr b/bin/bin/tldr
index cab9dfa..9e12f41 100755
--- a/bin/bin/tldr
+++ b/bin/bin/tldr
@@ -96,7 +96,7 @@ Style(){
STYLES+=${color[$style]:-}${bg[$style]:-}${mode[$style]:-}
XSTYLES=${xmode[$style]:-}${xbg[$style]:-}${xcolor[$style]:-}$XSTYLES
done
-}
+}
# Sets: color xcolor bg xbg mode xmode
Init_term(){
@@ -191,7 +191,7 @@ Config(){
SunOS) os='sunos' ;;
esac
Init_term
- [[ $TLDR_LESS = 0 ]] &&
+ [[ $TLDR_LESS = 0 ]] &&
trap 'cat <<<"$stdout"' EXIT ||
trap 'less -~RXQFP"Browse up/down, press Q to exit " <<<"$stdout"' EXIT
@@ -327,7 +327,7 @@ Display_tldr(){
Out "$ENL$ESP$E$REPLY$XE" ;;
esac
done <"$1"
- [[ $TLDR_LESS = 0 ]] &&
+ [[ $TLDR_LESS = 0 ]] &&
trap 'cat <<<"$stdout"' EXIT ||
trap 'less -Gg -~RXQFP"%pB\% tldr $I$page$XI - browse up/down, press Q to exit" <<<"$stdout"' EXIT
}
@@ -362,7 +362,7 @@ Cache_fill(){
rm -- "$tmp"
Err "Couldn't unzip the cache archive on $tmp/pages.zip"
exit 8
- }
+ }
rm -rf -- "${cachedir:?}/"*
mv -- "$tmp/pages/"* "${cachedir:?}/"
rm -rf -- "$tmp"
diff --git a/bin/bin/tmux_attach b/bin/bin/tmux_attach
index b5a613c..25d8f12 100755
--- a/bin/bin/tmux_attach
+++ b/bin/bin/tmux_attach
@@ -5,7 +5,7 @@ ATTACHED_SESSIONS=$(tmux list-sessions | grep attached | cut -d':' -f1)
TMUXINATOR=$(tmuxinator list | sed '1d' | sed 's/\s\+/\n/g')
UNION=$(cat <(echo "$SESSIONS") <(echo "$TMUXINATOR") | sort | uniq | sed "/^$/d")
-SESSION=$(echo "$UNION" | dmenu -i -p "Session:" | tr -d '[:space:]')
+SESSION=$(echo "$UNION" | dmenu -i -p "Session" | tr -d '[:space:]')
[[ -n $SESSION ]] || exit
# Rename i3 workspace