From cd156e5adbbd11a177417693fc44003c0b79b0d6 Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Sat, 20 Apr 2024 16:40:21 +0200 Subject: [PATCH] asdf --- karabiner/.config/karabiner/karabiner.ts | 18 ++++++++++++++++-- wezterm/.config/wezterm/config.fnl | 1 + zed/.config/zed/settings.json | 19 ++++++++++++++++++- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/karabiner/.config/karabiner/karabiner.ts b/karabiner/.config/karabiner/karabiner.ts index 770a362..87b7d31 100644 --- a/karabiner/.config/karabiner/karabiner.ts +++ b/karabiner/.config/karabiner/karabiner.ts @@ -1,5 +1,9 @@ function manipulators(): Array { return [ + // Raise binds + bindWithMods(["left_option", "left_cmd"], "t", raise("Teams")), + + // movement bindCaps("h", press("left_arrow")), bindCaps("j", press("down_arrow")), @@ -129,9 +133,9 @@ type Mapping = { type: "basic"; }; -function from(key: string | string[], optional: string[] = ["any"]): From { +function from(key: string | string[], optional: string[] = ["any"], mandatory: string[] = []): From { if (typeof key === "string") { - return { key_code: key, modifiers: { optional } }; + return { key_code: key, modifiers: { optional, mandatory } }; } else if (Array.isArray(key)) { return { simultaneous: key.map((x) => ({ key_code: x })), @@ -171,6 +175,16 @@ function bind( return { conditions: when, from: from(f), to: toValue, type: "basic" }; } +function bindWithMods( + f: string | string[], + mods: string[], + to: ToAction | To, + when: Condition[] = [], +): Mapping { + const toValue = Array.isArray(to) ? to : [to]; + return { conditions: when, from: from(f, [], mods), to: toValue, type: "basic" }; +} + function bindCaps(from: string | string[], to: ToAction | To): Mapping { const capsCondition: Condition = { name: "caps_lock pressed", diff --git a/wezterm/.config/wezterm/config.fnl b/wezterm/.config/wezterm/config.fnl index 9684eb1..e020457 100644 --- a/wezterm/.config/wezterm/config.fnl +++ b/wezterm/.config/wezterm/config.fnl @@ -24,6 +24,7 @@ (merge config {:font (wezterm.font "FiraMono Nerd Font") + :font_size 14 :scrollback_lines 10000 :hide_tab_bar_if_only_one_tab true :color_scheme "GruvboxDarkHard" diff --git a/zed/.config/zed/settings.json b/zed/.config/zed/settings.json index ad356b5..833676b 100644 --- a/zed/.config/zed/settings.json +++ b/zed/.config/zed/settings.json @@ -7,6 +7,9 @@ // "buffer_font_family": "Zed Mono", // "active_pane_magnification": 1.3, + "tab_bar": { + "show_nav_history_buttons": false + }, "calls": { "mute_on_join": true @@ -27,13 +30,27 @@ "use_smartcase_find": true, "use_system_clipboard": "on_yank" }, + "languages": { + "JSON": { + "format_on_save": "off" + } + }, + "assistant": { "version": "1", "provider": { "name": "openai", "type": "openai", - "default_model": "gpt-3.5-turbo" + "default_model": "gpt-3.5-turbo", + // "default_model": "anthropic/claude-3-haiku", + "api_url": "http://localhost:4444", + //"api_url": "https://openrouter.ai/api/v1", } + // "provider": { + // "name": "openai", + // "type": "openai", + // "default_model": "gpt-3.5-turbo" + // } //"provider": { // "name": "zed.dev", // "default_model": "gpt-3.5-turbo"