diff options
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r-- | accounts/gkleen@sif/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 153b5884..708ed5de 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
@@ -231,6 +231,15 @@ in { | |||
231 | enable = true; | 231 | enable = true; |
232 | preset = "LoudnessEqualizer"; | 232 | preset = "LoudnessEqualizer"; |
233 | }; | 233 | }; |
234 | |||
235 | screen-locker = { | ||
236 | enable = true; | ||
237 | lockCommand = pkgs.writeShellScript "lock" '' | ||
238 | ${pkgs.playerctl}/bin/playerctl -a pause | ||
239 | exec ${pkgs.xsecurelock}/bin/xsecurelock | ||
240 | ''; | ||
241 | xss-lock.extraOptions = ["--tranfer-sleep-lock"]; | ||
242 | }; | ||
234 | }; | 243 | }; |
235 | 244 | ||
236 | gtk = { | 245 | gtk = { |
@@ -256,18 +265,10 @@ in { | |||
256 | 265 | ||
257 | windowManager.command = "${pkgs.coreutils}/bin/env -u SHLVL -- ${xmonad}/bin/xmonad"; | 266 | windowManager.command = "${pkgs.coreutils}/bin/env -u SHLVL -- ${xmonad}/bin/xmonad"; |
258 | 267 | ||
259 | initExtra = let | 268 | initExtra = '' |
260 | lockScript = pkgs.writeScript "lock" '' | 269 | ${pkgs.xorg.xinput}/bin/xinput disable 'Synaptics TM3512-010' |
261 | #!${pkgs.stdenv.shell} | 270 | ${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keysym Caps_Lock = Multi_key' |
262 | ${pkgs.playerctl}/bin/playerctl -a pause | 271 | ''; |
263 | exec ${pkgs.xsecurelock}/bin/xsecurelock | ||
264 | ''; | ||
265 | in '' | ||
266 | ${pkgs.coreutils}/bin/env XSECURELOCK_WANT_FIRST_KEYPRESS=1 XSECURELOCK_DIM_ALPHA=1 ${pkgs.xss-lock}/bin/xss-lock -l -n ${pkgs.xsecurelock}/libexec/xsecurelock/dimmer -- ${lockScript} & | ||
267 | ${pkgs.xorg.xinput}/bin/xinput disable 'Synaptics TM3512-010' | ||
268 | ${pkgs.xorg.xset}/bin/xset s 590 10 | ||
269 | ${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keysym Caps_Lock = Multi_key' | ||
270 | ''; | ||
271 | 272 | ||
272 | pointerCursor = { | 273 | pointerCursor = { |
273 | package = pkgs.vanilla-dmz; | 274 | package = pkgs.vanilla-dmz; |