From ae6d6581f3eeab8ede2249ba31935e39fea17406 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 17 Dec 2022 16:17:40 +0100 Subject: [PATCH] Replace Kitty with Wezterm --- .config/helix/languages.toml | 5 ++++ .config/kitty/kitty.conf | 12 --------- .config/kitty/up.session | 6 ----- wezterm/wezterm.lua | 50 ++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 18 deletions(-) delete mode 100644 .config/kitty/kitty.conf delete mode 100644 .config/kitty/up.session create mode 100644 wezterm/wezterm.lua diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 89ad90d..80766d9 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -29,6 +29,11 @@ name = "html" formatter = { command = "djlint", args = ["--reformat", "--quiet", "--preserve-blank-lines", "--format-css", "--format-js", "-"] } auto-format = true +[[language]] +name = "lua" +formatter = { command = "stylua", args = ["-"] } +auto-format = true + [[language]] name = "julia" auto-format = true diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf deleted file mode 100644 index 8a9066e..0000000 --- a/.config/kitty/kitty.conf +++ /dev/null @@ -1,12 +0,0 @@ -shell /home/mo/.cargo/bin/zellij - -scrollback_lines 100000 - -hide_window_decorations yes - -font_family JetBrainsMono Nerd Font Mono -font_size 12.0 - -enable_audio_bell no - -update_check_interval 0 diff --git a/.config/kitty/up.session b/.config/kitty/up.session deleted file mode 100644 index db98aa4..0000000 --- a/.config/kitty/up.session +++ /dev/null @@ -1,6 +0,0 @@ -layout vertical - -launch fish -c "python ~/.scripts/update.py rpm-ostree" -launch fish -c "python ~/.scripts/update.py flatpak" -launch fish -c "python ~/.scripts/update.py cargo" -launch fish -c "cd ~/servers/ansible && ansible-playbook playbooks/update.yml; read -P 'Enter'" diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua new file mode 100644 index 0000000..615f3f6 --- /dev/null +++ b/wezterm/wezterm.lua @@ -0,0 +1,50 @@ +local wezterm = require("wezterm") +local act = wezterm.action +local mux = wezterm.mux + +wezterm.on("gui-startup", function(cmd) + local tab, pane, window = mux.spawn_window({ args = cmd.args }) + window:gui_window():maximize() +end) + +return { + default_prog = { "/home/mo/.cargo/bin/zellij" }, + + disable_default_key_bindings = true, + keys = { + { key = "V", mods = "SHIFT|CTRL", action = act.PasteFrom("Clipboard") }, + { key = "_", mods = "SHIFT|CTRL", action = act.DecreaseFontSize }, + { key = "*", mods = "SHIFT|CTRL", action = act.IncreaseFontSize }, + { key = "=", mods = "SHIFT|CTRL", action = act.ResetFontSize }, + }, + + disable_default_mouse_bindings = true, + mouse_bindings = { + { + event = { Up = { streak = 1, button = "Left" } }, + mods = "SHIFT", + action = act.OpenLinkAtMouseCursor, + }, + }, + + enable_tab_bar = false, + + enable_scroll_bar = false, + scrollback_lines = 0, + + window_decorations = "RESIZE", + window_padding = { + left = "0cell", + right = "0cell", + top = "0cell", + bottom = "0cell", + }, + + audible_bell = "Disabled", + + allow_win32_input_mode = false, + + automatically_reload_config = false, + + check_for_updates = false, +}