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)]
|
||||
{:default_prog _G.default_shell
|
||||
{:default_prog [_G.shells.fish :--interactive]
|
||||
;; Appearance
|
||||
:color_scheme "Dracula (Official)"
|
||||
:window_padding {:left :6px :right :6px :top :2px :bottom :4px}
|
||||
|
@ -19,19 +19,35 @@
|
|||
:line_height 0.9
|
||||
:freetype_load_target :Light
|
||||
;: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_bindings [; Only select text and don't open hyperlinks
|
||||
{:event {:Up {:streak 1 :button :Left}}
|
||||
:mods :NONE
|
||||
:action (wezterm.action {:ExtendSelectionToMouseCursor :Cell})}
|
||||
; Don't copy on double click
|
||||
; Only select word on double click
|
||||
{:event {:Up {:streak 2 :button :Left}}
|
||||
: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
|
||||
{:event {:Up {:streak 1 :button :Left}}
|
||||
:mods :CMD
|
||||
:mods :SUPER
|
||||
:action :OpenLinkAtMouseCursor}]
|
||||
;; 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/btop.nix
|
||||
|
||||
(import ../programs/custom-nix-cache.nix (args // { inherit secret; }))
|
||||
|
||||
../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;
|
||||
|
||||
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');
|
||||
return cfg
|
||||
|
|
Loading…
Reference in a new issue