minor additions

This commit is contained in:
Solomon Laing 2022-10-26 20:56:47 +10:30
parent 0ba1f4b603
commit ec4e4185e4
2 changed files with 19 additions and 0 deletions

6
scripts/dmenupass Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
# password prompt if needed.
dmenu -fn Monospace-18 -P -p "$1" <&- && echo

13
scripts/tmux-windowiser Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
branch_name=$(basename $1)
session_name=$(tmux display-message -p "#S")
clean_name=$(echo $branch_name | tr "./" "__")
target="$session_name:$clean_name"
if ! tmux has-session -t $target 2> /dev/null; then
tmux neww -dn $clean_name
fi
shift
tmux send-keys -t $target "$*" Enter