diff options
Diffstat (limited to 'modules/by-name/xd/xdg/scripts/url-handler.sh')
-rwxr-xr-x | modules/by-name/xd/xdg/scripts/url-handler.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/by-name/xd/xdg/scripts/url-handler.sh b/modules/by-name/xd/xdg/scripts/url-handler.sh index 5aa01a48..d1c8277d 100755 --- a/modules/by-name/xd/xdg/scripts/url-handler.sh +++ b/modules/by-name/xd/xdg/scripts/url-handler.sh @@ -2,7 +2,7 @@ project="$({ tskm projects list - echo nvim zathura + printf "%s\n" nvim zathura } | rofi -sep "$(printf "\n")" -dmenu)" if [ "$project" = "nvim" ]; then @@ -10,9 +10,10 @@ if [ "$project" = "nvim" ]; then elif [ "$project" = "zathura" ]; then zathura "$1" elif [ "$project" ]; then - tskm open "$project" "$1" + tskm open project "$project" "$1" else - notify-send "(URL HANDLER) No project selected"; exit 1 + notify-send "(URL HANDLER) No project selected" + exit 1 fi # vim: ft=sh |