Use Sioyek as default PDF viewer

This commit is contained in:
Mikael 2024-08-21 22:06:01 +02:00
parent 5543b7a3b7
commit 153d4c4979
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -103,7 +103,6 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
# Audio control
pwvucontrol
evince
inkscape
obsidian
@ -264,6 +263,18 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
};
};
programs.sioyek = {
enable = true;
bindings = {
"command" = "-";
"move_up" = [ "<up>" "t" ];
"move_down" = [ "<down>" "n" ];
"move_left" = [ "<right>" "h" ];
"move_right" = [ "<left>" "r" ];
};
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
@ -650,7 +661,7 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
enable = true;
defaultApplications = {
"default-web-browser" = [ "firefox.desktop" ];
"application/pdf" = [ "org.gnome.Evince.desktop" ];
"application/pdf" = [ "sioyek.desktop" ];
};
};