Replace keeweb with keepassxc

This commit is contained in:
Andreas Zweili 2023-11-08 12:38:07 +01:00
parent 53e7f4a74e
commit a6a94aa259
6 changed files with 31 additions and 23 deletions

View File

@ -9,7 +9,7 @@
./programs/email
./programs/evince
./programs/git
./programs/keeweb
./programs/keepassxc
./programs/mpv
./programs/open-port
./programs/rapid-photo-downloader

View File

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.az-keepassxc;
in
{
options = {
programs.az-keepassxc.enable = lib.mkEnableOption "Enable keepassxc.";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
keepassxc
];
systemd.user.services.keepassxc = {
Unit = {
Description = "Start keepassxc";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.keepassxc}/bin/keepassxc";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}

View File

@ -1,17 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.az-keeweb;
in
{
options = {
programs.az-keeweb.enable = lib.mkEnableOption "Enable keeweb.";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
keeweb
];
home.file.".config/qtile/autostart.d/keeweb.sh".source = ./keeweb.sh;
};
}

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
echo "start keeweb"
nohup keeweb --in-process-gpu > ~/.local/share/nohup.out &

View File

@ -14,7 +14,7 @@ in
az-emacs.enable = true;
az-email.enable = true;
az-evince.enable = true;
az-keeweb.enable = true;
az-keepassxc.enable = true;
az-mpv.enable = true;
az-open-port.enable = true;
az-signal.enable = true;

View File

@ -88,7 +88,7 @@ group_matches = [
None, # 4
None, # 5
[
Match(wm_class="KeeWeb"),
Match(wm_class="KeePassXC"),
Match(wm_class="JDownloader"),
Match(wm_class="Plexamp"),
], # 6