add defult tui and gui, allow VTTY for chvt with default of 2

master
David Kebler 2024-04-30 08:00:37 -07:00
parent 99abc67abf
commit b0acff8297
1 changed files with 10 additions and 2 deletions

12
misc/ui
View File

@ -9,7 +9,15 @@ tui () {
sudo systemctl stop nxserver sudo systemctl stop nxserver
sudo systemctl isolate multi-user.target sudo systemctl isolate multi-user.target
sleep 3 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
}