summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/references2
-rwxr-xr-xbin/bin/tmux_attach2
-rwxr-xr-xbin/bin/workspace2
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/bin/references b/bin/bin/references
index 68d1e4e..4e6346a 100755
--- a/bin/bin/references
+++ b/bin/bin/references
@@ -2,4 +2,4 @@
REF_DIR="$HOME/phd/references"
PDF=$(find $REF_DIR -name "*.pdf" -printf "%P\n")
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