From 5b18c8d7f4f9fd0c5f4122bef7d0a12c5bbf7592 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Sat, 10 Oct 2020 05:06:58 -0400 Subject: [PATCH] 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 --- i3/starti3.sh | 5 +++++ sway/startsway.sh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100755 i3/starti3.sh create mode 100755 sway/startsway.sh diff --git a/i3/starti3.sh b/i3/starti3.sh new file mode 100755 index 0000000..438950d --- /dev/null +++ b/i3/starti3.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +rm /home/jpm/.i3log +echo i3 > /home/jpm/.config/last_login_gui +exec startx 2> /home/jpm/.i3log diff --git a/sway/startsway.sh b/sway/startsway.sh new file mode 100755 index 0000000..e4998f2 --- /dev/null +++ b/sway/startsway.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +rm /home/jpm/.swaylog +echo sway > /home/jpm/.config/last_login_gui +exec sway 2> /home/jpm/.swaylog