Copy of github.com/askrobots/network-computer (MIT): a desk you reach from anything. The original lives on GitHub.

2 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/demo/network-computer.git
HTTPS
https://gitstable.com/git/demo/network-computer.git
SSH
ssh://git@gitstable.com:2222/demo/network-computer.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

GitStable demo README: say this is a copy and where the original is cde82c2 14 hours, 3 minutes ago History
nc-keyboard · 884 bytes · 17 lines
1#!/bin/sh
2# Set the desk's keyboard layout, record it on the desk, and apply it now.
3# nc-keyboard us US QWERTY
4# nc-keyboard us:dvorak US Dvorak
5# nc-keyboard gb | de | fr | us:colemak ...
6set -e
7K=${1:?usage: nc-keyboard <layout>[:<variant>] e.g. us:dvorak}
8echo "$K" | grep -Eq '^[a-z]{2,3}(:[a-z0-9_-]{1,32})?$' || { echo "nc-keyboard: bad layout '$K'"; exit 2; }
9L=${K%%:*}; V=${K#*:}; [ "$V" = "$K" ] && V=""
10[ -f "/usr/share/X11/xkb/symbols/$L" ] || { echo "nc-keyboard: no layout '$L'"; exit 2; }
11if [ -n "$V" ] && ! grep -q "xkb_symbols \"$V\"" "/usr/share/X11/xkb/symbols/$L"; then
12 echo "nc-keyboard: layout '$L' has no variant '$V'"; exit 2
13fi
14if grep -q '^NC_KEYBOARD=' /etc/nc/env; then sed -i --follow-symlinks "s|^NC_KEYBOARD=.*|NC_KEYBOARD=$K|" /etc/nc/env
15else echo "NC_KEYBOARD=$K" >> /etc/nc/env; fi
16nc-input-hook
17echo "keyboard layout $K"