wezterm fixings

This commit is contained in:
Daniel Lundin 2021-04-02 17:31:47 +02:00
parent ecaa74de18
commit d70a1c9649
6 changed files with 118 additions and 59 deletions

View file

@ -21,7 +21,6 @@ end
return { return {
-- automatically_reload_config = false, -- automatically_reload_config = false,
font = font_with_fallback("Iosevka Term SS09 Light"), font = font_with_fallback("Iosevka Term SS09 Light"),
font_rules = { font_rules = {
{ {
@ -58,8 +57,8 @@ return {
bottom = 0, bottom = 0,
}, },
enable_tab_bar = true, enable_tab_bar = false,
show_tab_index_in_tab_bar = false, show_tab_index_in_tab_bar = true,
enable_scroll_bar = false, enable_scroll_bar = false,
window_decorations = "NONE", window_decorations = "NONE",
scrollback_lines = 5000, scrollback_lines = 5000,
@ -100,44 +99,99 @@ return {
}, },
colors = { colors = {
foreground = "#ded9ce", foreground = "#ded9ce",
background = "#171717", background = "#171717",
cursor_bg = "#FB8C00", cursor_bg = "#FB8C00",
-- cursor_fg = "black", -- cursor_fg = "black",
cursor_border = "#FB8C00", cursor_border = "#FB8C00",
split = "#444444", split = "#444444",
ansi = { ansi = {
"#000000", "#000000",
"#ff605a", "#ff605a",
"#b1e869", "#b1e869",
"#ead89c", "#ead89c",
"#5da9f6", "#5da9f6",
"#e86aff", "#e86aff",
"#82fff6", "#82fff6",
"#ded9ce" "#ded9ce"
},
brights = {
"#313131",
"#f58b7f",
"#dcf88f",
"#eee5b2",
"#a5c7ff",
"#ddaaff",
"#b6fff9",
"#fefffe"
},
tab_bar = {
background = "#000000",
active_tab = {
bg_color = "#171717",
fg_color = "#c0b070",
intensity = "Bold",
},
inactive_tab = {
bg_color = "#000000",
fg_color = "#c0c0c0",
intensity = "Half",
}, },
brights = { -- You can configure some alternate styling when the mouse pointer
"#313131", -- moves over inactive tabs
"#f58b7f", inactive_tab_hover = {
"#dcf88f", bg_color = "#333333",
"#eee5b2", fg_color = "#909090",
"#a5c7ff", italic = true,
"#ddaaff",
"#b6fff9",
"#fefffe"
} }
},
ssh_domains = {
{
name = "dln-dev",
remote_address = "dln-dev",
username = "dln",
} }
}, },
tab_bar_style = {
active_tab_left = wezterm.format({
{Background={Color="#171717"}},
{Foreground={Color="#000000"}},
{Text=" "},
}),
active_tab_right = wezterm.format({
{Background={Color="#171717"}},
{Foreground={Color="#000000"}},
{Text=" "},
}),
inactive_tab_left = wezterm.format({
{Background={Color="#000000"}},
{Foreground={Color="#171717"}},
{Text=" "},
}),
inactive_tab_right = wezterm.format({
{Background={Color="#000000"}},
{Foreground={Color="#171717"}},
{Text=""},
}),
inactive_tab_hover_left = wezterm.format({
{Background={Color="#333333"}},
{Foreground={Color="#ffffff"}},
{Text=" "},
}),
inactive_tab_hover_right = wezterm.format({
{Background={Color="#333333"}},
{Foreground={Color="#ffffff"}},
{Text=" "},
}),
},
-- ssh_domains = {
-- {
-- name = "dln-dev",
-- remote_address = "dln-dev",
-- username = "dln",
-- }
-- },
} }

View file

@ -1,11 +0,0 @@
[Desktop Entry]
Name=tmux local
GenericName=tmux-local
StartupWMClass=tmux-local
Type=Application
TryExec=/usr/bin/wezterm
Icon=org.wezfurlong.wezterm
Terminal=false
Categories=System;TerminalEmulator;
Exec=/usr/bin/wezterm start --class=tmux-local
# Exec=/usr/bin/wezterm connect local

View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name=wezterm-dln-dev
GenericName=wezterm-dln-dev
StartupWMClass=wezterm-dln-dev
Type=Application
TryExec=/usr/bin/wezterm
Icon=org.wezfurlong.wezterm
Terminal=false
Categories=System;TerminalEmulator;
Exec=/usr/bin/wezterm --config 'default_prog={"ssh", "dln-dev"}' start --class=wezterm-dln-dev

View file

@ -1,10 +1,10 @@
[Desktop Entry] [Desktop Entry]
Name=tmux devel Name=wezterm-local
GenericName=tmux-devel GenericName=wezterm-local
StartupWMClass=tmux-devel StartupWMClass=wezterm-local
Type=Application Type=Application
TryExec=/usr/bin/wezterm TryExec=/usr/bin/wezterm
Icon=org.wezfurlong.wezterm Icon=org.wezfurlong.wezterm
Terminal=false Terminal=false
Categories=System;TerminalEmulator; Categories=System;TerminalEmulator;
Exec=/usr/bin/wezterm start --class=tmux-devel -- ssh devel Exec=/usr/bin/wezterm start --class=wezterm-local

View file

@ -7,6 +7,7 @@ Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.
AddressFamily inet AddressFamily inet
RequestTty yes RequestTty yes
Host dln-dev
Host devel Host devel
Hostname 10.1.100.16 Hostname 10.1.100.16
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
@ -20,4 +21,3 @@ LocalForward 127.0.0.1:8250 127.0.0.1:8250
LocalForward 127.0.0.1:8888 127.0.0.1:8888 LocalForward 127.0.0.1:8888 127.0.0.1:8888
RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra
RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/1000/gnupg/S.gpg-agent.ssh RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/1000/gnupg/S.gpg-agent.ssh
RemoteCommand /usr/bin/env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 /usr/bin/tmux new-session -A -D -s 0

24
.zshrc
View file

@ -76,6 +76,7 @@ cd_func () {
fi fi
"cd" "${dir}" "cd" "${dir}"
fasd -A $PWD fasd -A $PWD
set_win_title
} }
alias cd=cd_func alias cd=cd_func
@ -124,6 +125,19 @@ alias xc='xclip -selection clipboard'
alias c='cut -c-${COLUMNS}' alias c='cut -c-${COLUMNS}'
## Prompt
eval "$(starship init zsh)"
function _title(){
printf '%-16.16s' "$(starship module directory | sed 's/\x1b\[[0-9;]*m//g')"
}
function set_win_title(){
echo -ne "\033]0; $(_title) \007"
}
set_win_title
## vim ## vim
export EDITOR=nvim export EDITOR=nvim
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
@ -131,7 +145,7 @@ export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
e () e ()
{ {
nvr --remote $(readlink -f "$@") nvr --remote $(readlink -f "$@")
echo -e "\x1b]2;1234567890123456$(date +%s):nvim\x1b\\" echo -e "\x1b]2;$(_title) $(date +%s):nvim\x1b\\"
} }
## fzf ## fzf
@ -168,14 +182,6 @@ GOPROXY=https://proxy.golang.org/
## Ansible ## Ansible
export ANSIBLE_NOCOWS=1 export ANSIBLE_NOCOWS=1
## Prompt
eval "$(starship init zsh)"
# function set_win_title(){
# echo -ne "\033]0; $(basename $PWD) \007"
# }
# precmd_functions+=(set_win_title)
export PATH=$HOME/bin:$PATH export PATH=$HOME/bin:$PATH
autoload -U +X bashcompinit && bashcompinit autoload -U +X bashcompinit && bashcompinit