diff --git a/.roidrc b/.roidrc index 7eea388..7b57814 100644 --- a/.roidrc +++ b/.roidrc @@ -50,7 +50,7 @@ alias sysclean='vkpurge rm all && xbps-remove -OOoy' # Roid-specific aliases alias tmhome='cd $TERMUX_HOME' -alias gui='exec termux-x11 :0 +iglx -ac -force-sysvshm -legacy-drawing -xstartup "dbus-launch --exit-with-session i3"' +alias startx='termux-x11 :0 +iglx -ac -force-sysvshm -legacy-drawing -xstartup "dbus-launch --exit-with-session i3"' # OpenSSL-based vault helper ovault() { diff --git a/README.md b/README.md index 2ed818d..57f7da3 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,11 @@ Alternatively, if you don't want to enter the shell but just run a command insid ## Desktop GUI usage (requires Termux-X11) 1. Open Termux-X11 in the background. -2. Switch to Termux (make sure the wakelock is on!) and type `void` to enter the shell. -3. Type `gui` to start the desktop environment. -4. Switch to Termux-X11 to start using the environment. -5. Exit both the desktop and the CLI shell with Mod4+Shift+E. +2. Switch to Termux (make sure the wakelock is on!) and type `voidgui` to enter the shell. +3. Switch to Termux-X11 to start using the environment. +4. Exit both the desktop and the CLI shell with Mod4+Shift+E. + +Alternatively, you can run `startx` (here, it's an alias) from your CLI environment and proceed as usual. Having at least an external keyboard connected to your device is highly recommended for better desktop experience. diff --git a/install b/install index 821bc07..3411e57 100644 --- a/install +++ b/install @@ -33,6 +33,7 @@ if [ "$NOX" = "n" ]; then fi cat >> $HOME/.bashrc <<'EOF' alias void="proot-distro login -P -e TERMUX_HOME=$HOME void-glibc-full" # ROID_INST +alias voidgui="proot-distro login -P -e TERMUX_HOME=$HOME void-glibc-full -- exec termux-x11 :0 +iglx -ac -force-sysvshm -legacy-drawing -xstartup 'dbus-launch --exit-with-session i3'" # ROID_INST alias voidrun='proot-distro run -P void-glibc-full --' # ROID_INST alias roidclean='killall pulseaudio virgl_test_server_android' # ROID_INST EOF