Roid is now purely desktop-oriented
This commit is contained in:
+85
@@ -0,0 +1,85 @@
|
||||
#!/bin/sh
|
||||
# Roid post-installation steps
|
||||
# !!!under construction!!!
|
||||
|
||||
# system DPI
|
||||
SYSDPI=216
|
||||
|
||||
cat > /root/.bash_profile <<'EOF'
|
||||
export LC_ALL=C.UTF-8
|
||||
export LANG=C.UTF-8
|
||||
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
|
||||
[[ -f /root/.bashrc ]] && [[ $- == *i* ]] && . /root/.bashrc
|
||||
EOF
|
||||
|
||||
cat > /root/.bashrc <<'EOF'
|
||||
PS1='\W # '
|
||||
. /root/.roidrc
|
||||
EOF
|
||||
|
||||
cp $TERMUX_HOME/roid/.roidrc /root/.roidrc
|
||||
|
||||
echo 'Janet module setup...'
|
||||
jpm install spork jurl sqlite3
|
||||
|
||||
cd /root
|
||||
|
||||
# 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 <<EOF
|
||||
@theme "/usr/share/rofi/themes/gruvbox-dark-hard.rasi"
|
||||
configuration {
|
||||
dpi: ${SYSDPI};
|
||||
}
|
||||
EOF
|
||||
|
||||
echo 'Preparing Dunst configuration...'
|
||||
mkdir -p .config/dunst
|
||||
cp $TERMUX_HOME/roid/dunstrc .config/dunst/
|
||||
|
||||
echo 'Preparing Xresources...'
|
||||
cat > .Xresources <<EOF
|
||||
Xft.dpi: $SYSDPI
|
||||
*.dpi: $SYSDPI
|
||||
Xcursor.theme: Vanilla-DMZ-AA
|
||||
Xcursor.size: 48
|
||||
St.font: Fira Code:size=16:antialias=true:autohint=true
|
||||
GDK_SCALE: 2
|
||||
GDK_DPI_SCALE: 2
|
||||
EOF
|
||||
Reference in New Issue
Block a user