From 5dcd172bae25192a5366e8ad1ad3a9d7ed7a8247 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 9 May 2017 11:35:01 +0100 Subject: Add various changes --- bin/bin/references | 2 +- bin/bin/tmux_attach | 2 +- bin/bin/workspace | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3