dot

packages and services management
Log | Files | Refs | README

commit 9790c7136cca5666f29550155fc39dd08ea9b185
parent c977f43047f62315ee7e7695c06477728d8c8972
Author: josuah <mail@josuah.net>
Date:   Wed, 15 Feb 2017 22:38:30 +0100

Added atreus keyboard

Diffstat:
M.config/atreus/layout.h | 8++++----
M.xinitrc | 3++-
Mbin/ii-filter | 7++++---
Mbin/ii-server | 6++++++
Mbin/piano | 3+--
5 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/.config/atreus/layout.h b/.config/atreus/layout.h @@ -2,21 +2,21 @@ int layer0[44] = { KEY_Q, KEY_W, KEY_E, KEY_R, KEY_T, 0, KEY_Y, KEY_U, KEY_I, KEY_O, KEY_P, KEY_A, KEY_S, KEY_D, KEY_F, KEY_G, 0, KEY_H, KEY_J, KEY_K, KEY_L, KEY_SEMICOLON, KEY_Z, KEY_X, KEY_C, KEY_V, KEY_B, KEYBOARD_LEFT_ALT, KEY_N, KEY_M, KEY_COMMA, KEY_PERIOD, KEY_SLASH, - KEY_ESC, KEY_DELETE, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), KEY_TAB, KEY_TAB, KEY_ENTER + KEY_ESC, KEY_TAB, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), 0, 0, KEY_ENTER }; int layer1[44] = { KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, 0, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0, - KEY_TILDE, 0, 0, 0, 0, 0, 0, KEY_MINUS, KEY_EQUAL, KEY_LEFT_BRACKET, KEY_RIGHT_BRACKET, + KEY_TILDE, 0, 0, 0, 0, 0, 0, KEY_MINUS, KEY_EQUAL, KEY_LEFT_BRACE, KEY_RIGHT_BRACE, 0, 0, 0, 0, 0, KEYBOARD_LEFT_ALT, 0, 0, 0, KEY_QUOTE, KEY_BACKSLASH, - FUNCTION(2), KEY_DELETE, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), KEY_TAB, KEY_TAB, KEY_ENTER + FUNCTION(2), KEY_TAB, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), 0, 0, KEY_ENTER }; int layer2[44] = { KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_0, KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12, 0, 0, 0, 0, KEY_LEFT, KEY_DOWN, KEY_UP, KEY_RIGHT, 0, 0, 0, 0, 0, 0, KEYBOARD_LEFT_ALT, 0, 0, 0, 0, 0, - 0, 0, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), 0, 0, FUNCTION(0) + PRE_FUNCTION(1), KEY_TAB, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), 0, 0, FUNCTION(0) }; int *layers[] = {layer0, layer1, layer2}; diff --git a/.xinitrc b/.xinitrc @@ -7,4 +7,4 @@ do sleep 5 done & -exec dwm +exec dwm+ \ No newline at end of file diff --git a/bin/ii-filter b/bin/ii-filter @@ -5,14 +5,15 @@ busybox awk -v COLS="${1:-80}" 'BEGIN { TEXT_COL = COLS - NICK_COL - length(" | "); } +/^$/ { + next; +} + /==> .* <==/ { sub("/out <==", ""); sub("==> ", ""); print("\n" $0); - for (i = 0; i <= NICK_COL; i++) - printf("─"); - print("┐"); next; } diff --git a/bin/ii-server b/bin/ii-server @@ -26,3 +26,9 @@ tee -a ~/irc/unix.chat/in << EOF /privmsg nickserv IDENTIFY IIPASS /j #unix EOF + +ii -n josuah -k IIPASS -s irc.geeknode.net -e 6697 & +tee -a ~/irc/irc.geeknode.net/in << EOF +/privmsg nickserv IDENTIFY IIPASS +/j #labriqueinter.net +EOF diff --git a/bin/piano b/bin/piano @@ -130,8 +130,7 @@ BEGIN { # else, get the note from the array using key position in layout } else if (note = frequencies[index(layout, key)]) { # play the note with this frequency with some command - print("\n\n\n\n\n" note " " index(layout, key) "\n\n\n\n\n") - system("speaker-test -t sine -f " note "&" \ + system("speaker-test -t sine -f " note " 1>&2 > /dev/null &" \ "(sleep 0.5 && kill -9 $!) &"); } }