Clean up some XDG/UWSM details

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-24 10:13:05 +01:00
parent 0ba22f6eea
commit b9d57d2d58
3 changed files with 8 additions and 15 deletions

View File

@@ -42,13 +42,13 @@ in
}; };
open = [ open = [
{ {
run = "xdg-open \"$1\""; run = "uwsm app -- xdg-open \"$1\"";
desc = "Open"; desc = "Open";
} }
]; ];
reveal = [ reveal = [
{ {
run = "xdg-open \"$(dirname \"$1\")\""; run = "uwsm app -- xdg-open \"$(dirname \"$1\")\"";
desc = "Reveal"; desc = "Reveal";
} }
]; ];
@@ -60,7 +60,7 @@ in
]; ];
play = [ play = [
{ {
run = "mpv \"$@\""; run = "uwsm app -- mpv \"$@\"";
orphan = true; orphan = true;
} }
]; ];

View File

@@ -35,21 +35,17 @@
"image/pjpeg" "image/pjpeg"
"image/png" "image/png"
"image/tiff" "image/tiff"
"image/webp"
"image/x-bmp" "image/x-bmp"
"image/x-gray" "image/x-pcx"
"image/x-icb"
"image/x-ico"
"image/x-png" "image/x-png"
"image/x-portable-anymap" "image/x-portable-anymap"
"image/x-portable-bitmap" "image/x-portable-bitmap"
"image/x-portable-graymap" "image/x-portable-graymap"
"image/x-portable-pixmap" "image/x-portable-pixmap"
"image/x-tga"
"image/x-xbitmap" "image/x-xbitmap"
"image/x-xpixmap" "image/heic"
"image/x-pcx"
"image/svg+xml"
"image/svg+xml-compressed"
"image/vnd.wap.wbmp"
] (_: "feh.desktop"); ] (_: "feh.desktop");
}; };
} }

View File

@@ -4,8 +4,5 @@
}: }:
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home-manager.users.${user}.xdg.portal = { home-manager.users.${user}.xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
xdgOpenUsePortal = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
} }