feat(desktop): Add "screen-lock with wallpapers" shell script
This commit is contained in:
parent
6b40b8af85
commit
37c182cebb
1 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let emacs = import ./emacs.nix { inherit pkgs; };
|
let emacs = import ./emacs.nix { inherit pkgs; };
|
||||||
|
screenLock = pkgs.writeShellScriptBin "screen-lock" ''
|
||||||
|
find ${pkgs.wallpapers} -name "*.png" | shuf -n1 | xargs i3lock -f -t -i
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
# Configure basic X-server stuff:
|
# Configure basic X-server stuff:
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
@ -14,6 +17,8 @@ in {
|
||||||
displayManager.sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +SI:localuser:$USER";
|
displayManager.sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +SI:localuser:$USER";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Add a shell script with random screen lock wallpaper selection
|
||||||
|
environment.systemPackages = [ screenLock ];
|
||||||
|
|
||||||
# Apparently when you have house guests they complain about your screen tearing!
|
# Apparently when you have house guests they complain about your screen tearing!
|
||||||
services.compton.enable = true;
|
services.compton.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue