From a4b683444e596fc2086b0363740e484d8eec0f33 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 20 Jul 2026 21:54:41 +0200 Subject: ... --- accounts/gkleen@sif/systemd.nix | 63 ----------------------------------------- 1 file changed, 63 deletions(-) (limited to 'accounts/gkleen@sif') diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index c21514ea..7aee29c5 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -239,69 +239,6 @@ in { WatchdogSec = "2s"; }; }; - gtklock = { - Unit = { - Requisite = ["graphical-session.target"]; - After = [ "graphical-session.target" ]; - PartOf = ["graphical-session.target"]; - }; - Service = { - Type = "notify"; - RuntimeDirectory = "gtklock"; - CacheDirectory = "gtklock"; - ExecStartPre = [ - "-${lib.getExe' pkgs.libsForQt5.qt5.qttools.bin "qdbus"} org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases" - "-${lib.getExe' config.systemd.package "systemctl"} --user stop gpg-agent.service" - "-${lib.getExe pkgs.playerctl} -a pause" - "-${lib.getExe (pkgs.writeShellApplication { - name = "generate-css"; - runtimeInputs = with pkgs; [cfg.services.wpaperd.package jq coreutils imagemagick findutils]; - text = '' - declare -A monitors - monitors=() - while IFS= read -r entry; do - path=$(jq -r ".path" <<<"$entry") - [[ -z "$path" || ! -f "$path" ]] && continue - blurred_path="$CACHE_DIRECTORY"/"$(b2sum -l 128 <<<"$path" | cut -d' ' -f1)"."''${path##*.}" - monitor=$(jq -r ".display" <<<"$entry") - if [[ ! -f "$blurred_path" ]]; then - mkdir -p "$(dirname "$blurred_path")" - magick "$path" -filter Gaussian -resize 6.25% -define filter:sigma=2.5 -resize 1600% "$blurred_path" & - fi - monitors+=([$monitor]="$blurred_path") - done < <(wpaperctl all-wallpapers -j | jq -c ".[]") - # wait - - cp --no-preserve=mode ${pkgs.writeText "gtklock.css" '' - #window-box { - padding: 64px; - /* border: 1px solid black; */ - border-radius: 4px; - box-shadow: rgba(0, 0, 0, 0.8) 0px 4px 12px; - /* background-color: white; */ - background-color: rgba(0, 0, 0, 0.5); - } - ''} "$RUNTIME_DIRECTORY"/style.css - for monitor in "''${!monitors[@]}"; do - cat >>"$RUNTIME_DIRECTORY"/style.css <