blob: f15df384ff97da749cd49d2d86263c2a6edf8341 (
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
firefox -P "$project" "$1"
else
notify-send "(URL HANDLER) No project selected" && exit 1
fi
# vim: ft=sh
|