aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-03-05 16:01:01 -0800
committerGravatar Tom Willemse2025-03-05 16:01:01 -0800
commitbf20426225af0fdec73e68b48443544208e306cf (patch)
tree4473ad2c3f5091ff7adc78ac6b9e29a0fb7053c8
parent8a0f1eb5770582927dd6d7cca7718453277c0b71 (diff)
downloadnew-dotfiles-bf20426225af0fdec73e68b48443544208e306cf.tar.gz
new-dotfiles-bf20426225af0fdec73e68b48443544208e306cf.zip
Wezterm: Add configuration
This should be moved into Guix, but needs more work
-rw-r--r--wezterm/.config/wezterm/wezterm.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua
new file mode 100644
index 0000000..4e03d05
--- /dev/null
+++ b/wezterm/.config/wezterm/wezterm.lua
@@ -0,0 +1,26 @@
+local wezterm = require 'wezterm'
+local config = {}
+
+config.keys = {
+ {
+ key = 'E',
+ mods = 'CTRL|SHIFT',
+ action = wezterm.action.QuickSelectArgs {
+ label = 'open url',
+ patterns = {
+ 'https?://[[:alnum:]./-]+[[:alnum:]/]',
+ },
+ action = wezterm.action_callback(function(window, pane)
+ local url = window:get_selection_text_for_pane(pane)
+ wezterm.log_info('opening: ' .. url)
+ wezterm.open_with(url)
+ end),
+ },
+ },
+}
+
+config.color_scheme = 'Dracula'
+-- config.font_dirs = { "/home/tomwillemsen/.guix-home/profile/share/fonts/truetype" }
+-- config.font = wezterm.font 'Fantasque Sans Mono'
+
+return config