#!/bin/sh # Roid post-installation steps for GUI desktop environment # !!!under construction!!! # 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 echo 'Installing st...' git clone https://github.com/veltza/st-sx.git cd st-sx sed -i 's/Liberation Mono:pixelsize=12/Fira Code:size=14/g' config.def.h sed -i 's|/bin/sh|/bin/bash|g' config.def.h sed -i 's/st-256color/xterm-256color/g' config.def.h sed -i 's/alpha = 0.8;/alpha = 0.9;/g' config.def.h sed -i 's/ligatures = 0;/ligatures = 1;/g' config.def.h make sudo make install cd .. rm -rf st-sx echo 'Preparing i3 configuration...' mkdir -p .config/i3 cat > .config/i3/status_wrapper.sh <<'EOF' #!/bin/bash i3status | while : do read line LAYOUT=$(xkb-switch -p | cut -f 1 -d '(') echo "${line/[/$LAYOUT}" || exit 1 done EOF cp $TERMUX_HOME/roid/i3config .config/i3/config cp $TERMUX_HOME/roid/i3autostart .config/i3/autostart cp $TERMUX_HOME/roid/wallpaper.png .config/i3/wallpaper.png chmod +x .config/i3/autostart cp $TERMUX_HOME/roid/i3status.conf /etc/i3status.conf echo 'Preparing Rofi configuration...' mkdir -p .config/rofi cat > .config/rofi/config.rasi < .Xresources <