blob: 804a0450f9de710b440d86c501a4009888b67f2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env sh
project="$({
tskm projects list
echo nvim zathura
} | rofi -sep "$(printf "\n")" -dmenu)"
if [ "$project" = "nvim" ]; then
"$TERMINAL" -e nvim "$1"
elif [ "$project" = "zathura" ]; then
zathura "$1"
elif [ "$project" ]; then
tskm open project "$project" "$1"
else
notify-send "(URL HANDLER) No project selected"; exit 1
fi
# vim: ft=sh
|