feat(nix): nix and back again

I tried Nix, but it had too many downsides so I removed it.

1. Didn't like that all files are immutable and simple config changes
need a complete rebuild.
2. Setting up a new Mac didn't work as smoothly as promised. Not worth
the effort.
3. It sucked a lot to always have to type in the password twice on each
darwin-rebuild
4. It solves problems I never had.
This commit is contained in:
Stefan Imhoff
2024-08-05 20:55:54 +02:00
parent 2d3988b7e6
commit a41290c297
285 changed files with 6965 additions and 2517 deletions

View File

@@ -0,0 +1,31 @@
{
"title": "Caps Lock to Escape, enable Caps Lock when held",
"rules": [
{
"description": "Caps Lock to Escape on single press, Caps Lock on press and hold.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"to_if_held_down": [
{
"key_code": "caps_lock"
}
]
}
]
}
]
}

View File

@@ -0,0 +1 @@
{"title":"Keychron K8 Microphone Button to Microsoft Teams Mute","rules":[{"description":"Focus Microsoft Teams Meeting Manager Window","manipulators":[{"from":{"modifiers":{"mandatory":["fn"]},"key_code":"spacebar"},"conditions":[{"type":"frontmost_application_unless","bundle_identifiers":["com.microsoft.teams"]}],"to":[{"shell_command":"if [ $(ps aux | grep -v grep | grep -ci \"Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app\") -gt 0 ]; then osascript -e 'activate application id \"com.microsoft.teams\"' -e 'tell application \"System Events\" to keystroke \"m\" using {command down, shift down}'; fi","lazy":true,"repeat":true}],"type":"basic"}]},{"description":"Change Fn + Spacebar to Shift + Cmd + A","manipulators":[{"type":"basic","from":{"modifiers":{"mandatory":["fn"]},"key_code":"spacebar"},"conditions":[{"type":"frontmost_application_if","bundle_identifiers":["^com\\.microsoft\\.teams$"]}],"to":[{"key_code":"m","modifiers":["left_shift","left_gui"]}]}]}]}

View File

@@ -0,0 +1,181 @@
{
"title": "German Umlaut",
"rules": [
{
"description": "Change option + a/o/u to ä/ö/ü",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_option"
]
},
{
"key_code": "a"
},
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"option",
"shift"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_option"
]
},
{
"key_code": "a",
"modifiers": [
"left_shift"
]
},
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_option"
]
},
{
"key_code": "o"
},
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"option",
"shift"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_option"
]
},
{
"key_code": "o",
"modifiers": [
"left_shift"
]
},
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"option"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_option"
]
},
{
"key_code": "u"
},
{
"key_code": "vk_none"
}
]
},
{
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"option",
"shift"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_option"
]
},
{
"key_code": "u",
"modifiers": [
"left_shift"
]
},
{
"key_code": "vk_none"
}
]
}
]
}
]
}