mirror of
git://kentoj.de/d.git
synced 2026-05-26 17:27:55 +02:00
Dotfiles for x220
| files | ||
| add.sh | ||
| clean.sh | ||
| INSTALL | ||
| Makefile | ||
| pkgs.txt | ||
| README | ||
| setup.sh | ||
SETUP ----- do it in the order: BASICS, (if using laptop), ALSA, POWER MANAGEMENT, SERVICES. Follow the knowledge section in any order. * SETUP ----- $ xbps-install -Su xbps $ xbps-install xtools $ xi git make lr $ xi tlp # if using laptop (for power management) $ git clone git://kentoj.de/d.git ~/dots $ cd ~/dots $ xi $(cat pkgs.txt) $ make $ chsh -s /bin/zsh $ su -c "echo 'permit nopass keepenv :wheel' > /etc/doas.conf" * ALSA ---- $ usermod -aG audio <username> $ # relogin $ mkdir -p /etc/alsa/conf.d $ ln -s /usr/share/alsa.conf.d/50-pipewire.conf . $ ln -s /usr/share/alsa.conf.d/99-pipewire-default.conf * POWER MANAGEMENT ---------------- my /etc/tlp.conf: # Battery charge level below which charging will begin. START_CHARGE_THRESH_BAT0=75 # Battery charge level above which charging will stop. STOP_CHARGE_THRESH_BAT0=80 * SERVICES -------- run the following command to register the services: $ for sv in dbus tlp socklog-unix turnstiled; do doas ln -vs "/etc/sv/$sv" /var/service done it will fail for `tlp` if you skipped the POWER MANAGEMENT section but that's fine. KNOWLEDGE --------- * recommended packages -------------------- - tlp for power management - nsxiv for image viewing - dooble for browser - links for quick html rendering - zathura and zathura-pdf-mupdf as pdf viewer - pcmanfm as a file manager * non-packaged packages --------------------- keep source in ~/opt/<project>. have a makefile with an install and uninstall target in each directory. * autologin voidlinux tty1 to x11 ------------------------------- you can do this if u want: $ cp /etc/sv $ cp -r agetty-tty1 agetty-autologin-tty1 (naming is important) in /etc/sv/agetty-autologin-tty1/conf: GETTY_ARGS="--autologin <username> --noclear" BAUD_RATE=38400 TERM_NAME=linux now enable the service and disable the agetty-tty1 service. * no beep ------- /etc/modprobe.d/no-beep.conf: blacklist pcspkr $ rmmod pcspkr * static ip --------- /etc/rc.local: ip link set dev wlan0 up ip addr add 192.168.178.128/24 dev wlan0 ip route add default via 192.168.178.1 TODO ---- * pass/otp setup * backups * some MUA, mblaze? * rnnoise/noise-suppression * cupload script * set user dirs + delete redundant * platinum9/nineicons for icons