From e94b78879b9ac2e3cb036524b496680f68f09a24 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Tue, 2 Jun 2026 19:39:45 +0300 Subject: [PATCH] Better GUI adjustments --- README.md | 1 + i3autostart | 4 ++-- i3config | 14 +------------- install | 4 ++-- postinstall-gui | 18 +++++++++++------- 5 files changed, 17 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 3c12512..8f8691e 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Alternatively, if you don't want to enter the shell but just run a command insid 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. Having at least an external keyboard connected to your device is highly recommended for better desktop experience. diff --git a/i3autostart b/i3autostart index 5df920f..20100fb 100755 --- a/i3autostart +++ b/i3autostart @@ -1,7 +1,7 @@ #!/bin/sh +xrdb -merge ~/.Xresources setxkbmap -option "grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp" -layout "us,ua,ru" -variant "altgr-weur,phonetic,phonetic_mac" -picom --backend xrender -b -feh --bg-fill ~/.config/i3/wallpaper.png & +feh --bg-center ~/.config/i3/wallpaper.png & dunst & # fcitx5 -d sleep 1 diff --git a/i3config b/i3config index 2a00f25..966dc43 100644 --- a/i3config +++ b/i3config @@ -6,18 +6,7 @@ set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:Fira Code 12 - -# Start XDG autostart .desktop files using dex. See also -# https://wiki.archlinux.org/index.php/XDG_Autostart -exec --no-startup-id dex --autostart --environment i3 & - -# The combination of xss-lock, nm-applet and pactl is a popular choice, so -# they are included here as an example. Modify as you see fit. - -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -i $HOME/.config/i3/wallpaper.png & +font pango:Fira Code 13 # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status @@ -167,7 +156,6 @@ bindsym $mod+r mode "resize" bar { status_command bash ~/.config/i3/status_wrapper.sh position top - output $primary } for_window [class="^.*"] border pixel 2 diff --git a/install b/install index 30ff243..f8cd0c8 100644 --- a/install +++ b/install @@ -12,8 +12,8 @@ BASE_PKGS='base-container-full void-repo-nonfree base-devel curl git nano mc pul EXTRA_PKGS='libcurl-devel dtach fzf tcl tcllib tcltls janet jpm expect zip p7zip unrar rlwrap jq yq miller htop the_silver_searcher gnupg pass progress discount aria2 rsync aerc netcat socat websocat nmap lynx ImageMagick mpg123 mpv sox ffmpeg dumbplay yt-dlp' # GUI packages -X11_PKGS='xcursor-themes xcursor-vanilla-dmz-aa setxkbmap xkb-switch xdg-utils xdg-user-dirs xsel xss-lock xdotool xrandr xmodmap harfbuzz-devel imlib2-devel gd-devel openssl-devel freetype-devel libxkbcommon-devel xcb-util-keysyms-devel' -X_APPS='dbus mesa mesa-dri mesa-demos mesa-vaapi glxinfo dex i3 i3lock i3status i3cat i3wsr rofi autotiling scrot dunst picom feh volumeicon' +X11_PKGS='xcursor-themes xcursor-vanilla-dmz-aa setxkbmap xkb-switch xdg-utils xdg-user-dirs xrdb xsel xdotool xrandr xmodmap harfbuzz-devel imlib2-devel gd-devel openssl-devel freetype-devel libxkbcommon-devel xcb-util-keysyms-devel libXft-devel' +X_APPS='dbus mesa mesa-dri mesa-demos mesa-vaapi glxinfo i3 i3lock i3status i3cat i3wsr rofi autotiling scrot dunst feh volumeicon' FONT_PKGS='noto-fonts-ttf noto-fonts-ttf-extra noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf-variable liberation-fonts-ttf font-firacode fonts-roboto-ttf' GUI_PKGS="$X11_PKGS $FONT_PKGS $X_APPS" diff --git a/postinstall-gui b/postinstall-gui index 73aa641..56b374c 100644 --- a/postinstall-gui +++ b/postinstall-gui @@ -2,14 +2,18 @@ # Roid post-installation steps for GUI desktop environment # !!!under construction!!! -# system DPI (TBD how to handle it more correctly) -SYSDPI=144 +# system DPI +SYSDPI=216 cd /root cat >> .bash_profile <<'EOF' export DISPLAY=:0 export GALLIUM_DRIVER=virpipe +export GDK_SCALE=1 +export GTK_THEME=Adwaita:dark +export QT_AUTO_SCREEN_SCALE_FACTOR=1 +export QT_ENABLE_HIGHDPI_SCALING=1 EOF # install st @@ -58,10 +62,10 @@ cp $TERMUX_HOME/roid/dunstrc .config/dunst/ echo 'Preparing Xresources...' cat > .Xresources <