screenlock
This commit is contained in:
parent
41640f72ad
commit
dd57859fc8
4 changed files with 18 additions and 0 deletions
|
|
@ -56,6 +56,7 @@
|
||||||
package = pkgs.i3-gaps;
|
package = pkgs.i3-gaps;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
dmenu
|
dmenu
|
||||||
|
i3lock
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
6
home.nix
6
home.nix
|
|
@ -32,6 +32,8 @@ in
|
||||||
zsh
|
zsh
|
||||||
alacritty
|
alacritty
|
||||||
polybar
|
polybar
|
||||||
|
scrot
|
||||||
|
imagemagick
|
||||||
firefox
|
firefox
|
||||||
tex
|
tex
|
||||||
jetbrains.idea-ultimate
|
jetbrains.idea-ultimate
|
||||||
|
|
@ -43,6 +45,10 @@ in
|
||||||
source = ./programm_configs/slate.rasi;
|
source = ./programm_configs/slate.rasi;
|
||||||
target = ".config/rofi/slate.rasi";
|
target = ".config/rofi/slate.rasi";
|
||||||
};
|
};
|
||||||
|
i3lock = {
|
||||||
|
source = ./programm_configs/lock.sh;
|
||||||
|
target = ".config/i3/lock.sh";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# envars
|
# envars
|
||||||
|
|
|
||||||
8
programm_configs/lock.sh
Normal file
8
programm_configs/lock.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
scrot /tmp/screenshot.png
|
||||||
|
convert /tmp/screenshot.png -blur 0x10 /tmp/screenshotblur.png
|
||||||
|
set -e
|
||||||
|
xset s off dpms 0 10 0
|
||||||
|
i3lock -i /tmp/screenshotblur.png --ignore-empty-password --show-failed-attempts --nofork
|
||||||
|
rm -f /tmp/screenshot.png
|
||||||
|
xset s off -dpms
|
||||||
|
|
@ -28,4 +28,7 @@
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
virtualisation.virtualbox.guest.enable = true;
|
virtualisation.virtualbox.guest.enable = true;
|
||||||
virtualisation.virtualbox.guest.x11 = true;
|
virtualisation.virtualbox.guest.x11 = true;
|
||||||
|
|
||||||
|
# only add this usergroup on oracle VMs
|
||||||
|
users.users.clemens.extraGroups = ["vboxsf"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue