Misc tips (sway keyboard, old bluetooth tools, deb packages)
This commit is contained in:
parent
341e713f8a
commit
66114985a0
1 changed files with 20 additions and 1 deletions
21
how_to
21
how_to
|
@ -31,6 +31,8 @@ Usefull packages :
|
|||
lnav
|
||||
Backlight management:
|
||||
light # http://haikarainen.github.io/light/
|
||||
IRC:
|
||||
catgirl # https://git.causal.agency/catgirl
|
||||
|
||||
System setup:
|
||||
display/drivers:
|
||||
|
@ -459,6 +461,8 @@ Borg backup:
|
|||
|
||||
Serial terminal
|
||||
st -l /dev/ttyUSB0 <baud>
|
||||
# Or
|
||||
minicom -D /dev/ttyUSB0 -b <baud>
|
||||
|
||||
Wifi AP:
|
||||
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:
|
||||
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 -mmcu=atmega328p <name>.o -o <name>
|
||||
|
@ -1111,3 +1116,17 @@ GPG:
|
|||
|
||||
Windows use realtime clock as UTC:
|
||||
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal = QWORD 0x01
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue