1
0
Fork 0
dotfiles/home/config/wezterm/config.fnl

60 lines
2.4 KiB
Plaintext
Raw Normal View History

2022-12-21 18:02:41 +00:00
(let [wezterm (require :wezterm)
window-padding 15]
2022-12-20 16:46:51 +00:00
{:default_prog [_G.shells.fish :--interactive]
2022-12-19 21:02:48 +00:00
;; Appearance
:color_scheme "Dracula (Official)"
2022-12-21 18:02:41 +00:00
:window_decorations :RESIZE
:window_padding {:left window-padding
:right window-padding
:top window-padding
:bottom window-padding}
2022-12-19 21:02:48 +00:00
:enable_tab_bar true
:use_fancy_tab_bar true
:hide_tab_bar_if_only_one_tab true
2022-12-21 18:02:41 +00:00
:tab_bar_at_bottom true
2022-12-19 21:02:48 +00:00
;; Fonts
:font (wezterm.font_with_fallback [{:family "JetBrains Mono"
:weight :Medium}
"Symbols Nerd Font"
"Apple Symbols"
"Apple Color Emoji"
"Noto Sans Symbols"
"Noto Sans Symbols2"
:Unifont])
:font_size 13
:line_height 0.9
:freetype_load_target :Light
;:freetype_render_target :HorizontalLcd
2022-12-20 16:46:51 +00:00
:allow_square_glyphs_to_overflow_width :WhenFollowedBySpace
;; Keys
:keys [{:key :UpArrow
:mods :SHIFT
:action (wezterm.action.ScrollToPrompt -1)}
{:key :DownArrow
:mods :SHIFT
:action (wezterm.action.ScrollToPrompt 1)}]
2022-12-19 21:02:48 +00:00
;; Mouse
:mouse_bindings [; Only select text and don't open hyperlinks
{:event {:Up {:streak 1 :button :Left}}
:mods :NONE
:action (wezterm.action {:ExtendSelectionToMouseCursor :Cell})}
2022-12-20 16:46:51 +00:00
; Only select word on double click
2022-12-19 21:02:48 +00:00
{:event {:Up {:streak 2 :button :Left}}
:mods :NONE
2022-12-20 16:46:51 +00:00
:action (wezterm.action.SelectTextAtMouseCursor :Word)}
; Select entire output of command
{:event {:Down {:streak 3 :button :Left}}
:mods :NONE
:action (wezterm.action.SelectTextAtMouseCursor :SemanticZone)}
2022-12-19 21:02:48 +00:00
; CMD-click to open a hyperlink
{:event {:Up {:streak 1 :button :Left}}
2022-12-20 16:46:51 +00:00
:mods :SUPER
2022-12-19 21:02:48 +00:00
:action :OpenLinkAtMouseCursor}]
;; Scrollback
2022-12-20 16:46:51 +00:00
:scrollback_lines 5000
;; Launch Menu
:launch_menu [{:label :Btop++ :args [_G.programs.btop]}]
;; Other
:check_for_updates false})
2022-12-19 21:02:48 +00:00