home/wm: use db-tool instead of betterlockscreen

This commit is contained in:
Dmitriy Pleshevskiy 2024-02-19 10:55:53 +03:00
parent d497ae2932
commit 6cdbdeff1a
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
4 changed files with 1 additions and 48 deletions

View file

@ -1,46 +0,0 @@
{ config, lib, pkgs, ... }:
let
inherit (config.services.betterlockscreen) package;
in
{
services.betterlockscreen = {
enable = true;
arguments = [ "--display 1" "--" "-e" ];
inactiveInterval = 15;
};
systemd.user.timers.updateBetterlockscreenImage = {
Unit = {
Description = "Update betterlockscreen image timer";
After = [ "graphical-session.target" "timers.target" ];
};
Timer = {
OnUnitActiveSec = "60min";
OnBootSec = "10s";
};
Install = {
WantedBy = [ "graphical-session.target" "timers.target" ];
};
};
systemd.user.services.updateBetterlockscreenImage = {
Unit = {
Description = "Update betterlockscreen image";
After = [ "graphical-session.target" ];
};
Service = {
Type = "oneshot";
Environment = "PATH=/run/current-system/sw/bin";
ExecStart = "${package}/bin/betterlockscreen --display 1 --fx '' --update ${config.home.homeDirectory}/pictures/wallpapers";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}

View file

@ -4,6 +4,5 @@
imports = [
./xmonad.nix
./polybar.nix
./betterlockscreen.nix
];
}

View file

@ -348,7 +348,7 @@ myKeys conf =
system_kb =
[ -- Lock screen
("M4-l", spawn "betterlockscreen --lock --display 1 -- -e"),
("M4-l", spawn "dm-tool lock"),
-- Quit xmonad
("M4-S-q", io exitSuccess)
]