@@ -0,0 +1,133 @@ |
| 1 | +-- ::: |
| 2 | +-- :::: sample.lua :::: |
| 3 | +-- :::::::::::::::::::::: |
| 4 | +-- |
| 5 | +-- Author: @espadonne (mfw) |
| 6 | +-- Description: just my wezterm config. |
| 7 | +-- but it's decorated for use with |
| 8 | +-- my lil PyQt6 widget, wezztershier. |
| 9 | +-- That tool looks at a WezTerm config with decorations |
| 10 | +-- of my pleasing, and allows live editing of the terminal |
| 11 | +-- emulator's visual effects via PyQT6 gui. |
| 12 | +-- |
| 13 | + |
| 14 | + |
| 15 | +-- ::: |
| 16 | +-- :::: BOILERPLATE :::: |
| 17 | +-- ::::::::::::::::::::::: |
| 18 | +-- |
| 19 | +local wezterm = require 'wezterm' |
| 20 | + |
| 21 | +local config = {} |
| 22 | +if wezterm.config_builder then |
| 23 | + config = wezterm.config_builder() |
| 24 | +end |
| 25 | + |
| 26 | + |
| 27 | +-- ::: |
| 28 | +-- :::: TUNER FOR WEZZTERSHIER :::: |
| 29 | +-- ::::: :::::::::::::::::::::: ::::: |
| 30 | + |
| 31 | +-- <<TUNER-START>> |
| 32 | +-- @ui: slider(min=10, max=42, step=1) |
| 33 | +config.font_size = 30 |
| 34 | +-- @ui: slider(min=0.05, max=1.0, step=0.01) |
| 35 | +config.window_background_opacity = 0.3 |
| 36 | +-- @ui: select(options="Gruvbox Dark, Gruvbox Light, Catppuccin Mocha") |
| 37 | +config.color_scheme = "Gruvbox Dark" |
| 38 | +-- @ui: slider(min=1, max=100, step=1) |
| 39 | +config.macos_window_background_blur = 32 |
| 40 | +-- <<TUNER-END>> |
| 41 | + |
| 42 | + |
| 43 | +-- ::: |
| 44 | +-- :::: TO ADD HANDLING FOR :: later :::: |
| 45 | +-- ::::: :::::::::::::::::::::::::::: ::::: |
| 46 | +-- |
| 47 | +config.debug_key_events = false |
| 48 | +config.enable_scroll_bar = true |
| 49 | +config.colors = config.colors or {} |
| 50 | +config.colors.background = "#333333" |
| 51 | +config.window_decorations = "RESIZE" |
| 52 | +config.pane_focus_follows_mouse = true |
| 53 | +config.native_macos_fullscreen_mode = true |
| 54 | +config.hide_tab_bar_if_only_one_tab = true |
| 55 | +config.font = wezterm.font("JetBrains Mono") |
| 56 | + |
| 57 | + |
| 58 | +-- ::: |
| 59 | +-- :::: DYNAMICS :: the spice of life :::: |
| 60 | +-- ::::: ::::::::::::::::::::::::::::: ::::: |
| 61 | +-- |
| 62 | +-- NOTE: just a clock for now lol, and I hide |
| 63 | +-- it most of the time, too ..lol |
| 64 | +wezterm.on("update-right-status", function(window, pane) |
| 65 | + local date = wezterm.strftime(" %Y-%m-%d %H:%M:%S ") |
| 66 | + window:set_right_status(date) |
| 67 | +end) |
| 68 | + |
| 69 | + |
| 70 | +-- ::: |
| 71 | +-- :::: KEYBINDS :: my onetrue :::: |
| 72 | +-- ::::: :::::::::::::::::::::: ::::: |
| 73 | +-- |
| 74 | +config.keys = { |
| 75 | + { |
| 76 | + key = "R", |
| 77 | + mods = "CTRL|SHIFT", |
| 78 | + action = wezterm.action.ReloadConfiguration, |
| 79 | + }, |
| 80 | + { |
| 81 | + key = "W", |
| 82 | + mods = "CTRL|SHIFT", |
| 83 | + action = wezterm.action.CloseCurrentTab { confirm = true }, |
| 84 | + }, |
| 85 | + { |
| 86 | + key = "T", |
| 87 | + mods = "CTRL|SHIFT", |
| 88 | + action = wezterm.action.SpawnTab("CurrentPaneDomain"), |
| 89 | + }, |
| 90 | + { |
| 91 | + key = "UpArrow", |
| 92 | + mods = "CMD|OPT|CTRL", |
| 93 | + action = wezterm.action.SplitVertical { domain = "CurrentPaneDomain" }, |
| 94 | + }, |
| 95 | + { |
| 96 | + key = "RightArrow", |
| 97 | + mods = "CMD|OPT|CTRL", |
| 98 | + action = wezterm.action.SplitHorizontal { domain = "CurrentPaneDomain" }, |
| 99 | + }, |
| 100 | +} |
| 101 | + |
| 102 | + |
| 103 | +-- ::: |
| 104 | +-- :::: TAB BAR SETTINGS :::: |
| 105 | +-- ::::: :::::::::::::::: ::::: |
| 106 | +-- |
| 107 | +-- NOTE: really just colors rn; |
| 108 | +-- the live timestamp is scripted. |
| 109 | +config.colors.tab_bar = { |
| 110 | + background = "#333333", |
| 111 | + active_tab = { |
| 112 | + bg_color = "#333333", |
| 113 | + fg_color = "#FFFFFF", |
| 114 | + }, |
| 115 | + inactive_tab = { |
| 116 | + bg_color = "#333333", |
| 117 | + fg_color = "#777777", |
| 118 | + }, |
| 119 | + inactive_tab_hover = { |
| 120 | + bg_color = "#444444", |
| 121 | + fg_color = "#DDDDDD", |
| 122 | + }, |
| 123 | + new_tab = { |
| 124 | + bg_color = "#333333", |
| 125 | + fg_color = "#FFFFFF", |
| 126 | + }, |
| 127 | + new_tab_hover = { |
| 128 | + bg_color = "#444444", |
| 129 | + fg_color = "#FFFFFF", |
| 130 | + }, |
| 131 | +} |
| 132 | + |
| 133 | +return config |