From 624ce31ae78091ba2aac6b7869075847b696fe3d Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 29 Aug 2022 22:52:03 +0300 Subject: [PATCH] home: show lock info only on the main display --- home/ui/betterlockscreen.nix | 4 ++-- home/ui/xmonad/config.hs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/ui/betterlockscreen.nix b/home/ui/betterlockscreen.nix index 58488ac..ccf891e 100644 --- a/home/ui/betterlockscreen.nix +++ b/home/ui/betterlockscreen.nix @@ -20,7 +20,7 @@ in config = mkIf cfg.enable { services.betterlockscreen = { enable = true; - arguments = [ "--" "-e" ]; + arguments = [ "--display 1" "--" "-e" ]; inactiveInterval = 15; }; @@ -49,7 +49,7 @@ in Service = { Type = "oneshot"; 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 = { diff --git a/home/ui/xmonad/config.hs b/home/ui/xmonad/config.hs index 1deff35..ecaef36 100644 --- a/home/ui/xmonad/config.hs +++ b/home/ui/xmonad/config.hs @@ -290,7 +290,7 @@ myKeys conf = mkKeymap conf $ -- Lock screen - , ("M4-l", spawn "betterlockscreen --lock -- -e") + , ("M4-l", spawn "betterlockscreen --lock --display 1 -- -e") -- Change volume , ("", spawn "amixer -q sset Master toggle")