From 805bc9e63a3fe1c4bdb768f8c37d39a8fbbcb423 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Tue, 30 Jul 2024 14:46:15 +0200 Subject: [PATCH] feat: add foliate as default ebook reader and switch to urgent windows --- home/hyprland/default.nix | 1 + hosts/brontes/home.nix | 2 ++ modules/system/mime.nix | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 6cb8c9a..f8fccf2 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -124,6 +124,7 @@ lib.mkIf osConfig.programs.hyprland.enable { misc = { force_default_wallpaper = 0; # Set to 0 or 1 to disable the anime mascot wallpapers disable_hyprland_logo = false; # If true disables the random hyprland logo / anime girl background. :( + focus_on_activate = true; }; bindm = [ "$mod,mouse:272,movewindow" ]; diff --git a/hosts/brontes/home.nix b/hosts/brontes/home.nix index dd5e960..bfb517a 100644 --- a/hosts/brontes/home.nix +++ b/hosts/brontes/home.nix @@ -59,6 +59,8 @@ alacritty tagger soundconverter + foliate + kid3 # proprietary obsidian diff --git a/modules/system/mime.nix b/modules/system/mime.nix index 37ee000..87c851e 100644 --- a/modules/system/mime.nix +++ b/modules/system/mime.nix @@ -12,8 +12,8 @@ "application/pdf" = browser; "x-www-browser" = browser; "text/html" = browser; - "application/vnd.comicbook+zip" = "calibre-ebook-viewer.desktop"; - "application/epub+zip" = "calibre-ebook-viewer.desktop"; + "application/vnd.comicbook+zip" = "com.github.johnfactotum.Foliate.desktop"; + "application/epub+zip" = "com.github.johnfactotum.Foliate.desktop"; "image/*" = "org.gnome.Loupe.desktop"; "image/png" = "org.gnome.Loupe.desktop"; "image/jpeg" = "org.gnome.Loupe.desktop";