Added wayland, hyprland and eww

This commit is contained in:
marc
2024-03-02 17:38:35 +01:00
parent 95944b2486
commit 466ddf2cd9
27 changed files with 591 additions and 13 deletions

View File

@@ -2,7 +2,8 @@
let
cfg = config.samfelag.modules.system.pass;
desktopCfg = config.samfelag.modules.desktop;
i3Cfg = config.samfelag.modules.desktop.i3;
hyprCfg = config.samfelag.modules.desktop.hyprland;
in
{
options.samfelag.modules.system.pass = {
@@ -16,6 +17,7 @@ in
hm.programs.rofi.pass = {
enable = true;
package = if hyprCfg.enable then pkgs.rofi-pass-wayland else pkgs.rofi-pass;
extraConfig = ''
default_user="sastrey@gmail.com"
default_user2="marc"
@@ -34,8 +36,12 @@ in
'';
};
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf desktopCfg.enable {
"${desktopCfg.i3.mod}+p" = "exec rofi-pass";
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
"${i3Cfg.mod}+p" = "exec rofi-pass";
};
samfelag.modules.desktop.hyprland.extraKeybindings = lib.mkIf hyprCfg.enable [
"${hyprCfg.mod}, P, exec, rofi-pass"
];
};
}