Add i3lock instead of lightdm
This commit is contained in:
parent
8819d2538c
commit
7c8ff79a11
2 changed files with 6 additions and 2 deletions
|
@ -16,7 +16,10 @@
|
||||||
xkbOptions = "caps:escape";
|
xkbOptions = "caps:escape";
|
||||||
displayManager = {
|
displayManager = {
|
||||||
lightdm.enable = true;
|
lightdm.enable = true;
|
||||||
#sddm.enable = true;
|
autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "elnu";
|
||||||
|
};
|
||||||
defaultSession = "none+i3";
|
defaultSession = "none+i3";
|
||||||
};
|
};
|
||||||
windowManager.i3 = {
|
windowManager.i3 = {
|
||||||
|
|
3
i3.nix
3
i3.nix
|
@ -5,6 +5,7 @@ let
|
||||||
in {
|
in {
|
||||||
# Dependencies
|
# Dependencies
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
i3lock # lockscreen
|
||||||
playerctl # pactl comes with PulseAudio
|
playerctl # pactl comes with PulseAudio
|
||||||
scrot # Screnshot keybindings
|
scrot # Screnshot keybindings
|
||||||
xclip # Copying screenshots to clipboard
|
xclip # Copying screenshots to clipboard
|
||||||
|
@ -22,7 +23,7 @@ in {
|
||||||
};
|
};
|
||||||
startup = [
|
startup = [
|
||||||
{
|
{
|
||||||
command = "systemctl --user restart polybar";
|
command = "(systemctl --user restart polybar &) && i3lock -i `readlink -f ~/.background-image`";
|
||||||
always = true;
|
always = true;
|
||||||
notification = false;
|
notification = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue