diff --git a/.gitconfig b/.gitconfig index ae72646..627bcb5 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,7 +1,7 @@ [user] name = daniel daum email = daniel@danieldaum.net - signingkey = key::ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKvRA33MsfQeiOntCSFFsgkTxF988KkwGKC1u7S6o8o0Mfji4gDfJE3waDSyo9UWKsiFnB4bNXFM31L+HHxNCxY= + signingkey = key::ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBjfvyQvXhp0zOi6w4dpANVBl80um4L31uZXpVmLhZAfR+OkNxRBLlyGo8M877s0thLO15hDjWKcyqvYza2IAdQ= [commit] gpgsign = true [tag] diff --git a/Brewfile b/Brewfile index 9d09431..5cd5d4a 100644 --- a/Brewfile +++ b/Brewfile @@ -26,6 +26,8 @@ cask "godot" cask "homebrew-app" # Free and open-source media player cask "iina" +# Keyboard customiser +cask "karabiner-elements" # Discover, download, and run local LLMs cask "lm-studio" # AI agent for working with open models diff --git a/karabiner.json b/karabiner.json new file mode 100644 index 0000000..acb6ab2 --- /dev/null +++ b/karabiner.json @@ -0,0 +1,70 @@ +// # custom karabiner rule fn + 1...n keys for my mode keyboard + +{ + "description": "Fn + number row = F1-F12", + "manipulators": [ + { + "type": "basic", + "from": { "key_code": "1", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f1" }] + }, + { + "type": "basic", + "from": { "key_code": "2", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f2" }] + }, + { + "type": "basic", + "from": { "key_code": "3", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f3" }] + }, + { + "type": "basic", + "from": { "key_code": "4", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f4" }] + }, + { + "type": "basic", + "from": { "key_code": "5", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f5" }] + }, + { + "type": "basic", + "from": { "key_code": "6", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f6" }] + }, + { + "type": "basic", + "from": { "key_code": "7", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f7" }] + }, + { + "type": "basic", + "from": { "key_code": "8", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f8" }] + }, + { + "type": "basic", + "from": { "key_code": "9", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f9" }] + }, + { + "type": "basic", + "from": { "key_code": "0", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f10" }] + }, + { + "type": "basic", + "from": { "key_code": "hyphen", "modifiers": { "mandatory": ["fn"] } }, + "to": [{ "key_code": "f11" }] + }, + { + "type": "basic", + "from": { + "key_code": "equal_sign", + "modifiers": { "mandatory": ["fn"] } + }, + "to": [{ "key_code": "f12" }] + } + ] +} diff --git a/scripts/signing key/git-signing-key b/scripts/signing key/git-signing-key new file mode 100644 index 0000000..18093d0 --- /dev/null +++ b/scripts/signing key/git-signing-key @@ -0,0 +1,4 @@ +#!/bin/sh +key=$(ssh-add -L | grep -m1 '^ecdsa-sha2-nistp256 ') +[ -n "$key" ] || { echo "no Secretive key in agent" >&2; exit 1; } +echo "key::$key" diff --git a/scripts/signing key/init.txt b/scripts/signing key/init.txt new file mode 100644 index 0000000..759948e --- /dev/null +++ b/scripts/signing key/init.txt @@ -0,0 +1,10 @@ +make ~/.local/bin/git-signing-key + +chmod +x ~/.local/bin/git-signing-key + +ssh-add -L + +git config --global gpg.format ssh +git config --global commit.gpgsign true + +git config --global gpg.ssh.defaultKeyCommand ~/.local/bin/git-signing-key