wezterm: Update config
This commit is contained in:
parent
c1cde2e53b
commit
24685dff43
4 changed files with 44 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
(let [wezterm (require :wezterm)]
|
(let [wezterm (require :wezterm)]
|
||||||
{:default_prog _G.default_shell
|
{:default_prog [_G.shells.fish :--interactive]
|
||||||
;; Appearance
|
;; Appearance
|
||||||
:color_scheme "Dracula (Official)"
|
:color_scheme "Dracula (Official)"
|
||||||
:window_padding {:left :6px :right :6px :top :2px :bottom :4px}
|
:window_padding {:left :6px :right :6px :top :2px :bottom :4px}
|
||||||
|
@ -19,19 +19,35 @@
|
||||||
:line_height 0.9
|
:line_height 0.9
|
||||||
:freetype_load_target :Light
|
:freetype_load_target :Light
|
||||||
;:freetype_render_target :HorizontalLcd
|
;:freetype_render_target :HorizontalLcd
|
||||||
|
: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)}]
|
||||||
;; Mouse
|
;; Mouse
|
||||||
:mouse_bindings [; Only select text and don't open hyperlinks
|
:mouse_bindings [; Only select text and don't open hyperlinks
|
||||||
{:event {:Up {:streak 1 :button :Left}}
|
{:event {:Up {:streak 1 :button :Left}}
|
||||||
:mods :NONE
|
:mods :NONE
|
||||||
:action (wezterm.action {:ExtendSelectionToMouseCursor :Cell})}
|
:action (wezterm.action {:ExtendSelectionToMouseCursor :Cell})}
|
||||||
; Don't copy on double click
|
; Only select word on double click
|
||||||
{:event {:Up {:streak 2 :button :Left}}
|
{:event {:Up {:streak 2 :button :Left}}
|
||||||
:mods :NONE
|
:mods :NONE
|
||||||
:action :Nop}
|
:action (wezterm.action.SelectTextAtMouseCursor :Word)}
|
||||||
|
; Select entire output of command
|
||||||
|
{:event {:Down {:streak 3 :button :Left}}
|
||||||
|
:mods :NONE
|
||||||
|
:action (wezterm.action.SelectTextAtMouseCursor :SemanticZone)}
|
||||||
; CMD-click to open a hyperlink
|
; CMD-click to open a hyperlink
|
||||||
{:event {:Up {:streak 1 :button :Left}}
|
{:event {:Up {:streak 1 :button :Left}}
|
||||||
:mods :CMD
|
:mods :SUPER
|
||||||
:action :OpenLinkAtMouseCursor}]
|
:action :OpenLinkAtMouseCursor}]
|
||||||
;; Scrollback
|
;; Scrollback
|
||||||
:scrollback_lines 5000})
|
:scrollback_lines 5000
|
||||||
|
;; Launch Menu
|
||||||
|
:launch_menu [{:label :Btop++ :args [_G.programs.btop]}]
|
||||||
|
;; Other
|
||||||
|
:check_for_updates false})
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@ in
|
||||||
|
|
||||||
../programs/bat.nix
|
../programs/bat.nix
|
||||||
|
|
||||||
|
../programs/btop.nix
|
||||||
|
|
||||||
(import ../programs/custom-nix-cache.nix (args // { inherit secret; }))
|
(import ../programs/custom-nix-cache.nix (args // { inherit secret; }))
|
||||||
|
|
||||||
../programs/fzf.nix
|
../programs/fzf.nix
|
||||||
|
|
14
home/programs/btop.nix
Normal file
14
home/programs/btop.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.btop = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
color_theme = "${pkgs.btop.outPath}/share/btop/themes/dracula.theme";
|
||||||
|
theme_background = true;
|
||||||
|
truecolor = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -5,7 +5,13 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
_G.default_shell = { '${pkgs.fish.outPath}/bin/fish', '--interactive'};
|
_G.shells = {
|
||||||
|
fish = '${pkgs.fish.outPath}/bin/fish',
|
||||||
|
};
|
||||||
|
|
||||||
|
_G.programs = {
|
||||||
|
btop = '${pkgs.btop.outPath}/bin/btop',
|
||||||
|
};
|
||||||
|
|
||||||
local cfg = require('config');
|
local cfg = require('config');
|
||||||
return cfg
|
return cfg
|
||||||
|
|
Loading…
Reference in a new issue