diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-05-09 11:35:01 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-05-09 11:35:01 +0100 |
commit | 5dcd172bae25192a5366e8ad1ad3a9d7ed7a8247 (patch) | |
tree | 06a24326fe9122b3d017ed99ef4e70be4da01167 /bin | |
parent | 9600f2f2037429da7179b2399347b1857028de85 (diff) |
Add various changes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bin/references | 2 | ||||
-rwxr-xr-x | bin/bin/tmux_attach | 2 | ||||
-rwxr-xr-x | bin/bin/workspace | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/bin/references b/bin/bin/references index a578728..eba1fb1 100755 --- a/bin/bin/references +++ b/bin/bin/references @@ -2,4 +2,4 @@ REF_DIR="$HOME/phd/references" PDF=$(locate "$REF_DIR/**/*.pdf") TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:") -[[ -n $TARGET ]] && zathura "$REF_DIR/$TARGET" & +[[ -n $TARGET ]] && (zathura "$REF_DIR/$TARGET" &) diff --git a/bin/bin/tmux_attach b/bin/bin/tmux_attach index 593f53c..4938543 100755 --- a/bin/bin/tmux_attach +++ b/bin/bin/tmux_attach @@ -1,7 +1,7 @@ #!/usr/bin/env bash SESSIONS=$(tmux list-sessions | cut -d':' -f1) -TMUXINATOR=$(tmuxinator list | tail -1 | sed 's/ /\n/g') +TMUXINATOR=$(tmuxinator list | sed '1d' | sed 's/ /\n/g') UNION=$(cat <(echo "$SESSIONS") <(echo "$TMUXINATOR") | sort | uniq | sed "/^$/d") SESSION=$(echo "$UNION" | dmenu -i -p "Session:" | tr -d '[[:space:]]') diff --git a/bin/bin/workspace b/bin/bin/workspace index e380f98..d8dec79 100755 --- a/bin/bin/workspace +++ b/bin/bin/workspace @@ -11,7 +11,7 @@ workspaces=$(i3-msg -t get_workspaces | grep -Po '"name":.*?[^\\]"' | sed 's/"na workspaces=$(echo $workspaces | sed '/:/!d') # Get desired workspace -target=$(echo $workspaces | dmenu "Go to workspace:") +target=$(echo $workspaces | dmenu -i -b -p "Go to workspace:") # Exit if empty [[ -z $target ]] && exit |