about summary refs log tree commit diff stats
path: root/hm/soispha/conf/xdg/url_handler
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-29 09:36:28 +0100
committerSoispha <soispha@vhack.eu>2023-12-29 09:36:28 +0100
commit7fc5e9ec677b817429480b061f093bff72b06352 (patch)
treef1000ffd9f7a24f49c11adf597d9ac0e2b11b124 /hm/soispha/conf/xdg/url_handler
parentfix(hm/conf/xdg): Correctly specify the attr names under xdg (diff)
downloadnixos-config-7fc5e9ec677b817429480b061f093bff72b06352.zip
feat(hm/conf/xdg/url_handler): Also support opening in zathura
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/conf/xdg/url_handler4
1 files changed, 3 insertions, 1 deletions
diff --git a/hm/soispha/conf/xdg/url_handler b/hm/soispha/conf/xdg/url_handler
index 10ce1d90..91fdd0d1 100755
--- a/hm/soispha/conf/xdg/url_handler
+++ b/hm/soispha/conf/xdg/url_handler
@@ -4,10 +4,12 @@
 SHELL_LIBRARY_VERSION="1.10.0" . %SHELL_LIBRARY_PATH
 
 
-project="$(echo "%ALL_PROJECTS_PIPE|nvim" | rofi -sep "|" -dmenu)";
+project="$(echo "%ALL_PROJECTS_PIPE|nvim|zathura" | rofi -sep "|" -dmenu)";
 
 if [ "$project" = "nvim" ]; then
     "$TERMINAL" -e nvim "$1"
+elif [ "$project" = "zathura" ]; then
+    zathura "$1"
 elif [ "$project" ]; then
     firefox -P "$project" "$1";
 else