more macros

This commit is contained in:
Cadey Ratio 2020-10-04 16:17:04 -04:00
parent 163129b644
commit fd8374008b
2 changed files with 34 additions and 5 deletions

View File

@ -11,4 +11,3 @@ COMB(dfTab, KC_TAB, KC_S, KC_T)
COMB(cvEnt, KC_ENT, KC_C, KC_V)
COMB(uiEsc, KC_ESC, KC_J, KC_L)
COMB(jkCol, KC_COLN, KC_N, KC_E)
COMB(hnEnt, KC_ENT, KC_H, KC_K)

View File

@ -30,19 +30,49 @@ void matrix_scan_user(void) {
SEQ_THREE_KEYS(KC_A, KC_S, KC_D) { autoshift_disable(); }
// Go
SEQ_THREE_KEYS(KC_G, KC_I, KC_E) {
SEND_STRING("if err != nil {\n\t\n}");
}
SEQ_THREE_KEYS(KC_G, KC_I, KC_E) { SEND_STRING("if err != nil {\n\t\n}"); }
SEQ_TWO_KEYS(KC_G, KC_B) { SEND_STRING("go build\n"); }
SEQ_THREE_KEYS(KC_G, KC_B, KC_A) { SEND_STRING("go build ./...\n"); }
SEQ_TWO_KEYS(KC_G, KC_T) { SEND_STRING("go test\n"); }
SEQ_THREE_KEYS(KC_G, KC_T, KC_A) { SEND_STRING("go test ./...\n"); }
// dwm
/// layouts
SEQ_THREE_KEYS(KC_D, KC_L, KC_F) { SEND_STRING(SS_LALT(SS_TAP(X_F))); }
SEQ_THREE_KEYS(KC_D, KC_L, KC_T) { SEND_STRING(SS_LALT(SS_TAP(X_T))); }
SEQ_THREE_KEYS(KC_D, KC_L, KC_M) { SEND_STRING(SS_LALT(SS_TAP(X_M))); }
SEQ_THREE_KEYS(KC_D, KC_L, KC_B) { SEND_STRING(SS_LALT(SS_TAP(X_U))); }
SEQ_THREE_KEYS(KC_D, KC_L, KC_O) { SEND_STRING(SS_LALT(SS_TAP(X_O))); }
/// spawn
SEQ_THREE_KEYS(KC_D, KC_S, KC_E) { SEND_STRING(SS_LALT(SS_TAP(X_E))); }
SEQ_THREE_KEYS(KC_D, KC_S, KC_T) { SEND_STRING(SS_LALT(SS_LSFT(SS_TAP(X_ENTER)))); }
SEQ_TWO_KEYS(KC_D, KC_S) { SEND_STRING(SS_LALT(SS_TAP(X_P))); }
/// window management
SEQ_TWO_KEYS(KC_D, KC_C) { SEND_STRING(SS_LALT(SS_LSFT(SS_TAP(X_C)))); }
SEQ_TWO_KEYS(KC_D, KC_ENTER) { SEND_STRING(SS_LALT(SS_TAP(X_ENTER))); }
/// dwm meta
SEQ_THREE_KEYS(KC_D, KC_Q, KC_L) { SEND_STRING(SS_LALT(SS_LSFT(SS_TAP(X_Q)))); }
// Nix
SEQ_TWO_KEYS(KC_N, KC_B) { SEND_STRING("nix-build"); }
SEQ_THREE_KEYS(KC_N, KC_B, KC_D) { SEND_STRING("nix-build docker.nix"); }
SEQ_THREE_KEYS(KC_N, KC_O, KC_R) { SEND_STRING("sudo nixos-rebuild switch"); }
SEQ_THREE_KEYS(KC_N, KC_O, KC_U) { SEND_STRING("sudo nixos-rebuild switch --upgrade"); }
SEQ_THREE_KEYS(KC_N, KC_N, KC_P) { SEND_STRING("lorri init; niv init; niv update nixpkgs -b nixpkgs-unstable"); }
// k8s
SEQ_THREE_KEYS(KC_K, KC_G, KC_D) { SEND_STRING("kubectl get deployments "); }
SEQ_THREE_KEYS(KC_K, KC_G, KC_P) { SEND_STRING("kubectl get pods "); }
SEQ_THREE_KEYS(KC_K, KC_G, KC_S) { SEND_STRING("kubectl get service "); }
SEQ_THREE_KEYS(KC_K, KC_G, KC_I) { SEND_STRING("kubectl get ingress "); }
SEQ_THREE_KEYS(KC_K, KC_G, KC_N) { SEND_STRING("kubectl get nodes -o wide "); }
SEQ_TWO_KEYS(KC_K, KC_L) { SEND_STRING("kubectl logs "); }
SEQ_THREE_KEYS(KC_K, KC_L, KC_D) { SEND_STRING("kubectl logs deployment/"); }
SEQ_TWO_KEYS(KC_K, KC_V) { SEND_STRING("kubectl version "); }
SEQ_TWO_KEYS(KC_K, KC_I) { SEND_STRING("kubectl exec -it "); }
SEQ_TWO_KEYS(KC_K, KC_D) { SEND_STRING("kubectl describe "); }
SEQ_TWO_KEYS(KC_K, KC_N) { SEND_STRING("kubens "); }
SEQ_TWO_KEYS(KC_K, KC_C) { SEND_STRING("kubectx "); }
// Git
SEQ_TWO_KEYS(KC_G, KC_P) { SEND_STRING("git push"); }
@ -54,7 +84,7 @@ void matrix_scan_user(void) {
SEQ_TWO_KEYS(KC_G, KC_L) { SEND_STRING("git log"); }
SEQ_THREE_KEYS(KC_G, KC_L, KC_O) { SEND_STRING("git log --oneline"); }
SEQ_TWO_KEYS(KC_G, KC_O) { SEND_STRING("git checkout"); }
SEQ_THREE_KEYS(KC_G, KC_O, KC_B) { SEND_STRING("git checkout -b"); }
SEQ_THREE_KEYS(KC_G, KC_O, KC_B) { SEND_STRING("git checkout -b "); }
SEQ_TWO_KEYS(KC_G, KC_S) { SEND_STRING("git status"); }
SEQ_TWO_KEYS(KC_G, KC_C) { SEND_STRING("git commit -m ''"); }
SEQ_THREE_KEYS(KC_G, KC_C, KC_A) { SEND_STRING("git commit --amend"); }