1
0
Fork 0
mirror of git://kentoj.de/d.git synced 2026-05-26 17:27:55 +02:00
Dotfiles for x220
Find a file
kento2 4d1db92944 .
2026-05-16 22:48:30 +02:00
files . 2026-05-16 22:48:30 +02:00
add.sh fix add.sh + add EEXIST-error 2026-03-11 01:21:38 +01:00
clean.sh . 2026-04-02 17:23:50 +02:00
INSTALL . 2026-01-23 22:18:10 +01:00
Makefile . 2025-11-16 22:32:14 +01:00
pkgs.txt clean up 2026-04-27 18:04:20 +02:00
README i hate linux 2026-02-25 20:28:42 +01:00
setup.sh . 2026-03-03 15:53:06 +01:00

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