installs a small i3 desktop for old pcs such as the thinkcentre m58, with configs for i3, neovim, alacritty, thunar, picom and gtk.
| package managers | detects apt, dnf, pacman or zypper before installing anything. |
| install | bash install.sh runs as a normal user. package commands escalate with sudo, or doas when sudo is absent. |
| configs | files land in $XDG_CONFIG_HOME, with a timestamped backup of each file replaced. |
| rerun | the script checks installed packages and can run again after a config change. |
git clone https://github.com/SOSMLG/ThisForOldPc.git
cd ThisForOldPc
bash install.shRun as a normal user, not root. The installer escalates individual package
commands with sudo, or doas when sudo is absent. Set TFOP_PRIV=doas to force
one helper. Log out after the run and choose the i3 session.
- Detects
apt,dnf,pacmanorzypper, then installs Xorg, i3, i3status, i3lock, dmenu, xterm, Thunar, Alacritty, Firefox, feh and Neovim. - Installs picom only when
lspcireports a usable GPU. - Attempts zram-generator and TLP when the release provides them.
- Copies configs into
$XDG_CONFIG_HOME(default~/.config), keeping a timestamped backup of each file it replaces.
The script is idempotent: it checks installed packages before calling the package manager and can be run again after a config change.
The installer has no positional arguments. It honors these environment variables:
| Variable | Meaning |
|---|---|
TFOP_PRIV |
Force sudo or doas as the privilege helper. |
TFOP_SKIP_APT_UPDATE=1 |
Skip apt-get update on apt systems. |
XDG_CONFIG_HOME |
Override the config destination. |
bash verify.shThe verifier is read-only. It checks the installer, the deployed configs and
the main executables. It prints PASS, WARN or FAIL and exits nonzero only
when a required repo file is missing.
install.sh main installer
verify.sh read-only end-state verifier
configs/i3/config i3 window manager config
configs/nvim/init.lua Neovim config
configs/alacritty/ Alacritty terminal config
configs/thunar/uca.xml Thunar custom actions
configs/picom/picom.conf optional compositor config
configs/gtk-3.0/settings.ini GTK dark settings
AGENTS.md project conventions
MIT. See LICENSE.
- DebianSway: Sway on Debian/Devuan.
- DevuanSway: Sway on Devuan with OpenRC.
- DevuanDwm: minimal dwm desktop for Devuan.
- Devuan-Kde: KDE Plasma on Devuan.
- XfceMlg: XFCE desktop toolkit.
This repo follows the SOSMLG standard: contributing, security, changelog. Local workflow: English guide / Arabic guide. Visual standard: theme / الطابع البصري.