remove emerge binds

This commit is contained in:
♥ Minnie ♥ 2022-12-16 17:16:36 +08:00
parent 4e57c45fde
commit b2b4c9d9b5
No known key found for this signature in database
GPG key ID: 3FF749264D02B336
2 changed files with 0 additions and 39 deletions

View file

@ -17,7 +17,6 @@
#include QMK_KEYBOARD_H
#include "config.h"
#include "keycodes.h"
#include "leader.h"
/* Define our layers */
enum layers {
@ -275,35 +274,6 @@ bool get_custom_auto_shifted_key(uint16_t keycode, keyrecord_t *record) {
}
}
/* Define our leader key sequences */
LEADER_EXTERNS();
void matrix_scan_user(void) {
LEADER_DICTIONARY() {
leading = false;
leader_end();
// Portage commands
SEQ_TWO_KEYS(KC_E, KC_S) {
SEND_STRING(SEARCH);
}
SEQ_TWO_KEYS(KC_E, KC_I) {
SEND_STRING(INSTALL);
}
SEQ_TWO_KEYS(KC_E, KC_R) {
SEND_STRING(REMOVE);
}
SEQ_TWO_KEYS(KC_E, KC_U) {
SEND_STRING(UPDATE);
}
SEQ_THREE_KEYS(KC_E, KC_U, KC_U) {
SEND_STRING(UPGRADE);
}
SEQ_TWO_KEYS(KC_E, KC_C) {
SEND_STRING(DEPCLEAN);
}
}
}
/* Keyboard Post Initialization */
void keyboard_post_init_user(void) {
autoshift_disable();

View file

@ -1,9 +0,0 @@
// Here we keep our leader key strings
// Gentoo
#define SEARCH "emerge --search "
#define INSTALL "sudo emerge --ask --verbose "
#define REMOVE "sudo emerge --ask --verbose --depclean "
#define UPDATE "sudo emaint --auto sync\n"
#define UPGRADE "sudo emerge --ask --verbose --update --deep --newuse --with-bdeps=y @world\n"
#define DEPCLEAN "sudo emerge --ask --verbose --depclean\n"