17 lines
444 B
Bash
Executable File
17 lines
444 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -eq 0 ]; then
|
|
exec tabbed "$0" -w
|
|
fi
|
|
|
|
if [ "$1" = "-w" ] && [ -n "$2" ]; then
|
|
name=$(abduco | tail +2 | awk -F'\t' '{ print $3 }' | dmenu -p session: -l 10)
|
|
if [ -n "$name" ]; then
|
|
# exec alacritty --embed "$2" --title "$name" -e abduco -A "$name" "$SHELL"
|
|
exec st -w "$2" -t "$name" -e abduco -A "$name" "$SHELL"
|
|
fi
|
|
else
|
|
echo error: requires either no arguments or single option -w with and argument >&2
|
|
exit 1
|
|
fi
|