Remove screen locker
This commit is contained in:
parent
a32fcc6e6a
commit
4c0a20efd0
@ -6,32 +6,6 @@ let
|
|||||||
cfg = config.programs.xmonad;
|
cfg = config.programs.xmonad;
|
||||||
|
|
||||||
xmonadConfig = with pkgs; callPackage ./buildXmonad.nix {inherit (pkgs.haskellPackages) xmonad-masser; } cfg.dhallConfigPath cfg.packages;
|
xmonadConfig = with pkgs; callPackage ./buildXmonad.nix {inherit (pkgs.haskellPackages) xmonad-masser; } cfg.dhallConfigPath cfg.packages;
|
||||||
gifs = pkgs.callPackage ./gifs.nix {};
|
|
||||||
saver_mpv = pkgs.writeScript "saver_mpv" ''
|
|
||||||
#!${pkgs.bash}/bin/bash
|
|
||||||
PATH=${makeBinPath [pkgs.mpv pkgs.coreutils pkgs.findutils]}:$PATH
|
|
||||||
video=`find ${gifs} -type f | sort -R | head -n 1`
|
|
||||||
mpv \
|
|
||||||
--no-input-terminal \
|
|
||||||
--really-quiet \
|
|
||||||
--scale=oversample \
|
|
||||||
--loop \
|
|
||||||
--no-stop-screensaver \
|
|
||||||
--wid="''${XSCREENSAVER_WINDOW}" \
|
|
||||||
--no-audio "$video" &
|
|
||||||
exec ${pkgs.xsecurelock}/libexec/xsecurelock/saver_blank
|
|
||||||
'';
|
|
||||||
lock = pkgs.writeScript "lock.sh" ''
|
|
||||||
#!${pkgs.bash}/bin/bash
|
|
||||||
PATH=${makeBinPath [pkgs.gnupg pkgs.coreutils pkgs.findutils]}:$PATH
|
|
||||||
|
|
||||||
gpg-connect-agent reloadagent /bye
|
|
||||||
|
|
||||||
|
|
||||||
export XSECURELOCK_SAVER=${saver_mpv}
|
|
||||||
export XSECURELOCK_PASSWORD_PROMPT="emoticon"
|
|
||||||
${pkgs.xsecurelock}/bin/xsecurelock
|
|
||||||
'';
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
@ -61,10 +35,6 @@ in {
|
|||||||
xcalib
|
xcalib
|
||||||
i3lock
|
i3lock
|
||||||
];
|
];
|
||||||
services.screen-locker = {
|
|
||||||
enable = true;
|
|
||||||
lockCmd = "${lock}";
|
|
||||||
};
|
|
||||||
xsession = {
|
xsession = {
|
||||||
enable = true;
|
enable = true;
|
||||||
windowManager.xmonad = {
|
windowManager.xmonad = {
|
||||||
|
Loading…
Reference in New Issue
Block a user