WIP: add XDG MIME associations
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
This commit is contained in:
parent
4c48af12e6
commit
d7f3695132
7 changed files with 35 additions and 0 deletions
|
|
@ -10,4 +10,11 @@ in
|
|||
config.programs.feh = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||
applications.media.image = {
|
||||
bitmap = [ "feh.desktop" ];
|
||||
vector = [ "feh.desktop" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,4 +77,8 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||
applications.editor = [ "firefox.desktop" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,8 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||
applications.editor = [ "himalaya.desktop" ]; # FIXME: doesn't exist
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,5 +17,12 @@ in
|
|||
pkgs.mpvScripts.uosc # Nicer UI
|
||||
];
|
||||
};
|
||||
|
||||
my.home.xdg.mime-apps = {
|
||||
applications.media = {
|
||||
audio = [ "mpv.desktop" ];
|
||||
video = [ "mpv.desktop" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,4 +59,5 @@ in
|
|||
config.home.sessionVariables = lib.mkIf (cfg.program != null) {
|
||||
TERMINAL = cfg.program;
|
||||
};
|
||||
# FIXME: config.my.home.xdg.mime-apps.applications.terminal
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,4 +107,8 @@ in
|
|||
};
|
||||
|
||||
config.xdg.configFile = lib.mkIf cfg.enable configFiles;
|
||||
|
||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||
applications.editor = [ "nvim.desktop" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,4 +17,12 @@ in
|
|||
"statusbar-home-tilde" = true;
|
||||
};
|
||||
};
|
||||
|
||||
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
|
||||
applications.media.document = {
|
||||
comic = [ "zathura.desktop" ];
|
||||
ebook = [ "zathura.desktop" ];
|
||||
pdf = [ "zathura.desktop" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue