home: show lock info only on the main display

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-29 22:52:03 +03:00
parent 8377423ec4
commit 624ce31ae7
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.betterlockscreen = { services.betterlockscreen = {
enable = true; enable = true;
arguments = [ "--" "-e" ]; arguments = [ "--display 1" "--" "-e" ];
inactiveInterval = 15; inactiveInterval = 15;
}; };
@ -49,7 +49,7 @@ in
Service = { Service = {
Type = "oneshot"; Type = "oneshot";
Environment = "PATH=/run/current-system/sw/bin"; Environment = "PATH=/run/current-system/sw/bin";
ExecStart = "${package}/bin/betterlockscreen --update ${config.home.homeDirectory}/pictures/wallpapers"; ExecStart = "${package}/bin/betterlockscreen --display 1 --update ${config.home.homeDirectory}/pictures/wallpapers";
}; };
Install = { Install = {

View file

@ -290,7 +290,7 @@ myKeys conf = mkKeymap conf $
-- Lock screen -- Lock screen
, ("M4-l", spawn "betterlockscreen --lock -- -e") , ("M4-l", spawn "betterlockscreen --lock --display 1 -- -e")
-- Change volume -- Change volume
, ("<XF86AudioMute>", spawn "amixer -q sset Master toggle") , ("<XF86AudioMute>", spawn "amixer -q sset Master toggle")