Compare commits

...

2 Commits

Author SHA1 Message Date
e2603d5006
[git-delete-branch] Added the $1 2022-11-27 00:38:11 +01:00
7ab0fda74f
Added the keyboard settings 2022-11-27 00:37:48 +01:00
3 changed files with 692 additions and 12 deletions

View File

@ -0,0 +1,417 @@
{
"name": "Keychron V1",
"vendorProductId": 875823889,
"macros": [
"",
"{KC_LGUI,KC_LCTL,KC_Q}",
"{KC_RGUI,KC_L}",
"Have a nice day",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"it-infra-stream@wundermanthompson.com",
"marcin.wozniak@wundermanthompson.com",
"Have a nice day!\n\n---\nMarcin\n"
],
"layers": [
[
"KC_GRV",
"KC_F1",
"KC_F2",
"KC_F3",
"KC_F4",
"KC_F5",
"KC_F6",
"KC_F7",
"KC_F8",
"KC_F9",
"KC_F10",
"KC_F11",
"KC_F12",
"KC_DEL",
"KC_NO",
"KC_MUTE",
"KC_GRV",
"KC_1",
"KC_2",
"KC_3",
"KC_4",
"KC_5",
"KC_6",
"KC_7",
"KC_8",
"KC_9",
"KC_0",
"KC_MINS",
"KC_EQL",
"KC_BSPC",
"KC_NO",
"KC_PGUP",
"KC_TAB",
"KC_Q",
"KC_W",
"KC_E",
"KC_R",
"KC_T",
"KC_Y",
"KC_U",
"KC_I",
"KC_O",
"KC_P",
"KC_LBRC",
"KC_RBRC",
"KC_BSLS",
"KC_NO",
"KC_PGDN",
"KC_ESC",
"KC_A",
"KC_S",
"KC_D",
"KC_F",
"KC_G",
"KC_H",
"KC_J",
"KC_K",
"KC_L",
"KC_SCLN",
"KC_QUOT",
"KC_NO",
"KC_ENT",
"KC_NO",
"KC_HOME",
"KC_LSFT",
"KC_NO",
"KC_Z",
"KC_X",
"KC_C",
"KC_V",
"KC_B",
"KC_N",
"KC_M",
"KC_COMM",
"KC_DOT",
"KC_SLSH",
"KC_NO",
"KC_RSFT",
"KC_UP",
"KC_NO",
"KC_LCTL",
"USER02",
"USER05",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_SPC",
"KC_VOLD",
"KC_VOLU",
"KC_NO",
"USER03",
"MO(1)",
"USER05",
"KC_LEFT",
"KC_DOWN",
"KC_RGHT"
],
[
"KC_TRNS",
"KC_F1",
"KC_F2",
"KC_F3",
"KC_F4",
"BL_DEC",
"BL_INC",
"KC_MPRV",
"KC_MPLY",
"KC_MNXT",
"KC_F10",
"KC_F11",
"KC_F12",
"KC_TRNS",
"KC_NO",
"RGB_TOG",
"KC_TRNS",
"KC_TRNS",
"MACRO01",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"MACRO13",
"MACRO14",
"MACRO15",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_BTN1",
"KC_MS_UP",
"KC_MS_BTN2",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_LEFT",
"KC_MS_DOWN",
"KC_MS_RIGHT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_NO",
"KC_END",
"KC_TRNS",
"KC_NO",
"KC_MS_WH_UP",
"KC_MS_WH_DOWN",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_TRNS",
"RGB_VAD",
"RGB_VAI",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS"
],
[
"KC_GRV",
"KC_F1",
"KC_F2",
"KC_F3",
"KC_F4",
"KC_F5",
"KC_F6",
"KC_F7",
"KC_F8",
"KC_F9",
"KC_F10",
"KC_F11",
"KC_F12",
"KC_DEL",
"KC_NO",
"KC_MUTE",
"KC_GRV",
"KC_1",
"KC_2",
"KC_3",
"KC_4",
"KC_5",
"KC_6",
"KC_7",
"KC_8",
"KC_9",
"KC_0",
"KC_MINS",
"KC_EQL",
"KC_BSPC",
"KC_NO",
"KC_PGUP",
"KC_TAB",
"KC_Q",
"KC_W",
"KC_E",
"KC_R",
"KC_T",
"KC_Y",
"KC_U",
"KC_I",
"KC_O",
"KC_P",
"KC_LBRC",
"KC_RBRC",
"KC_BSLS",
"KC_NO",
"KC_PGUP",
"KC_ESC",
"KC_A",
"KC_S",
"KC_D",
"KC_F",
"KC_G",
"KC_H",
"KC_J",
"KC_K",
"KC_L",
"KC_SCLN",
"KC_QUOT",
"KC_NO",
"KC_ENT",
"KC_NO",
"KC_HOME",
"KC_LSFT",
"KC_NO",
"KC_Z",
"KC_X",
"KC_C",
"KC_V",
"KC_B",
"KC_N",
"KC_M",
"KC_COMM",
"KC_DOT",
"KC_SLSH",
"KC_NO",
"KC_RSFT",
"KC_UP",
"KC_NO",
"KC_LCTL",
"KC_LGUI",
"KC_LALT",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_SPC",
"KC_VOLD",
"KC_VOLU",
"KC_NO",
"KC_RALT",
"MO(3)",
"KC_RCTL",
"KC_LEFT",
"KC_DOWN",
"KC_RGHT"
],
[
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"BL_DEC",
"BL_INC",
"KC_MPRV",
"KC_MPLY",
"KC_MNXT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"RGB_TOG",
"KC_TRNS",
"KC_TRNS",
"MACRO02",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"MACRO13",
"MACRO14",
"MACRO15",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_BTN1",
"KC_MS_UP",
"KC_MS_BTN2",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_LEFT",
"KC_MS_DOWN",
"KC_MS_RIGHT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_NO",
"KC_END",
"KC_TRNS",
"KC_NO",
"KC_MS_WH_UP",
"KC_MS_WH_DOWN",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_TRNS",
"RGB_VAD",
"RGB_VAI",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS"
]
],
"encoders": []
}

View File

@ -0,0 +1,248 @@
{
"name": "Keychron V1",
"vendorId": "0x3434",
"productId": "0x0311",
"lighting": {
"extends": "qmk_rgblight",
"underglowEffects": [
["None", 0],
["SOLID_COLOR", 1],
["BREATHING", 1],
["CYCLE_ALL", 1],
["CYCLE_LEFT_RIGHT", 1],
["CYCLE_UP_DOWN", 1],
["RAINBOW_MOVING_CHEVRON", 1],
["CYCLE_OUT_IN", 1],
["CYCLE_OUT_IN_DUAL", 1],
["CYCLE_PINWHEEL", 1],
["CYCKE_SPIRAL", 1],
["DUAL_BEACON", 1],
["RAINBOW_BEACON", 1],
["RAINDROPS", 1]
]
},
"matrix": {"rows": 6, "cols": 16},
"customKeycodes": [
{"name": "Mission Control", "title": "Mission Control in macOS", "shortName": "Mission Control"},
{"name": "Launch Pad", "title": "Launch Pad in macOS", "shortName": "Launch Pad"},
{"name": "Left Option", "title": "Left Option in macOS", "shortName": "Left Option"},
{"name": "Right Option", "title": "Right Option in macOS", "shortName": "Right Option"},
{"name": "Left Cmd", "title": "Left Command in macOS", "shortName": "Left Command"},
{"name": "Right Cmd", "title": "Right Command in macOS", "shortName": "Right Command"},
{"name": "Task View", "title": "Task View in windows", "shortName": "Task View"},
{"name": "File Explorer", "title": "File Explorer in windows", "shortName": "File Explorer"}
],
"layouts": {
"keymap": [
[
{
"c": "#777777"
},
"0,0\nESC",
{
"x": 0.25,
"c": "#cccccc"
},
"0,1",
"0,2",
"0,3",
"0,4",
{
"x": 0.25
},
"0,5",
"0,6",
"0,7",
"0,8",
{
"x": 0.25
},
"0,9",
"0,10",
"0,11",
"0,12",
{
"x": 0.25,
"c": "#aaaaaa"
},
"0,13",
{
"x": 0.25,
"w": 0.75
},
"0,15",
{
"h": 0.5
},
"5,7",
{
"x": -1,
"y": 0.5,
"h": 0.5
},
"5,8"
],
[
{
"y": -0.25
},
"1,0",
{
"c": "#cccccc"
},
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"1,10",
"1,11",
"1,12",
{
"c": "#aaaaaa",
"w": 2
},
"1,13",
{
"x": 0.25
},
"1,15"
],
[
{
"w": 1.5
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9",
"2,10",
"2,11",
"2,12",
{
"w": 1.5
},
"2,13",
{
"x": 0.25,
"c": "#aaaaaa"
},
"2,15"
],
[
{
"w": 1.75
},
"3,0",
{
"c": "#cccccc"
},
"3,1",
"3,2",
"3,3",
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
"3,9",
"3,10",
"3,11",
{
"c": "#777777",
"w": 2.25
},
"3,13",
{
"x": 0.25,
"c": "#aaaaaa"
},
"3,15"
],
[
{
"w": 2.25
},
"4,0",
{
"c": "#cccccc"
},
"4,2",
"4,3",
"4,4",
"4,5",
"4,6",
"4,7",
"4,8",
"4,9",
"4,10",
"4,11",
{
"c": "#aaaaaa",
"w": 1.75
},
"4,13"
],
[
{
"y": -0.75,
"x": 14.25,
"c": "#777777"
},
"4,14"
],
[
{
"y": -0.25,
"c": "#aaaaaa",
"w": 1.25
},
"5,0",
{
"w": 1.25
},
"5,1",
{
"w": 1.25
},
"5,2",
{
"c": "#cccccc",
"a": 7,
"w": 6.25
},
"5,6",
{
"c": "#aaaaaa",
"a": 4
},
"5,10",
"5,11",
"5,12"
],
[
{
"y": -0.75,
"x": 13.25,
"c": "#777777"
},
"5,13",
"5,14",
"5,15"
]
]
}
}

View File

@ -10,21 +10,36 @@ function delete_remote_branch() {
git push origin --delete "$1" git push origin --delete "$1"
} }
echo function list_of_the_branches() {
echo "List of branches:" echo
echo -e "$(git branch)" echo "List of branches:"
echo echo -e "$(git branch)"
echo
}
BRANCH="$1"
while true; do while true; do
[ -z "$BRANCH" ] && {
list_of_the_branches
read -p "Select branch to remove: " BRANCH read -p "Select branch to remove: " BRANCH
}
echo "$BRANCH"
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
case $CHOOSE in case $CHOOSE in
[Bb]*) [Bb]*)
delete_local_branch "$BRANCH" delete_local_branch "$BRANCH"
delete_remote_branch "$BRANCH" delete_remote_branch "$BRANCH"
unset -f BRANCH
;;
[Ll]*)
delete_local_branch "$BRANCH"
unset -f BRANCH
;;
[Rr]*)
delete_remote_branch "$BRANCH"
unset -f BRANCH
;; ;;
[Ll]*) delete_local_branch "$BRANCH" ;;
[Rr]*) delete_remote_branch "$BRANCH" ;;
*) echo "Please write good answer" ;; *) echo "Please write good answer" ;;
esac esac
done done