guides:keyboard
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:keyboard [2023/11/14 23:43] – admin | guides:keyboard [2024/01/31 18:06] (current) – osnr | ||
---|---|---|---|
Line 11: | Line 11: | ||
---- | ---- | ||
- | In a virtual program paste this program: | + | Go to the Keyboards page on your Folk's web server: |
- | < | + | http:// |
- | proc udevadmProperties {device} { | + | |
- | return [exec udevadm info --query=property --name=$device] | + | |
- | } | + | |
- | proc isKeyboard | + | {{: |
- | set properties [udevadmProperties $device] | + | |
- | if {$properties eq "" | + | |
- | return false | + | |
- | } | + | |
- | # Check if device is a keyboard and not a mouse | + | |
- | set isKeyboard [string match *ID_INPUT_KEYBOARD=1* $properties] | + | |
- | set isMouse [string match *ID_INPUT_MOUSE=1* $properties] | + | |
- | return [expr {$isKeyboard && !$isMouse}] | + | |
- | } | + | |
- | set allDevices [glob -nocomplain / | + | ---- |
- | set keyboards [list] | + | |
- | + | ||
- | foreach device $allDevices { | + | |
- | set keyboardCheck [isKeyboard $device] | + | |
- | if {$keyboardCheck} { | + | |
- | lappend keyboards $device | + | |
- | } | + | |
- | } | + | |
- | + | ||
- | Wish $this is outlined white | + | |
- | foreach kb $keyboards { | + | |
- | Wish $this is labelled " | + | |
- | puts "---\nKeyboard claim: Claim \$this is a keyboard with path $kb\n---\n" | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | When you hit save this will display the connected keyboard' | + | |
- | + | ||
- | {{guides: | + | |
- | and in the journal ('' | + | :!: **If no keyboards appear |
- | < | + | This is known to happen |
- | Nov 13 20:18:45 folk0 make[39865]: | + | |
- | Nov 13 20:18:45 folk0 make[39865]: | + | |
- | Nov 13 20:18:45 folk0 make[39865]: --- | + | |
- | </ | + | |
---- | ---- | ||
- | Put this claim into a new virtual program and hit print. Tape this to the bottom of your keyboard and you now have a keyboard | + | With the page open on your computer, type some stuff on your keyboard and see which keyboard |
- | {{: | + | If you can, put card stock or thick paper into your printer (so the keyboard program will resist crumpling over time). Click Print for that keyboard. |
+ | Tape the printed program to the bottom of your keyboard and you now have a keyboard (which should have an attached editor automatically): | ||
+ | {{guides: |
guides/keyboard.1700005437.txt.gz · Last modified: 2023/11/14 23:43 by admin