making niri better

This commit is contained in:
Chris Cochrun 2025-09-02 15:27:55 -05:00
parent d6d16bfe7f
commit 8885ccc00e
3 changed files with 107 additions and 21 deletions

View file

@ -46,17 +46,17 @@ in {
enable = true;
config = {
common = {
default = [ "hyprland" ];
"org.freedesktop.impl.portal.FileChooser" = [ "kde" ];
"org.freedesktop.impl.portal.OpenUri" = [ "kde" ];
default = [ "cosmic" ];
"org.freedesktop.impl.portal.FileChooser" = [ "cosmic" ];
"org.freedesktop.impl.portal.OpenUri" = [ "cosmic" ];
};
hyprland = {
default = [ "hyprland" ];
"org.freedesktop.impl.portal.FileChooser" = [ "kde" ];
"org.freedesktop.impl.portal.OpenUri" = [ "kde" ];
"org.freedesktop.impl.portal.FileChooser" = [ "cosmic" ];
"org.freedesktop.impl.portal.OpenUri" = [ "cosmic" ];
};
};
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde pkgs.xdg-desktop-portal-gtk ];
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-cosmic ];
xdgOpenUsePortal = true;
};
mimeApps = {
@ -1614,6 +1614,7 @@ in {
exec = "alacritty -e mpv --profile=slow %U";
terminal = true;
categories = [ "Application" ];
noDisplay = true;
mimeType = [
"audio/ogg"
"audio/mpeg"
@ -1627,6 +1628,7 @@ in {
genericName = "Show images in current directory in IMV";
exec = "/home/chris/bin/rifle-imv %U";
terminal = false;
noDisplay = true;
categories = [ "Application" ];
mimeType = [ "image/gif" "image/jpeg" "image/png" "image/heif" ];
};