From 153d4c497967fb90eaa47ffe11adbabba46b48dd Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 21 Aug 2024 22:06:01 +0200 Subject: [PATCH] Use Sioyek as default PDF viewer --- home/config/nil/wayland.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/home/config/nil/wayland.nix b/home/config/nil/wayland.nix index 3d90216..e68293d 100644 --- a/home/config/nil/wayland.nix +++ b/home/config/nil/wayland.nix @@ -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" = [ "" "t" ]; + "move_down" = [ "" "n" ]; + "move_left" = [ "" "h" ]; + "move_right" = [ "" "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" ]; }; };