updated xdg-mime.nix
This commit is contained in:
parent
9eeb59537f
commit
b5433aacb8
2 changed files with 32 additions and 58 deletions
|
|
@ -24,34 +24,25 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
mime = { enable = true; };
|
|
||||||
mimeApps = {
|
|
||||||
enable = true;
|
|
||||||
#associations.added = associations;
|
|
||||||
#defaultApplications = associations;
|
|
||||||
};
|
|
||||||
portal = {
|
portal = {
|
||||||
enable = false;
|
enable = true;
|
||||||
xdgOpenUsePortal = false;
|
xdgOpenUsePortal = false;
|
||||||
config = {
|
config = {
|
||||||
common."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
|
common."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
|
||||||
common.default = [ "gtk" "gnome" ];
|
common.default = [ "gtk" "gnome" ];
|
||||||
#sway.default = [ "gtk" "gnome" ];
|
sway.default = [ "wlr" "gtk" "gnome" ];
|
||||||
hyprland.default = [ "hyprland" "gtk" "gnome" ];
|
|
||||||
};
|
};
|
||||||
configPackages = with pkgs; [
|
configPackages = with pkgs; [
|
||||||
#xdg-desktop-portal
|
#xdg-desktop-portal
|
||||||
xdg-desktop-portal-wlr
|
xdg-desktop-portal-wlr
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gnome
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
];
|
];
|
||||||
extraPortals = with pkgs; [
|
extraPortals = with pkgs; [
|
||||||
#xdg-desktop-portal
|
#xdg-desktop-portal
|
||||||
xdg-desktop-portal-wlr
|
xdg-desktop-portal-wlr
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gnome
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
#userDirs = {
|
#userDirs = {
|
||||||
|
|
|
||||||
|
|
@ -1,46 +1,27 @@
|
||||||
# Mime allows us to configure the default applications for each file type
|
# Mime allows us to configure the default applications for each file type
|
||||||
{
|
{
|
||||||
xdg = {
|
xdg = {
|
||||||
|
mime = { enable = true; };
|
||||||
desktopEntries = {
|
#desktopEntries = { };
|
||||||
swayimg = {
|
|
||||||
name = "Swayimg";
|
|
||||||
genericName = "Image Viewer";
|
|
||||||
terminal = true;
|
|
||||||
exec = "swayimg %F";
|
|
||||||
categories = [ "Graphics" "Viewer" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
defaultApplications = {
|
associations = {
|
||||||
|
added = {
|
||||||
|
|
||||||
## Basic Text
|
## General
|
||||||
|
"inode/directory" = "yazi.desktop";
|
||||||
|
"image/*" = "swayimg.desktop";
|
||||||
|
"audio/*" = "strawberry.desktop";
|
||||||
|
"video/*" = "vlc.desktop";
|
||||||
"text/plain" = "nvim.desktop";
|
"text/plain" = "nvim.desktop";
|
||||||
"text/markdown" = "nvim.desktop";
|
"text/markdown" = "nvim.desktop";
|
||||||
"application/pdf" = "firefox.desktop";
|
"application/pdf" = "zathura.desktop";
|
||||||
|
"application/zip" = "org.gnome.FileRoller.desktop";
|
||||||
## Images
|
|
||||||
"image/gif" = "swayimg.desktop";
|
|
||||||
"image/png" = "swayimg.desktop";
|
|
||||||
"image/jpg" = "swayimg.desktop";
|
|
||||||
"image/jpeg" = "swayimg.desktop";
|
|
||||||
"image/webp" = "swayimg.desktop";
|
|
||||||
|
|
||||||
## Videos
|
|
||||||
"video/mp4" = "vlc.desktop";
|
|
||||||
"video/mpeg" = "vlc.desktop";
|
|
||||||
"video/webm" = "vlc.desktop";
|
|
||||||
"video/quicktime" = "vlc.desktop";
|
|
||||||
"video/x-matroska" = "vlc.desktop";
|
|
||||||
|
|
||||||
## Music
|
|
||||||
|
|
||||||
## Gaming
|
|
||||||
|
|
||||||
## Web
|
## Web
|
||||||
"text/css" = "nvim.desktop";
|
"text/css" = "nvim.desktop";
|
||||||
"text/html" = "nvim.desktop";
|
"text/html" = "nvim.desktop";
|
||||||
|
"application/json" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/ftp" = "firefox.desktop";
|
||||||
"x-scheme-handler/http" = "firefox.desktop";
|
"x-scheme-handler/http" = "firefox.desktop";
|
||||||
"x-scheme-handler/https" = "firefox.desktop";
|
"x-scheme-handler/https" = "firefox.desktop";
|
||||||
|
|
||||||
|
|
@ -55,5 +36,7 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#defaultApplications = { };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue