[Greetd] Add autologin
This commit is contained in:
		
							
								
								
									
										7
									
								
								setup
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								setup
									
									
									
									
									
								
							| @@ -96,7 +96,12 @@ if [[ "$restart" == "y" ]]; then | |||||||
|     => Installing System Configs |     => Installing System Configs | ||||||
| " | " | ||||||
|     sudo cp ./system/environment /etc/environment |     sudo cp ./system/environment /etc/environment | ||||||
|     sudo cp -r ./system/greetd/* /etc/greetd/ |      | ||||||
|  |     if [[ "$platform" == "d" ]]; then | ||||||
|  |         sudo cp -r ./system/greetd/config.toml /etc/greetd/ | ||||||
|  |     else  | ||||||
|  |         sudo cp -r ./system/greetd/config-autologin.toml /etc/greetd/config.toml | ||||||
|  |     fi | ||||||
|     hyprctl reload |     hyprctl reload | ||||||
|  |  | ||||||
|     ./scripts/restart-bar |     ./scripts/restart-bar | ||||||
|   | |||||||
							
								
								
									
										18
									
								
								system/greetd/config-autologin.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								system/greetd/config-autologin.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | [terminal] | ||||||
|  | # The VT to run the greeter on. Can be "next", "current" or a number | ||||||
|  | # designating the VT. | ||||||
|  | vt = 1 | ||||||
|  |  | ||||||
|  | # The default session, also known as the greeter. | ||||||
|  | [default_session] | ||||||
|  | command = "tuigreet --cmd Hyprland --time --remember --remember-user-session --asterisks --user-menu --sessions /usr/share/wayland-sessions" | ||||||
|  |  | ||||||
|  | # The user to run the command as. The privileges this user must have depends | ||||||
|  | # on the greeter. A graphical greeter may for example require the user to be | ||||||
|  | # in the `video` group. | ||||||
|  | user = "greeter" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | [initial_session] | ||||||
|  | command = "Hyprland" | ||||||
|  | user = "janis" | ||||||
		Reference in New Issue
	
	Block a user