Login scripts

Stores WM to last_login_gui file to allow for auto-login to the last
used GUI

Removes old log file, executes GUI with new one
This commit is contained in:
John Mertz 2020-10-10 05:06:58 -04:00
parent b99662e7c1
commit ed8c247372
2 changed files with 10 additions and 0 deletions

5
i3/starti3.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
rm /home/jpm/.i3log
echo i3 > /home/jpm/.config/last_login_gui
exec startx 2> /home/jpm/.i3log

5
sway/startsway.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
rm /home/jpm/.swaylog
echo sway > /home/jpm/.config/last_login_gui
exec sway 2> /home/jpm/.swaylog