From b0acff82978542e612ea291fba04aa7e82c77793 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Tue, 30 Apr 2024 08:00:37 -0700 Subject: [PATCH] add defult tui and gui, allow VTTY for chvt with default of 2 --- misc/ui | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/ui b/misc/ui index 556676a..8985b39 100644 --- a/misc/ui +++ b/misc/ui @@ -9,7 +9,15 @@ tui () { sudo systemctl stop nxserver sudo systemctl isolate multi-user.target sleep 3 - sudo chvt 2 + sudo chvt ${VTTY:-2} } - +dtui () { + sudo systemctl disable lightdm + sudo systemctl set-default multi-user.target +} + +dgui () { + sudo systemctl enable lightdm + sudo systemctl set-default graphical.target +}