auto start sway and lock screen

This commit is contained in:
2026-09-23 03:47:14 +05:00
parent 5306e9f1bd
commit b64ac31415
2 changed files with 13 additions and 10 deletions
+3
View File
@@ -115,6 +115,9 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
# lock screen on sway startup
exec swaylock -e -c 000000
exec {
waybar
kanshi
+10 -10
View File
@@ -272,18 +272,18 @@ pulse.enable = true;
};
services.displayManager.ly = {
# auto login on boot up into sway, sway is configured to start sway lock, so the swaylock password is the login
services.greetd = {
enable = true;
settings = {
# auto_login_user = "shihaam";
# auto_login_session = "sway";
# auto_login_service = "ly-autologin";
animation = "matrix";
bigclock = "en";
asterisk = null;
battery_id = "BAT0";
brightness_up_cmd = "${pkgs.brightnessctl}/bin/brightnessctl -q -n s +10%";
brightness_down_cmd = "${pkgs.brightnessctl}/bin/brightnessctl -q -n s 10%-";
initial_session = {
command = "sway";
user = "shihaam";
};
default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --asterisks --cmd sway";
user = "greeter";
};
};
};
#boot.kernelModules = [ "i2c-dev" ];