summaryrefslogtreecommitdiff
path: root/README
blob: a846be27369923efac3345b11133a6f4a976e752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# configuration
## repo of my configs, fonts, etc

## CUPS
on arch, install cups and cups-pdf, then add manually with the following command

lpadmin -p brother -E -v "ipp://10.100.0.205/ipp/print" -m everywhere -L "Mom's Office"

manual adding is needed as network hostname resolution fails becuase yeah.
If it didnt fail, hardcoding a dynamic IP address like this wouldn't be necessary.

## Webcam / microphone
v4l2 may create multiple nodes in /dev for different formats
one example being mine which puts the H264 stream on /dev/video2

this will set the format for a particular device node:
v4l2-ctl -d /dev/video2 --set-fmt-video=width=1920,height=1080,pixelformat=H264 --set-parm=30

and this will record it with zero latency:
mpv av://v4l2:/dev/video2 --profile=low-latency --untimed

framework laptops: (not sure why, but setting MJPG with v4l2-ctl doesnt make mpv pick 1920x1080 by default...)

mpv --demuxer-lavf-o=video_size=1920x1080,input_format=mjpeg av://v4l2:/dev/video0 --profile=low-latency --untimed

microphone gain is defaults to 100%, which is way too loud. set it to something lower with amixer, provided by alsa-utils:
-> amixer set Capture 40%


## fprintd
firstly, enroll with
 - fprintd-enroll

except dont yet, this rule (/etc/polkit-1/rules.d/49-allow-fprintd.rules) needs to be added:

polkit.addRule(function(action, subject) {
    if (action.id == "net.reactivated.fprint.device.enroll" &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});

(make sure user is in group "wheel")

now enroll (without sudo), then add this line:

auth       sufficient    pam_fprintd.so

to "login" and "sudo" in /etc/pam.d/

## fonts,icons
install noto-fonts,noto-fonts-cjk,adobe-source-han-sans-jp-fonts,adobe-source-han-sans-kr-fonts