Compare commits

..

2 Commits

Author SHA1 Message Date
Konstantin Đorđević
0c1256e60a Read user input properly in linux_install.sh for Gentoo (#4395)
* Change spaces to tabs on two lines

The rest of the file uses tabs

* Read user input in a non-terrible, non-hacky way

* Remove unnecessary tee call

* read -p is not POSIX

* Add missing $ to echo GENTOO_WARNING

* Replace non-POSIX echo -n with printf

* Use cd ... || exit 1 in case git clone fails

* Add missing sudo

Thanks @snortwolf

* Undo replacing tee with >>
2018-12-26 08:01:26 -08:00
noroadsleft
b7d2a9f980 S65-Plus: refactor and Configurator support (#4725)
- s65_plus.h updated to #pragma once method
- added info.json file
2018-12-26 07:55:42 -08:00
3 changed files with 101 additions and 13 deletions

View File

@@ -0,0 +1,92 @@
{
"keyboard_name": "S65-Plus",
"url": "",
"maintainer": "qmk",
"width": 18,
"height": 5,
"layouts": {
"LAYOUT": {
"layout": [
{"label":"F1", "x":0, "y":0},
{"label":"F2", "x":1, "y":0},
{"label":"ESC", "x":2, "y":0},
{"label":"1", "x":3, "y":0},
{"label":"2", "x":4, "y":0},
{"label":"3", "x":5, "y":0},
{"label":"4", "x":6, "y":0},
{"label":"5", "x":7, "y":0},
{"label":"6", "x":8, "y":0},
{"label":"7", "x":9, "y":0},
{"label":"8", "x":10, "y":0},
{"label":"9", "x":11, "y":0},
{"label":"0", "x":12, "y":0},
{"label":"MINUS", "x":13, "y":0},
{"label":"EQUAL", "x":14, "y":0},
{"label":"BACKSPACE", "x":15, "y":0, "w":2},
{"label":"DELETE", "x":17, "y":0},
{"label":"F3", "x":0, "y":1},
{"label":"F4", "x":1, "y":1},
{"label":"TAB", "x":2, "y":1, "w":1.5},
{"label":"Q", "x":3.5, "y":1},
{"label":"W", "x":4.5, "y":1},
{"label":"E", "x":5.5, "y":1},
{"label":"R", "x":6.5, "y":1},
{"label":"T", "x":7.5, "y":1},
{"label":"Y", "x":8.5, "y":1},
{"label":"U", "x":9.5, "y":1},
{"label":"I", "x":10.5, "y":1},
{"label":"O", "x":11.5, "y":1},
{"label":"P", "x":12.5, "y":1},
{"label":"LBRACKET", "x":13.5, "y":1},
{"label":"RBRACKET", "x":14.5, "y":1},
{"label":"BACKSLASH", "x":15.5, "y":1, "w":1.5},
{"label":"PAGEUP", "x":17, "y":1},
{"label":"F5", "x":0, "y":2},
{"label":"F6", "x":1, "y":2},
{"label":"CAPSLOCK", "x":2, "y":2, "w":1.75},
{"label":"A", "x":3.75, "y":2},
{"label":"S", "x":4.75, "y":2},
{"label":"D", "x":5.75, "y":2},
{"label":"F", "x":6.75, "y":2},
{"label":"G", "x":7.75, "y":2},
{"label":"H", "x":8.75, "y":2},
{"label":"J", "x":9.75, "y":2},
{"label":"K", "x":10.75, "y":2},
{"label":"L", "x":11.75, "y":2},
{"label":"SEMICOLON", "x":12.75, "y":2},
{"label":"QUOTE", "x":13.75, "y":2},
{"label":"ENTER", "x":14.75, "y":2, "w":2.25},
{"label":"PAGEDOWN", "x":17, "y":2},
{"label":"F7", "x":0, "y":3},
{"label":"F8", "x":1, "y":3},
{"label":"LSHIFT", "x":2, "y":3, "w":2.25},
{"label":"Z", "x":4.25, "y":3},
{"label":"X", "x":5.25, "y":3},
{"label":"C", "x":6.25, "y":3},
{"label":"V", "x":7.25, "y":3},
{"label":"B", "x":8.25, "y":3},
{"label":"N", "x":9.25, "y":3},
{"label":"M", "x":10.25, "y":3},
{"label":"COMMA", "x":11.25, "y":3},
{"label":"PERIOD", "x":12.25, "y":3},
{"label":"SLASH", "x":13.25, "y":3},
{"label":"RSHIFT", "x":14.25, "y":3, "w":1.75},
{"label":"UP", "x":16, "y":3},
{"label":"END", "x":17, "y":3},
{"label":"F9", "x":0, "y":4},
{"label":"F10", "x":1, "y":4},
{"label":"LCTRL", "x":2, "y":4, "w":1.25},
{"label":"LGUI", "x":3.25, "y":4, "w":1.25},
{"label":"LALT", "x":4.5, "y":4, "w":1.25},
{"label":"SPACE", "x":5.75, "y":4, "w":6.25},
{"label":"RALT", "x":12, "y":4},
{"label":"FN", "x":13, "y":4},
{"label":"RCTRL", "x":14, "y":4},
{"label":"LEFT", "x":15, "y":4},
{"label":"DOWN", "x":16, "y":4},
{"label":"RIGHT", "x":17, "y":4}
]
}
}
}

View File

@@ -1,5 +1,4 @@
#ifndef S60PLUS_H
#define S60PLUS_H
#pragma once
#include "quantum.h"
@@ -20,4 +19,3 @@
void matrix_init_user(void);
void matrix_scan_user(void);
#endif

View File

@@ -32,7 +32,7 @@ if grep ID /etc/os-release | grep -qE "fedora"; then
elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true
export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
sudo apt-get update
sudo apt-get install \
build-essential \
@@ -70,20 +70,18 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
wget \
zip
git clone https://aur.archlinux.org/dfu-programmer.git /tmp/dfu-programmer
cd /tmp/dfu-programmer
cd /tmp/dfu-programmer || exit 1
makepkg -sic
rm -rf /tmp/dfu-programmer/
elif grep ID /etc/os-release | grep -q gentoo; then
echo GENTOO_WARNING | fmt
echo -n "Proceed (y/N)? "
old_stty_cfg=$(stty -g)
stty raw -echo
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
stty $old_stty_cfg
if echo "$answer" | grep -iq "^y" ;then
echo "$GENTOO_WARNING" | fmt
printf "\nProceed (y/N)? "
read -r answer
if echo "$answer" | grep -iq "^y"; then
sudo touch /etc/portage/package.use/qmkfirmware
echo "sys-devel/gcc multilib" | sudo tee --append /etc/portage/package.use/qmkfirmware > /dev/null
# tee is used here since sudo doesn't apply to >>
echo "sys-devel/gcc multilib" | sudo tee --append /etc/portage/package.use/qmkfirmware >/dev/null
sudo emerge -auN \
app-arch/unzip \
app-arch/zip \