about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/xdg/url_handler.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 13:12:12 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 13:12:12 +0200
commit8c4e702a269317609fb1f6609045e7e99e611f65 (patch)
tree1ae0b49611a05a24d7a5be7b707eee565a5c38b7 /modules/home.legacy/conf/xdg/url_handler.sh
parentrefactor(modules/timewarrior): Migrate to by-name (diff)
downloadnixos-config-8c4e702a269317609fb1f6609045e7e99e611f65.zip
refactor(treewide): neorg -> tskm
Diffstat (limited to '')
-rwxr-xr-xmodules/home.legacy/conf/xdg/url_handler.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/home.legacy/conf/xdg/url_handler.sh b/modules/home.legacy/conf/xdg/url_handler.sh
index 95eedffb..f15df384 100755
--- a/modules/home.legacy/conf/xdg/url_handler.sh
+++ b/modules/home.legacy/conf/xdg/url_handler.sh
@@ -1,9 +1,9 @@
-#!/usr/bin/env dash
+#!/usr/bin/env sh
 
-# shellcheck source=/dev/null
-SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
-
-project="$(echo "%ALL_PROJECTS_PIPE|nvim|zathura|" | rofi -sep "|" -dmenu)"
+project="$({
+    tskm projects list
+    echo nvim zathura
+} | rofi -sep "$(printf "\n")" -dmenu)"
 
 if [ "$project" = "nvim" ]; then
     "$TERMINAL" -e nvim "$1"