feat: perf hyprland switcher and new image viewer
This commit is contained in:
26
host/max/home/image-viewer.nix
Normal file
26
host/max/home/image-viewer.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
xdg.desktopEntries.imv = {
|
||||
name = "imv";
|
||||
exec = "${pkgs.imv}/bin/imv %F";
|
||||
icon = "imv";
|
||||
};
|
||||
|
||||
xdg.mimeApps = let
|
||||
value = "imv.desktop";
|
||||
|
||||
associations = builtins.listToAttrs (map (name: {
|
||||
inherit name value;
|
||||
}) [
|
||||
"image/png"
|
||||
"image/jpeg"
|
||||
"image/gif"
|
||||
"image/bmp"
|
||||
"image/webp"
|
||||
]);
|
||||
in {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user