From b8df5bd6a0ff9f099840517be98249acc089e88b Mon Sep 17 00:00:00 2001 From: js0ny Date: Wed, 12 Mar 2025 04:20:44 +0000 Subject: [PATCH 1/3] minor fix --- platforms/mac/karabiner/karabiner.json | 32 ++++++++++++++++++++++++++ tools/doom/config.el | 14 +++++------ tools/sioyek/keys_user.config | 8 +++++-- 3 files changed, 45 insertions(+), 9 deletions(-) diff --git a/platforms/mac/karabiner/karabiner.json b/platforms/mac/karabiner/karabiner.json index 034bc93..68617c6 100644 --- a/platforms/mac/karabiner/karabiner.json +++ b/platforms/mac/karabiner/karabiner.json @@ -1066,6 +1066,38 @@ "vendor_id": 5426 }, "ignore": false + }, + { + "identifiers": { + "is_keyboard": true, + "is_pointing_device": true, + "product_id": 560, + "vendor_id": 13364 + }, + "ignore": false, + "simple_modifications": [ + { + "from": { "key_code": "backslash" }, + "to": [{ "key_code": "delete_or_backspace" }] + }, + { + "from": { "key_code": "delete_or_backspace" }, + "to": [{ "key_code": "backslash" }] + }, + { + "from": { "key_code": "left_control" }, + "to": [{ "key_code": "left_command" }] + }, + { + "from": { "key_code": "left_option" }, + "to": [{ "apple_vendor_top_case_key_code": "keyboard_fn" }] + }, + { + "from": { "key_code": "left_command" }, + "to": [{ "key_code": "left_option" }] + } + ], + "treat_as_built_in_keyboard": true } ], "name": "Colemak", diff --git a/tools/doom/config.el b/tools/doom/config.el index a266d41..37d707f 100644 --- a/tools/doom/config.el +++ b/tools/doom/config.el @@ -103,7 +103,7 @@ (add-to-list 'recentf-exclude "\\.#.+$") (add-to-list 'recentf-exclude "^/tmp/") (add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'") -)[1][2] + )[1][2] @@ -131,13 +131,13 @@ ) -(if (not (eq system-type 'windows-nt)) +(if (eq system-type 'gnu/linux) (use-package! rime - :config - (setq default-input-method "rime") - (add-hook! (org-mode markdown-mode) (activate-input-method default-input-method)) - (setq rime-user-data-dir (expand-file-name "emacs-rime" (getenv "XDG_CONFIG_HOME"))) - )) + :config + (setq default-input-method "rime") + (add-hook! (org-mode markdown-mode) (activate-input-method default-input-method)) + (setq rime-user-data-dir (expand-file-name "emacs-rime" (getenv "XDG_CONFIG_HOME"))) + )) (load! "calendar.el") diff --git a/tools/sioyek/keys_user.config b/tools/sioyek/keys_user.config index 5f97003..8b82c58 100644 --- a/tools/sioyek/keys_user.config +++ b/tools/sioyek/keys_user.config @@ -10,10 +10,14 @@ move_visual_mark_down n screen_down N screen_up E +## Zoom + +zoom_in = + ### Search next_item k -previous_item K +previous_item K ### Toggles @@ -21,7 +25,7 @@ toggle_fullscreen ,f toggle_custom_color ,d # toggle_dark_mode D toggle_dark_mode ,D -## SyncTeX for LaTeX +## SyncTeX for LaTeX toggle_synctex ,s # Mark From 5af44bfa90d691261059fe1388618eb4b929b62c Mon Sep 17 00:00:00 2001 From: js0ny Date: Thu, 13 Mar 2025 07:03:30 +0000 Subject: [PATCH 2/3] chore(glzr): Add rules --- .gitattributes | 1 - platforms/win/glzr/glazewm/config.yaml | 44 +++++++++++++++----------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/.gitattributes b/.gitattributes index 443631a..f4cb96f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,7 +7,6 @@ # Windows Batch Script, keep CRLF *.bat text eol=crlf -skhdrc linguist-language=Shell yabairc linguist-language=Shell sketchybarrc linguist-language=Shell *.vimrc linguist-language=VimL diff --git a/platforms/win/glzr/glazewm/config.yaml b/platforms/win/glzr/glazewm/config.yaml index 0dcac99..8fac64d 100644 --- a/platforms/win/glzr/glazewm/config.yaml +++ b/platforms/win/glzr/glazewm/config.yaml @@ -134,7 +134,6 @@ window_rules: match: # Ignores any Zebar windows. - window_process: { equals: "zebar" } - - window_process: { equals: "WindowsTerminal" } # Ignores picture-in-picture windows for browsers. - window_title: { regex: "[Pp]icture.in.[Pp]icture" } @@ -147,6 +146,15 @@ window_rules: window_title: { regex: ".*? - Peek" } - window_process: { equals: "Lively" } window_class: { regex: "HwndWrapper" } + - window_process: { equals: "WindowsTerminal" } + - commands: ["set-floating"] + match: + # Razer Synapse + - window_process: { equals: "RazerAppEngine" } + # AutoHotKey Window Spy + - window_process: { equals: "AutoHotkeyUX" } + - window_process: { equals: "ApplicationFrameHost" } + window_title: { regex: "Settings|设置" } binding_modes: # When enabled, the focused window can be resized via arrow keys or HJKL. @@ -186,14 +194,14 @@ keybindings: bindings: ["lwin+shift+n", "lwin+shift+down"] # Resize focused window by a percentage or pixel amount. - - commands: ["resize --width -2%"] - bindings: ["alt+u"] - - commands: ["resize --width +2%"] - bindings: ["alt+p"] - - commands: ["resize --height +2%"] - bindings: ["alt+o"] - - commands: ["resize --height -2%"] - bindings: ["alt+i"] + # - commands: ["resize --width -2%"] + # bindings: ["alt+u"] + # - commands: ["resize --width +2%"] + # bindings: ["alt+p"] + # - commands: ["resize --height +2%"] + # bindings: ["alt+o"] + # - commands: ["resize --height -2%"] + # bindings: ["alt+i"] # As an alternative to the resize keybindings above, resize mode enables # resizing via arrow keys or HJKL. The binding mode is defined above with @@ -217,7 +225,7 @@ keybindings: # Change the focused window to be floating. - commands: ["toggle-floating --centered"] - bindings: ["alt+shift+space"] + bindings: ["lwin+shift+space"] # Change the focused window to be tiling. - commands: ["toggle-tiling"] @@ -287,14 +295,14 @@ keybindings: # Move the focused window's parent workspace to a monitor in a given # direction. - - commands: ["move-workspace --direction left"] - bindings: ["alt+shift+a"] - - commands: ["move-workspace --direction right"] - bindings: ["alt+shift+f"] - - commands: ["move-workspace --direction up"] - bindings: ["alt+shift+d"] - - commands: ["move-workspace --direction down"] - bindings: ["alt+shift+s"] + # - commands: ["move-workspace --direction left"] + # bindings: ["alt+shift+a"] + # - commands: ["move-workspace --direction right"] + # bindings: ["alt+shift+f"] + # - commands: ["move-workspace --direction up"] + # bindings: ["alt+shift+d"] + # - commands: ["move-workspace --direction down"] + # bindings: ["alt+shift+s"] # Move focused window to a workspace defined in `workspaces` config. - commands: ["move --workspace 1", "focus --workspace 1"] From 4edcc1356b25aa6da2bb636c578af5209aa895fd Mon Sep 17 00:00:00 2001 From: js0ny Date: Thu, 13 Mar 2025 08:50:04 +0000 Subject: [PATCH 3/3] minor fix --- platforms/mac/karabiner/karabiner.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platforms/mac/karabiner/karabiner.json b/platforms/mac/karabiner/karabiner.json index 68617c6..7651575 100644 --- a/platforms/mac/karabiner/karabiner.json +++ b/platforms/mac/karabiner/karabiner.json @@ -1084,6 +1084,10 @@ "from": { "key_code": "delete_or_backspace" }, "to": [{ "key_code": "backslash" }] }, + { + "from": { "key_code": "left_command" }, + "to": [{ "key_code": "left_option" }] + }, { "from": { "key_code": "left_control" }, "to": [{ "key_code": "left_command" }] @@ -1091,10 +1095,6 @@ { "from": { "key_code": "left_option" }, "to": [{ "apple_vendor_top_case_key_code": "keyboard_fn" }] - }, - { - "from": { "key_code": "left_command" }, - "to": [{ "key_code": "left_option" }] } ], "treat_as_built_in_keyboard": true