summaryrefslogtreecommitdiffstats
path: root/users/noroadsleft/noroadsleft.c
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2022-07-18 19:09:05 -0700
committerGitHub <noreply@github.com>2022-07-18 19:09:05 -0700
commit7aea67980b0029739d6572f58951bc58e56bf7d5 (patch)
tree53994ae70732ebfe06d71ab6419cfef21174477b /users/noroadsleft/noroadsleft.c
parent627e35b7ac61e294c7c34a693d8191cded68136e (diff)
Update noroadsleft userspace and keymaps (2022-07-18) (#17714)
* kbdfans/kbd75/rev1:noroadsleft - remove LAYOUT_75_ansi_wkl definition * coseyfannitutti/discipline:noroadsleft - change KC_GESC to KC_ESC * update Quantum keycode instances in noroadsleft keymaps - `RESET` -> `QK_BOOT` - `EEP_RST` -> `EE_CLR` - `DEBUG` -> `DB_TOGG` * create and add G_PWD macro
Diffstat (limited to 'users/noroadsleft/noroadsleft.c')
-rw-r--r--users/noroadsleft/noroadsleft.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/users/noroadsleft/noroadsleft.c b/users/noroadsleft/noroadsleft.c
index 28bfa9e6c6..80d18f4026 100644
--- a/users/noroadsleft/noroadsleft.c
+++ b/users/noroadsleft/noroadsleft.c
@@ -1,4 +1,4 @@
-/* Copyright 2020-2021 James Young (@noroadsleft)
+/* Copyright 2020-2022 James Young (@noroadsleft)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -66,6 +66,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
};
return false;
+ case G_PWD:
+ if (record->event.pressed) {
+ clear_mods();
+ SEND_STRING("$( pwd | sed -e 's;^.*/keyboards/;;' -e 's;/;_;g')");
+ };
+ return false;
case M_SALL:
if (record->event.pressed) {
tap_code16(C(KC_A));