Better default app abstractions into hyprland conf

This commit is contained in:
Emmet 2023-08-13 20:57:11 -05:00
parent e0c265ecc6
commit 9e68d26497
4 changed files with 25 additions and 56 deletions

View file

@ -1,8 +1,14 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, wmType, ... }:
{
# Module installing librewolf as default browser
home.packages = [ pkgs.librewolf ];
home.packages = if (wmType == "wayland") then [ pkgs.librewolf-wayland ]
else [ pkgs.librewolf ];
home.sessionVariables = if (wmType == "wayland")
then { DEFAULT_BROWSER = "${pkgs.librewolf-wayland}/bin/librewolf";}
else
{ DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";};
home.file.".librewolf/librewolf.overrides.cfg".text = ''
defaultPref("font.name.serif.x-western","Inconsolata");
@ -35,8 +41,4 @@
"x-scheme-handler/unknown" = "librewolf.desktop";
};
home.sessionVariables = {
DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";
};
}