feat(wezterm): update wezterm.fnl

Realign
Use more macros
This commit is contained in:
reo101 2024-05-04 22:48:35 +03:00
parent d0858c5547
commit a73cd43bbf
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -1,6 +1,6 @@
(local wezterm (require :wezterm)) (local wezterm (require :wezterm))
(local config (or (and wezterm.config_builder (local config (if wezterm.config_builder
(wezterm.config_builder)) (wezterm.config_builder)
{})) {}))
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
@ -16,27 +16,30 @@
:ss02 :ss03 :ss05 :ss07 :ss09 :ss02 :ss03 :ss05 :ss07 :ss09
:zero]) :zero])
(set config.freetype_render_target :Light) (doto config
(set config.window_background_opacity 0.8) (tset :freetype_render_target :Light)
(set config.window_background_image "") (tset :window_background_opacity 0.8)
(set config.window_decorations :RESIZE) (tset :window_background_image "")
(set config.window_close_confirmation :NeverPrompt) (tset :window_decorations :RESIZE)
(set config.use_resize_increments false) (tset :window_close_confirmation :NeverPrompt)
(set config.enable_scroll_bar false) (tset :use_resize_increments false)
(set config.enable_tab_bar false) (tset :enable_scroll_bar false)
(set config.adjust_window_size_when_changing_font_size false) (tset :enable_tab_bar false)
(set config.window_padding {:left 0 (tset :window_padding {:left 0
:right 0 :right 0
:top 0 :top 0
:bottom 0}) :bottom 0})
(tset :adjust_window_size_when_changing_font_size false))
;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;
;;; Keybinds ;;; ;;; Keybinds ;;;
;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;
(fn keybind [mods key action] (fn keybind [mods key action]
(when (= (type action) :table) (local action (if (= (type action) :table)
(set action (wezterm.action action))) (wezterm.action action)
;; else
action))
{: mods {: mods
: key : key
: action}) : action})