about summary refs log tree commit diff stats
path: root/modules/by-name/xd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/xd')
-rw-r--r--modules/by-name/xd/xdg/module.nix19
-rwxr-xr-xmodules/by-name/xd/xdg/scripts/lf-wrapper.sh11
-rwxr-xr-xmodules/by-name/xd/xdg/scripts/url-handler.sh10
3 files changed, 35 insertions, 5 deletions
diff --git a/modules/by-name/xd/xdg/module.nix b/modules/by-name/xd/xdg/module.nix
index a7c77cd7..9ff71ca0 100644
--- a/modules/by-name/xd/xdg/module.nix
+++ b/modules/by-name/xd/xdg/module.nix
@@ -1,3 +1,12 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 {
   pkgs,
   lib,
@@ -17,7 +26,9 @@
     name = "url-handler";
 
     runtimeInputs = [pkgs.rofi pkgs.libnotify pkgs.zathura pkgs.tskm];
-    inheritPath = false;
+
+    # We need to run the browser in tskm or nvim and alacritty.
+    inheritPath = true;
 
     text = builtins.readFile ./scripts/url-handler.sh;
   };
@@ -89,20 +100,18 @@ in {
         };
         config = {
           common = {
-            # NOTE: The next entry is supposedly needed for gtk based apps <2023-08-31>
-            default = ["wlr" "gtk"];
+            default = ["wlr"];
             "org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
           };
 
           # TODO: Also activate, when on another wlr-based compositor <2023-11-25>
           river = {
-            default = ["wlr" "gtk"];
+            default = ["wlr"];
             "org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
           };
         };
 
         extraPortals = [
-          pkgs.xdg-desktop-portal-gtk
           pkgs.xdg-desktop-portal-wlr
           pkgs.xdg-desktop-portal-termfilechooser
         ];
diff --git a/modules/by-name/xd/xdg/scripts/lf-wrapper.sh b/modules/by-name/xd/xdg/scripts/lf-wrapper.sh
index f85f7bac..6a5c5295 100755
--- a/modules/by-name/xd/xdg/scripts/lf-wrapper.sh
+++ b/modules/by-name/xd/xdg/scripts/lf-wrapper.sh
@@ -1,4 +1,15 @@
 #!/usr/bin/env sh
+
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
 # This wrapper script is invoked by xdg-desktop-portal-termfilechooser.
 #
 # For more information about input/output arguments read `xdg-desktop-portal-termfilechooser(5)`
diff --git a/modules/by-name/xd/xdg/scripts/url-handler.sh b/modules/by-name/xd/xdg/scripts/url-handler.sh
index d1c8277d..b3563349 100755
--- a/modules/by-name/xd/xdg/scripts/url-handler.sh
+++ b/modules/by-name/xd/xdg/scripts/url-handler.sh
@@ -1,5 +1,15 @@
 #!/usr/bin/env sh
 
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
 project="$({
     tskm projects list
     printf "%s\n" nvim zathura