diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-03-04 17:19:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 17:19:26 -0800 |
commit | 8fd845430899311663a6bcdeb6a16574cb92fe54 (patch) | |
tree | fc193433bae444f81d0e76d1cf394b8843bc4f54 /users/cjuniet/cjuniet.c | |
parent | 8e229f0db65cb7d23d0a64daca2b0a1298eb456d (diff) | |
download | firmware-8fd845430899311663a6bcdeb6a16574cb92fe54.tar.gz firmware-8fd845430899311663a6bcdeb6a16574cb92fe54.tar.bz2 firmware-8fd845430899311663a6bcdeb6a16574cb92fe54.zip |
[Keymap] Add @cjuniet's keymap/layout/userspace (#8258)
* Add Colemak layout
* Add status bar for mods & locks with a custom font
* Swap DEL and TAB
* Fix media keys and add QMK Configurator layout
* Add dead grave accent on <leader>e
Diffstat (limited to 'users/cjuniet/cjuniet.c')
-rw-r--r-- | users/cjuniet/cjuniet.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/users/cjuniet/cjuniet.c b/users/cjuniet/cjuniet.c new file mode 100644 index 000000000..3b950b1ad --- /dev/null +++ b/users/cjuniet/cjuniet.c @@ -0,0 +1,13 @@ +#include "cjuniet.h" + +void render_status_bar(void) { + uint8_t modifiers = get_mods(); + led_t led_state = host_keyboard_led_state(); + oled_write_P(PSTR("\325\326"), (modifiers & MOD_MASK_SHIFT)); + oled_write_P(PSTR("\327\330"), (modifiers & MOD_MASK_CTRL)); + oled_write_P(PSTR("\331\332"), (modifiers & MOD_MASK_ALT)); + oled_write_P(PSTR("\333\334"), (modifiers & MOD_MASK_GUI)); + oled_write_P(PSTR(" "), false); + oled_write_P(PSTR("\235\236"), led_state.caps_lock); + oled_write_P(PSTR("\275\276"), led_state.num_lock); +} |