dot

packages and services management
Log | Files | Refs | README

commit c977f43047f62315ee7e7695c06477728d8c8972
parent 45084abce57c2de1c31c40f089cd095eaf10bcaa
Author: josuah <mail@josuah.net>
Date:   Sat, 11 Feb 2017 16:41:36 +0100

Custom atreus layout.

Diffstat:
M.config/atreus/layout.h | 23++++++++++++++---------
Mbin/ii-filter | 12++++++++++++
Mbin/ii-server | 2+-
3 files changed, 27 insertions(+), 10 deletions(-)

diff --git a/.config/atreus/layout.h b/.config/atreus/layout.h @@ -1,18 +1,23 @@ int layer0[44] = { -KEY_Q, KEY_W, KEY_E, KEY_R, KEY_T, KEY_0, KEY_Y, KEY_U, KEY_I, KEY_O, KEY_P, -KEY_A, KEY_S, KEY_D, KEY_F, KEY_G, KEY_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_TAB, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), KEY_DELETE, KEY_0, KEY_ENTER, + 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 }; int layer1[44] = { -SHIFT(KEY_1), SHIFT(KEY_2), SHIFT(KEY_3), SHIFT(KEY_4), SHIFT(KEY_5), KEY_0, SHIFT(KEY_6), SHIFT(KEY_7), SHIFT(KEY_8), SHIFT(KEY_9), SHIFT(KEY_0), -KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_0, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0, -KEY_TILDE, KEY_0, KEY_0, KEY_0, KEY_BACKSLASH, KEYBOARD_LEFT_ALT, KEY_QUOTE, KEY_LEFT_BRACE, KEY_RIGHT_BRACE, KEY_MINUS, KEY_EQUAL, -FUNCTION(2), KEY_TAB, KEYBOARD_LEFT_GUI, KEYBOARD_LEFT_SHIFT, KEY_BACKSPACE, KEYBOARD_LEFT_CTRL, KEY_SPACE, PRE_FUNCTION(1), KEY_DELETE, KEY_0, KEY_ENTER, + 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, + 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 }; -#include "layer2.h" +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) +}; int *layers[] = {layer0, layer1, layer2}; diff --git a/bin/ii-filter b/bin/ii-filter @@ -5,6 +5,18 @@ busybox awk -v COLS="${1:-80}" 'BEGIN { TEXT_COL = COLS - NICK_COL - length(" | "); } +/==> .* <==/ { + sub("/out <==", ""); + sub("==> ", ""); + + print("\n" $0); + for (i = 0; i <= NICK_COL; i++) + printf("─"); + print("┐"); + + next; +} + { sub(/[0-9]*-[0-9]*-[0-9]* /, ""); diff --git a/bin/ii-server b/bin/ii-server @@ -18,7 +18,7 @@ ii -n josuah -k IIPASS -s irc.oftc.net & tee -a ~/irc/irc.oftc.net/in << EOF /privmsg nickserv IDENTIFY IIPASS /j #suckless -/j #crypto-party +/j #cryptoparty EOF ii -n josuah -k IIPASS -s unix.chat -e 6697 &