Skip to content

Commit

Permalink
wezterm and de layout
Browse files Browse the repository at this point in the history
  • Loading branch information
yerlaser committed Sep 8, 2023
1 parent e44a410 commit b9fdf0b
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 68 deletions.
4 changes: 2 additions & 2 deletions configs/alacritty/common.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ mods = "Shift"

[[keyboard.bindings]]
chars = "\u001B-\u001Bu" # Alt-U
key = "Tab"
key = "Return"
mods = "Control"

[[keyboard.bindings]]
chars = "\u001B-\u001Bl" # Alt-L
key = "Tab"
key = "Return"
mods = "Control|Shift"

[[keyboard.bindings]]
Expand Down
80 changes: 40 additions & 40 deletions configs/macosx/layouts/De.keylayout
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
<key code="1" output="ο"/>
<key code="2" output="π"/>
<key code="3" output="ρ"/>
<key code="4" output="ß"/>
<key code="4" output="ç"/>
<key code="5" output="σ"/>
<key code="6" output="υ"/>
<key code="7" output="φ"/>
Expand All @@ -258,38 +258,38 @@
<key code="13" output="ι"/>
<key code="14" output="κ"/>
<key code="15" output="λ"/>
<key code="16" output="ν"/>
<key code="16" output="ÿ"/>
<key code="17" output="τ"/>
<key code="18" output="β"/>
<key code="19" output="γ"/>
<key code="20" output="δ"/>
<key code="21" output="ε"/>
<key code="22" output="η"/>
<key code="22" output="ý"/>
<key code="23" output="ζ"/>
<key code="24" output="μ"/> <!--=-->
<key code="24" output="œ"/> <!--=-->
<key code="25" output="ô"/>
<key code="26" output="û"/>
<key code="27" output="ê"/>
<key code="27" output="â"/>
<key code="28" output="î"/>
<key code="29" output="â"/>
<key code="30" output="ç"/> <!--]-->
<key code="31" output="ó"/>
<key code="32" output="ú"/>
<key code="33" output="é"/> <!--[-->
<key code="34" output="í"/>
<key code="35" output="á"/>
<key code="29" output="ê"/>
<key code="30" output="ß"/> <!--]-->
<key code="31" output="ö"/>
<key code="32" output="ü"/>
<key code="33" output="ä"/> <!--[-->
<key code="34" output="ï"/>
<key code="35" output="ë"/>
<key code="36" output="&#x000D;"/> <!--CR -->
<key code="37" output="ö"/>
<key code="38" output="ü"/>
<key code="39" output="ë"/> <!--'-->
<key code="40" output="ï"/>
<key code="41" output="ä"/>
<key code="42" output="œ"/> <!--Backslash-->
<key code="43" output="à"/> <!--Less than-->
<key code="37" output="ó"/>
<key code="38" output="ú"/>
<key code="39" output="á"/> <!--'-->
<key code="40" output="í"/>
<key code="41" output="é"/>
<key code="42" output="æ"/> <!--Backslash-->
<key code="43" output="è"/> <!--Less than-->
<key code="44" output="¡"/> <!--/-->
<key code="45" output="ñ"/>
<key code="46" output="ù"/>
<key code="47" output="è"/> <!--Greater than-->
<key code="47" output="à"/> <!--Greater than-->
<key code="48" output="&#x0009;"/> <!--TAB -->
<key code="49" output=" "/> <!--SPACE-->
<key code="50" output="α"/> <!--`-->
Expand Down Expand Up @@ -352,7 +352,7 @@
<key code="1" output="Ο"/>
<key code="2" output="Π"/>
<key code="3" output="Ρ"/>
<key code="4" output=""/>
<key code="4" output="Ç"/>
<key code="5" output="Σ"/>
<key code="6" output="Υ"/>
<key code="7" output="Φ"/>
Expand All @@ -364,38 +364,38 @@
<key code="13" output="Ι"/>
<key code="14" output="Κ"/>
<key code="15" output="Λ"/>
<key code="16" output="Ν"/>
<key code="16" output="Ÿ"/>
<key code="17" output="Τ"/>
<key code="18" output="Β"/>
<key code="19" output="Γ"/>
<key code="20" output="Δ"/>
<key code="21" output="Ε"/>
<key code="22" output="Η"/>
<key code="22" output="Ý"/>
<key code="23" output="Ζ"/>
<key code="24" output="Μ"/>
<key code="24" output="Œ"/> <!--=-->
<key code="25" output="Ô"/>
<key code="26" output="Û"/> <!--ampersand-->
<key code="27" output="Ê"/>
<key code="27" output="Â"/>
<key code="28" output="Î"/>
<key code="29" output="Â"/>
<key code="30" output="Ç"/> <!--]-->
<key code="31" output="Ó"/>
<key code="32" output="Ú"/>
<key code="33" output="É"/> <!--[-->
<key code="34" output="Í"/>
<key code="35" output="Á"/>
<key code="29" output="Ê"/>
<key code="30" output=""/> <!--]-->
<key code="31" output="Ö"/>
<key code="32" output="Ü"/>
<key code="33" output="Ä"/> <!--[-->
<key code="34" output="Ï"/>
<key code="35" output="Ë"/>
<key code="36" output="&#x000D;"/> <!--CR -->
<key code="37" output="Ö"/>
<key code="38" output="Ü"/>
<key code="39" output="Ë"/> <!--'-->
<key code="40" output="Ï"/>
<key code="41" output="Ä"/>
<key code="42" output="Œ"/> <!--Backslash-->
<key code="43" output="À"/> <!--Less than-->
<key code="37" output="Ó"/>
<key code="38" output="Ú"/>
<key code="39" output="Á"/> <!--'-->
<key code="40" output="Í"/>
<key code="41" output="É"/>
<key code="42" output="Æ"/> <!--Backslash-->
<key code="43" output="È"/> <!--Less than-->
<key code="44" output="¿"/>
<key code="45" output="Ñ"/>
<key code="46" output="Ù"/>
<key code="47" output="È"/> <!--Greater than-->
<key code="47" output="À"/> <!--Greater than-->
<key code="48" output="&#x0009;"/> <!--TAB -->
<key code="49" output=" "/>
<key code="50" output="Α"/> <!--`-->
Expand Down
60 changes: 34 additions & 26 deletions configs/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,41 @@ return {
hide_tab_bar_if_only_one_tab = true,
send_composed_key_when_left_alt_is_pressed = true,
send_composed_key_when_right_alt_is_pressed = false,
leader = { key = 'Period', mods = 'CMD', timeout_milliseconds = 1000 },
-- unzoom_on_switch_pane = false,
unzoom_on_switch_pane = true,
leader = { key = "q", mods = "SUPER", timeout_milliseconds = 3000 },
keys = {
{ key = "Backspace" , mods = "SHIFT", action = wezterm.action.SendString("\x1B\x7F") }, -- Alt-Backspace
{ key = "Backspace" , mods = "CTRL", action = wezterm.action.SendString("\x1B\x7F") }, -- Alt-Backspace
{ key = "Backspace" , mods = "ALT", action = wezterm.action.SendString("\x1B[D") }, -- Left
{ key = "Backspace" , mods = "ALT|SHIFT", action = wezterm.action.SendString("\x1B[1;2H") }, -- Shift-Home
{ key = "Return" , mods = "SHIFT", action = wezterm.action.SendString("\x1B") }, -- Escape
{ key = "Return" , mods = "ALT", action = wezterm.action.SendString("\x1B[C") }, -- Right
{ key = "Return" , mods = "ALT|SHIFT", action = wezterm.action.SendString("\x1B[1;2F") }, -- Shift-End
{ key = "Space" , mods = "CTRL|SHIFT", action = wezterm.action.SendString("\x0F") }, -- Ctrl-o
{ key = "Space" , mods = "ALT", action = wezterm.action.SendString("\x1B[A") }, -- Up
{ key = "Space" , mods = "ALT|SHIFT", action = wezterm.action.SendString("\x1B[5;2~") }, -- Shift-PageUp
{ key = "Tab" , mods = "CTRL", action = wezterm.action.SendString("\x1B-\x1Bu") }, -- Alt-- Alt-u
{ key = "Tab" , mods = "CTRL|SHIFT", action = wezterm.action.SendString("\x1B-\x1Bl") }, -- Alt-- Alt-l
{ key = "Tab" , mods = "ALT", action = wezterm.action.SendString("\x1B[B") }, -- Down
{ key = "Tab" , mods = "ALT|SHIFT", action = wezterm.action.SendString("\x1B[6;2~") }, -- Shift-PageDown
-- { key = "d" , mods = "SUPER", action = wezterm.action.SplitPane { direction = 'Down' } },
-- { key = "t" , mods = "SUPER", action = wezterm.action.SplitPane { direction = 'Right' } },
{ key = "LeftBracket" , mods = "SUPER", action = wezterm.action.ActivatePaneDirection 'Prev' },
{ key = "RightBracket" , mods = "SUPER", action = wezterm.action.ActivatePaneDirection 'Next' },
{ key = "Return" , mods = "SUPER|SHIFT", action = wezterm.action.TogglePaneZoomState },
-- { key = 'Return', mods = 'CMD', action = wezterm.action_callback(
-- function(win, pane)
-- win:maximize()
-- end
-- ) },
{ key = "q" , mods = "SUPER" , action = wezterm.action.DisableDefaultAssignment },
{ key = "w" , mods = "SUPER" , action = wezterm.action.DisableDefaultAssignment },
{ key = "w" , mods = "SUPER" , action = wezterm.action.ActivatePaneDirection "Next" },
{ key = "x" , mods = "SUPER" , action = wezterm.action.ActivateCopyMode },
{ key = "d" , mods = "LEADER" , action = wezterm.action.SplitPane { direction = "Down" } },
{ key = "r" , mods = "LEADER" , action = wezterm.action.SplitPane { direction = "Right" } },
{ key = "h" , mods = "LEADER" , action = wezterm.action.ActivatePaneDirection "Left" },
{ key = "j" , mods = "LEADER" , action = wezterm.action.ActivatePaneDirection "Down" },
{ key = "k" , mods = "LEADER" , action = wezterm.action.ActivatePaneDirection "Up" },
{ key = "l" , mods = "LEADER" , action = wezterm.action.ActivatePaneDirection "Right" },
{ key = "f" , mods = "LEADER" , action = wezterm.action.TogglePaneZoomState },
{ key = "q" , mods = "LEADER" , action = wezterm.action.CloseCurrentTab { confirm = true } },
{ key = "w" , mods = "LEADER" , action = wezterm.action.CloseCurrentPane { confirm = true } },
{ key = "Backspace" , mods = "ALT" , action = wezterm.action.SendString("\x1B[D") }, -- Left
{ key = "Backspace" , mods = "ALT|SHIFT" , action = wezterm.action.SendString("\x1B[1;2H") }, -- Shift-Home
{ key = "Backspace" , mods = "SHIFT" , action = wezterm.action.SendString("\x1B\x7F") }, -- Alt-Backspace
{ key = "Backspace" , mods = "CTRL" , action = wezterm.action.SendString("\x1B\x7F") }, -- Alt-Backspace
{ key = "Return" , mods = "ALT" , action = wezterm.action.SendString("\x1B[C") }, -- Right
{ key = "Return" , mods = "ALT|SHIFT" , action = wezterm.action.SendString("\x1B[1;2F") }, -- Shift-End
{ key = "Return" , mods = "SHIFT" , action = wezterm.action.SendString("\x1B") }, -- Escape
{ key = "Return" , mods = "CTRL" , action = wezterm.action.SendString("\x1B-\x1Bu") }, -- Alt-- Alt-u
{ key = "Return" , mods = "CTRL|SHIFT" , action = wezterm.action.SendString("\x1B-\x1Bl") }, -- Alt-- Alt-l
{ key = "Space" , mods = "ALT" , action = wezterm.action.SendString("\x1B[A") }, -- Up
{ key = "Space" , mods = "ALT|SHIFT" , action = wezterm.action.SendString("\x1B[5;2~") }, -- Shift-PageUp
{ key = "Space" , mods = "CTRL|SHIFT" , action = wezterm.action.SendString("\x0F") }, -- Ctrl-o
{ key = "Tab" , mods = "ALT" , action = wezterm.action.SendString("\x1B[B") }, -- Down
{ key = "Tab" , mods = "ALT|SHIFT" , action = wezterm.action.SendString("\x1B[6;2~") }, -- Shift-PageDown
{ key = "UpArrow" , mods = "CMD" , action = wezterm.action_callback(
function(win, pane)
win:maximize()
end
) },
},
use_ime = false,
window_decorations = "RESIZE",
Expand Down

0 comments on commit b9fdf0b

Please sign in to comment.