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

View File

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

View File

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