Better GUI adjustments

This commit is contained in:
Luxferre
2026-06-02 19:39:45 +03:00
parent 9022a71899
commit e94b78879b
5 changed files with 17 additions and 24 deletions
+1
View File
@@ -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.
+2 -2
View File
@@ -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
+1 -13
View File
@@ -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
+2 -2
View File
@@ -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"
+11 -7
View File
@@ -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 <<EOF
Xft.dpi: $SYSDPI
*.dpi: 96
*.dpi: $SYSDPI
Xcursor.theme: Vanilla-DMZ-AA
Xcursor.size: 32
St.font: Fira Code:size=14:antialias=true:autohint=true
GDK_SCALE: 1
GDK_DPI_SCALE: 1
Xcursor.size: 48
St.font: Fira Code:size=16:antialias=true:autohint=true
GDK_SCALE: 2
GDK_DPI_SCALE: 2
EOF