diff --git a/.aerospace.toml b/.aerospace.toml index 4ade37f..8a5dd7e 100644 --- a/.aerospace.toml +++ b/.aerospace.toml @@ -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" diff --git a/userChrome.css b/.config/userChrome.css similarity index 100% rename from userChrome.css rename to .config/userChrome.css diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua new file mode 100644 index 0000000..5e5d50f --- /dev/null +++ b/.config/wezterm/wezterm.lua @@ -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 diff --git a/.config/yazi/package.toml b/.config/yazi/package.toml new file mode 100644 index 0000000..e69de29 diff --git a/.config/yazi/theme.toml b/.config/yazi/theme.toml new file mode 100644 index 0000000..e69de29 diff --git a/.config/yazi/y.sh b/.config/yazi/y.sh new file mode 100755 index 0000000..58c8814 --- /dev/null +++ b/.config/yazi/y.sh @@ -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" +} diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml new file mode 100644 index 0000000..1fe16ec --- /dev/null +++ b/.config/yazi/yazi.toml @@ -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. +] diff --git a/.gitignore b/.gitignore index 732e671..57f42ed 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ node_modules .config/zed/conversations/ .config/zed/.tmp* .config/emacs/places +.config/yazi/flavors +.config/yazi/plugins diff --git a/.zshrc b/.zshrc index 63a9a00..9a7fbd2 100644 --- a/.zshrc +++ b/.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"