Skip to content

Commit

Permalink
Release-08-03-2023 (#4)
Browse files Browse the repository at this point in the history
* add ironrobin-setup script

* add support for workman keymap

* remove community repo from pacman.conf
  • Loading branch information
theironrobin committed Aug 4, 2023
1 parent d3d146b commit 61ed636
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 3 deletions.
1 change: 1 addition & 0 deletions configs/x13s/airootfs/etc/motd
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Ethernet, WLAN and WWAN interfaces using DHCP should work automatically.
After connecting to the internet, run timedatectl set-ntp true, then the installation guide can be accessed
via the convenience script Installation_guide.

If you want to use the ironrobin-x13s pacman repo, you may run the convenience script ironrobin-setup.
27 changes: 27 additions & 0 deletions configs/x13s/airootfs/usr/local/bin/ironrobin-setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash

echo "Checking for internet connection"
if ! ping -c 1 archlinux.org; then
echo "No internet connection detected. Please connect to the internet and try again."
exit 1
fi

echo "Checking for ironrobin-x13s repository in pacman"
if grep -q "\[ironrobin-x13s\]" /etc/pacman.conf; then
echo "ironrobin-x13s repository already in pacman"
else
echo "Adding ironrobin-x13s repository to pacman"
echo -e "\n[ironrobin-x13s]\nServer = https://github.com/ironrobin/x13s-alarm/releases/download/packages\n" >> /etc/pacman.conf
fi

echo "Checking for ironrobin-x13s gpg keys in pacman"
if pacman-key --list-keys 6ED02751500A833A; then
echo "ironrobin-x13s gpg keys already in pacman"
else
echo "Adding ironrobin-x13s gpg keys to pacman"
pacman-key --recv-keys 6ED02751500A833A --keyserver pgp.mit.edu
pacman-key --lsign-key 6ED02751500A833A
fi

echo "Updating pacman database"
pacman -Sy
9 changes: 9 additions & 0 deletions configs/x13s/airootfs/usr/local/bin/workman
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

echo "Adding workman.map to /etc/vconsole.conf"
echo 'KEYMAP=/usr/local/share/keymaps/i386/workman/workman.map' > /etc/vconsole.conf

echo "Restarting systemd-vconsole-setup.service"
systemctl restart systemd-vconsole-setup.service

echo "Done!"
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# workman.kmap for Linux console.
# https://workmanlayout.org
alt_is_meta
charset "iso-8859-15" # use a ISO-8859-15 font, e.g.: consolechars -f lat9v-14
keymaps 0-12
include "qwerty-layout"
include "linux-with-alt-and-altgr"
strings as usual

keycode 41 = grave asciitilde dead_tilde asciitilde nul
keycode 2 = one exclam exclamdown onesuperior
keycode 3 = two at masculine twosuperior nul
keycode 4 = three numbersign ordfeminine threesuperior Escape
keycode 5 = four dollar cent sterling Control_backslash
keycode 6 = five percent euro yen Control_bracketright # EuroSign yen
keycode 7 = six asciicircum asciitilde asciitilde Control_asciicircum # hstroke Hstroke
keycode 8 = seven ampersand eth ETH Control_underscore
keycode 9 = eight asterisk thorn THORN Delete
keycode 10 = nine parenleft asciitilde asciitilde # leftsinglequotemark leftdoublequotemark
keycode 11 = zero parenright asciitilde asciitilde # rightsinglequotemark rightdoublequotemark
keycode 12 = minus underscore asciitilde asciitilde Control_underscore # endash emdash
keycode 13 = equal plus multiply division

keycode 16 = q Q adiaeresis Adiaeresis Control_q
keycode 17 = d D dead_diaeresis asciitilde Control_d
keycode 18 = r R dead_grave asciitilde Control_r
keycode 19 = w W aring Aring Control_w
keycode 20 = b B asciitilde asciitilde Control_b # dead_breve asciitilde
keycode 21 = j J asciitilde asciitilde Control_j # dstroke Dstroke
keycode 22 = f F atilde Atilde Control_f
keycode 23 = u U uacute Uacute Control_u
keycode 24 = p P oslash Ooblique Control_p
keycode 25 = semicolon colon odiaeresis Odiaeresis
keycode 26 = bracketleft braceleft guillemotleft asciitilde Escape # guillemotleft 0x1002039
keycode 27 = bracketright braceright guillemotright asciitilde Control_bracketright # guillemotright 0x100203a
keycode 43 = backslash bar asciitilde asciitilde Control_backslash

keycode 30 = a A aacute Aacute Control_a
keycode 31 = s S ssharp asciitilde Control_s
keycode 32 = h H asciitilde asciitilde Control_h # dead_caron asciitilde
keycode 33 = t T dead_acute asciitilde Control_t # dead_acute dead_doubleacute
keycode 34 = g G asciitilde asciitilde Control_g # dead_ogonek asciitilde
keycode 35 = y Y udiaeresis Udiaeresis Control_y
keycode 36 = n N ntilde Ntilde Control_n
keycode 37 = e E eacute Eacute Control_e
keycode 38 = o O oacute Oacute Control_o
keycode 39 = i I iacute Iacute Control_i
keycode 40 = apostrophe quotedbl otilde Otilde

keycode 44 = z Z ae AE Control_z
keycode 45 = x X dead_circumflex asciitilde Control_x
keycode 46 = m M asciitilde asciitilde Control_m # dead_macron asciitilde
keycode 47 = c C ccedilla Ccedilla Control_c
keycode 48 = v V oe OE Control_v
keycode 49 = k K asciitilde asciitilde Control_k # dead_abovering asciitilde
keycode 50 = l L asciitilde asciitilde Control_l # lstroke Lstroke
keycode 51 = comma less dead_cedilla asciitilde
keycode 52 = period greater asciitilde asciitilde # dead_abovedot asciitilde
keycode 53 = slash question questiondown asciitilde Delete

keycode 58 = BackSpace Escape BackSpace BackSpace
keycode 86 = minus underscore asciitilde asciitilde Control_underscore # endash emdash
keycode 57 = space space space nobreakspace nul


keycode 1 = Escape
keycode 14 = Delete
keycode 15 = Tab
keycode 28 = Return
alt keycode 28 = Meta_Control_m
keycode 29 = Control
keycode 42 = Shift
keycode 54 = Shift
keycode 56 = Alt
keycode 97 = Control
3 changes: 0 additions & 3 deletions configs/x13s/pacman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[alarm]
Include = /etc/pacman.d/mirrorlist

Expand Down
2 changes: 2 additions & 0 deletions configs/x13s/profiledef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ file_permissions=(
["/usr/local/bin/choose-mirror"]="0:0:755"
["/usr/local/bin/Installation_guide"]="0:0:755"
["/usr/local/bin/livecd-sound"]="0:0:755"
["/usr/local/bin/ironrobin-setup"]="0:0:755"
["/usr/local/bin/workman"]="0:0:755"
)

0 comments on commit 61ed636

Please sign in to comment.