diff --git a/home/modules/window_manager/betterlockscreen.nix b/home/modules/window_manager/betterlockscreen.nix deleted file mode 100644 index f4c597f..0000000 --- a/home/modules/window_manager/betterlockscreen.nix +++ /dev/null @@ -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" ]; - }; - }; -} diff --git a/home/modules/window_manager/default.nix b/home/modules/window_manager/default.nix index 59cf02f..7a6437a 100644 --- a/home/modules/window_manager/default.nix +++ b/home/modules/window_manager/default.nix @@ -4,6 +4,5 @@ imports = [ ./xmonad.nix ./polybar.nix - ./betterlockscreen.nix ]; } diff --git a/home/modules/window_manager/xmonad_config.hs b/home/modules/window_manager/xmonad_config.hs index 550cb5b..e5d4207 100644 --- a/home/modules/window_manager/xmonad_config.hs +++ b/home/modules/window_manager/xmonad_config.hs @@ -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) ] diff --git a/nixos/hosts/home/xmonad_projects.secret.nix b/nixos/hosts/home/xmonad_projects.secret.nix index 3dd3137..da2efea 100644 Binary files a/nixos/hosts/home/xmonad_projects.secret.nix and b/nixos/hosts/home/xmonad_projects.secret.nix differ