mirror of
https://github.com/sameer1612/.dotfiles.git
synced 2024-11-19 18:01:53 +02:00
added wezterm and yazi
This commit is contained in:
parent
850591c475
commit
4b10293254
@ -59,6 +59,11 @@ if.app-id = 'com.microsoft.VSCode'
|
||||
check-further-callbacks = true
|
||||
run = 'layout tiling'
|
||||
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.github.wez.wezterm'
|
||||
check-further-callbacks = true
|
||||
run = 'layout tiling'
|
||||
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'org.mozilla.com.zen.browser'
|
||||
if.window-title-regex-substring = 'Picture-in-Picture'
|
||||
@ -72,6 +77,10 @@ run = 'layout floating'
|
||||
if.app-id = 'net.kovidgoyal.kitty'
|
||||
run = "move-node-to-workspace 1"
|
||||
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.github.wez.wezterm'
|
||||
run = "move-node-to-workspace 1"
|
||||
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'org.gnu.Emacs'
|
||||
run = "move-node-to-workspace 1"
|
||||
|
40
.config/wezterm/wezterm.lua
Normal file
40
.config/wezterm/wezterm.lua
Normal file
@ -0,0 +1,40 @@
|
||||
local wezterm = require("wezterm")
|
||||
local config = wezterm.config_builder()
|
||||
local action = wezterm.action
|
||||
|
||||
config = {
|
||||
window_decorations = "RESIZE",
|
||||
window_padding = {
|
||||
bottom = 0,
|
||||
right = 0,
|
||||
},
|
||||
|
||||
color_scheme = "Everforest Dark Medium (Gogh)",
|
||||
font = wezterm.font("VictorMono Nerd Font", { weight = "Medium" }),
|
||||
font_size = 18,
|
||||
|
||||
enable_tab_bar = true,
|
||||
hide_tab_bar_if_only_one_tab = true,
|
||||
tab_bar_at_bottom = true,
|
||||
show_close_tab_button_in_tabs = false,
|
||||
show_new_tab_button_in_tab_bar = false,
|
||||
show_tab_index_in_tab_bar = false,
|
||||
|
||||
scrollback_lines = 10000,
|
||||
|
||||
keys = {
|
||||
{ mods = "OPT", key = "LeftArrow", action = action.SendKey({ mods = "ALT", key = "b" }) },
|
||||
{ mods = "OPT", key = "RightArrow", action = action.SendKey({ mods = "ALT", key = "f" }) },
|
||||
{ mods = "CMD", key = "LeftArrow", action = action.SendKey({ mods = "CTRL", key = "a" }) },
|
||||
{ mods = "CMD", key = "RightArrow", action = action.SendKey({ mods = "CTRL", key = "e" }) },
|
||||
{ mods = "CMD", key = "Backspace", action = action.SendKey({ mods = "CTRL", key = "u" }) },
|
||||
{
|
||||
mods = "CMD|SHIFT",
|
||||
key = "Enter",
|
||||
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
|
||||
},
|
||||
{ mods = "CMD", key = "Enter", action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }) },
|
||||
},
|
||||
}
|
||||
|
||||
return config
|
0
.config/yazi/package.toml
Normal file
0
.config/yazi/package.toml
Normal file
0
.config/yazi/theme.toml
Normal file
0
.config/yazi/theme.toml
Normal file
8
.config/yazi/y.sh
Executable file
8
.config/yazi/y.sh
Executable file
@ -0,0 +1,8 @@
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
}
|
12
.config/yazi/yazi.toml
Normal file
12
.config/yazi/yazi.toml
Normal file
@ -0,0 +1,12 @@
|
||||
[manager]
|
||||
ratio = [2, 3, 3]
|
||||
|
||||
[plugin]
|
||||
prepend_previewers = [
|
||||
{ name = "*.csv", run = "rich-preview"}, # for csv files
|
||||
{ name = "*.md", run = "rich-preview" }, # for markdown (.md) files
|
||||
{ name = "*.rst", run = "rich-preview"}, # for restructured text (.rst) files
|
||||
{ name = "*.ipynb", run = "rich-preview"}, # for jupyter notebooks (.ipynb)
|
||||
{ name = "*.json", run = "rich-preview"}, # for json (.json) files
|
||||
{ name = "*.lang_type", run = "rich-preview"} # for particular language files eg. .py, .go., .lua, etc.
|
||||
]
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@ node_modules
|
||||
.config/zed/conversations/
|
||||
.config/zed/.tmp*
|
||||
.config/emacs/places
|
||||
.config/yazi/flavors
|
||||
.config/yazi/plugins
|
||||
|
6
.zshrc
6
.zshrc
@ -94,7 +94,8 @@ bindkey '^[^I' autosuggest-accept
|
||||
|
||||
PROMPT='%{$fg[cyan]%}%c$(git_prompt_info) %(!.%{$fg_bold[red]%}#.%{$fg_bold[red]%}❯%{$fg_bold[yellow]%}❯%{$fg_bold[green]%}❯)%{$reset_color%} '
|
||||
|
||||
source ~/.config/lf/scripts/lfcd.sh
|
||||
# source ~/.config/lf/scripts/lfcd.sh
|
||||
source ~/.config/yazi/y.sh
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
ZSH_DISABLE_COMPFIX=true
|
||||
@ -104,6 +105,3 @@ ZSH_DISABLE_COMPFIX=true
|
||||
# eval "$(pyenv init -)"
|
||||
#
|
||||
|
||||
|
||||
export DYLD_LIBRARY_PATH="/opt/homebrew/opt/mysql@8.4/lib:$DYLD_LIBRARY_PATH"
|
||||
export LD_LIBRARY_PATH="/opt/homebrew/opt/mysql@8.4/lib:$LD_LIBRARY_PATH"
|
||||
|
Loading…
Reference in New Issue
Block a user