Misc tips (sway keyboard, old bluetooth tools, deb packages)

This commit is contained in:
lhark 2021-04-08 23:43:10 +02:00
parent 56735cbacc
commit 4564239dc3

21
how_to
View file

@ -31,6 +31,8 @@ Usefull packages :
lnav lnav
Backlight management: Backlight management:
light # http://haikarainen.github.io/light/ light # http://haikarainen.github.io/light/
IRC:
catgirl # https://git.causal.agency/catgirl
System setup: System setup:
display/drivers: display/drivers:
@ -459,6 +461,8 @@ Borg backup:
Serial terminal Serial terminal
st -l /dev/ttyUSB0 <baud> st -l /dev/ttyUSB0 <baud>
# Or
minicom -D /dev/ttyUSB0 -b <baud>
Wifi AP: Wifi AP:
https://wiki.archlinux.org/index.php/Software_access_point https://wiki.archlinux.org/index.php/Software_access_point
@ -627,7 +631,8 @@ Install 64 bits kernel on 32 bits system (and 64 bits hardware) (bad idea)
Compile C for ATmega328p/Arduino: Compile C for ATmega328p/Arduino:
sudo xbps-install -S avr-gcc avr-libc avrdude sudo xbps-install -S avr-gcc avr-libc avrdude
sudo usermod -aG dialout <user> # Or /dev/ttyACM0 group sudo pacman -S avr-libc avrdude
sudo usermod -aG dialout <user> # Or /dev/ttyACM0 group (might be uucp)
avr-gcc -g -Os -DF_CPU=16000000UL -mmcu=atmega328p -c -o <name>.o <name>.c avr-gcc -g -Os -DF_CPU=16000000UL -mmcu=atmega328p -c -o <name>.o <name>.c
avr-gcc -mmcu=atmega328p <name>.o -o <name> avr-gcc -mmcu=atmega328p <name>.o -o <name>
@ -1108,3 +1113,17 @@ GPG:
> expire > expire
... ...
> save > save
sway / wayland:
Get current active (first) keyboard layout name:
# https://queer.hacktivis.me/objects/73823f56-1954-44fe-b046-39e726cca67b
swaymsg -t get_inputs | jq 'map(select(.type == "keyboard"))[0].xkb_active_layout_name'
Bluetooth:
Get access to deprecated gatttool and hcitool:
trizen -S bluez-utils-compat
Add `--disable-systemd` to ./configure command on Artix
Extract debian .deb package:
ar x <package>.deb
tar xf data.tar.xz