home/wm: use db-tool instead of betterlockscreen
This commit is contained in:
parent
d497ae2932
commit
6cdbdeff1a
4 changed files with 1 additions and 48 deletions
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,6 +4,5 @@
|
|||
imports = [
|
||||
./xmonad.nix
|
||||
./polybar.nix
|
||||
./betterlockscreen.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
]
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue