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
|
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>
|
||||||
|
@ -1111,3 +1116,17 @@ GPG:
|
||||||
|
|
||||||
Windows use realtime clock as UTC:
|
Windows use realtime clock as UTC:
|
||||||
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal = QWORD 0x01
|
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