summaryrefslogtreecommitdiff
path: root/karabiner
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-05-28 21:08:18 +0800
committerZhineng Li <im@zhineng.li>2026-05-28 21:08:18 +0800
commit306c3a9d280b82c7aa3d8b8c668365cbd258a20f (patch)
tree327b48b1964a4c2e10edd0cb80c5d4c262ebed74 /karabiner
parentceb1720248a19c1d15c5d03663cdf1c3a94d248a (diff)
downloaddotfiles-306c3a9d280b82c7aa3d8b8c668365cbd258a20f.tar.gz
dotfiles-306c3a9d280b82c7aa3d8b8c668365cbd258a20f.zip
insert current date with Ctrl-;
Diffstat (limited to 'karabiner')
-rw-r--r--karabiner/karabiner.json13
1 files changed, 13 insertions, 0 deletions
diff --git a/karabiner/karabiner.json b/karabiner/karabiner.json
index 10eaf6c..694ec7c 100644
--- a/karabiner/karabiner.json
+++ b/karabiner/karabiner.json
@@ -8,6 +8,19 @@
"complex_modifications": {
"rules": [
{
+ "description": "insert current date (control+;)",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "semicolon",
+ "modifiers": { "mandatory": ["control"] }
+ },
+ "to": [{ "shell_command": "printf \"$(date +%F)\" | pbcopy && osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
"description": "Find my Kitty (left_option+space)",
"manipulators": [
{