mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
4 commits
c2c655981a
...
9b02b9e1da
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b02b9e1da | |||
| 5bad4db389 | |||
| 05e980d72a | |||
| 2cada3b44e |
4 changed files with 39 additions and 20 deletions
|
|
@ -55,10 +55,15 @@
|
|||
type = "fcitx5";
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
xdg.mimeApps =
|
||||
let
|
||||
associations = {
|
||||
"x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@
|
|||
pkgs.mousai
|
||||
pkgs.localsend # file share with iOS
|
||||
pkgs.minder # mindmap tool
|
||||
pkgs.mkvtoolnix
|
||||
|
||||
# social
|
||||
pkgs.iamb
|
||||
|
|
|
|||
|
|
@ -129,15 +129,20 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
xdg.mimeApps =
|
||||
let
|
||||
# source: https://unix.stackexchange.com/a/684582
|
||||
defaultApplications = {
|
||||
associations = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.sioyek;
|
||||
in
|
||||
{
|
||||
programs.sioyek = {
|
||||
bindings = {
|
||||
|
|
@ -28,10 +31,15 @@
|
|||
config.should_launch_new_window = "1";
|
||||
};
|
||||
|
||||
xdg.mimeApps = lib.mkIf config.programs.sioyek.enable {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
xdg.mimeApps =
|
||||
let
|
||||
associations = {
|
||||
"application/pdf" = [ "sioyek.desktop" ];
|
||||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue