This commit is contained in:
Leon Kowarschick 2024-04-15 10:49:04 +02:00
parent c5673ce2c1
commit dcae56827f
Signed by: ElKowar
GPG key ID: 72C759DA738DE3A2
3 changed files with 75 additions and 44 deletions

View file

@ -17,52 +17,80 @@
(each [k v (pairs b)] (tset merged k v)) (each [k v (pairs b)] (tset merged k v))
merged)) merged))
(local gruvbox (. (wezterm.color.get_builtin_schemes) "GruvboxDarkHard"))
(local color-theme (local config (wezterm.config_builder))
{ :background "#282828"
:background-dark "#1d2021" (merge
:background-light "#3c3836" config
:foreground "#ebdbb2" {:font (wezterm.font "FiraMono Nerd Font")
:cursor_bg "#8ec07c" :scrollback_lines 10000
:cursor_border "#8ec07c" :hide_tab_bar_if_only_one_tab true
:cursor_fg "#282828" :color_scheme "GruvboxDarkHard"
:selection_bg "#e6d4a3" :leader { :mods "CTRL" :key "b" :timeout_milliseconds 500}
:selection_fg "#534a42"
:ansi [ "#282828" "#cc241d" "#98971a" "#d79921" "#458588" "#b16286" "#689d6a" "#a89984"] :window_frame
:brights [ "#928374" "#fb4934" "#b8bb26" "#fabd2f" "#83a598" "#d3869b" "#8ec07c" "#ebdbb2"] {:active_titlebar_bg "#1d2021"
:accent "#689d6a"}) :inactive_titlebar_bg "#1d2021"}
{ :font (wezterm.font "Terminus (TTF)") :colors (merge
:hide_tab_bar_if_only_one_tab true gruvbox
:scrollback_lines 5000 {:tab_bar
:line_height 0.91 {:background "#282828"
:window_padding { :left 20 :right 20 :top 20 :bottom 20} :inactive_tab {:bg_color "#1d2021" :fg_color gruvbox.foreground}
:active_tab {:bg_color gruvbox.background :fg_color gruvbox.foreground}
:new_tab {:bg_color "#1d2021" :fg_color gruvbox.foreground}}})
:leader { :mods "CTRL" :key "a" :timeout_milliseconds 500} :keys
:keys (gen-keys
(gen-keys [ [:CTRL :+ "IncreaseFontSize"]
[ [:CTRL :+ "IncreaseFontSize"] [:LEADER :n "SpawnWindow"]
[:LEADER :n "SpawnWindow"] [:LEADER :f "TogglePaneZoomState"]
[:LEADER :f "TogglePaneZoomState"] [:LEADER :p "ShowLauncher"]
[:LEADER :p "ShowLauncher"] [:LEADER :t { :SpawnTab "CurrentPaneDomain"}]
[:LEADER :t { :SpawnTab "CurrentPaneDomain"}] [:LEADER :c { :CloseCurrentTab {:confirm false}}]
[:LEADER :c { :CloseCurrentTab {:confirm false}}] [:LEADER :l { :ActivateTabRelative 1}]
[:LEADER :l { :ActivateTabRelative 1}] [:LEADER :h { :ActivateTabRelative -1}]
[:LEADER :h { :ActivateTabRelative -1}] [:LEADER :v { :SplitVertical {:domain "CurrentPaneDomain"}}]
[:LEADER :v { :SplitVertical {:domain "CurrentPaneDomain"}}] [:LEADER :b { :SplitHorizontal {:domain "CurrentPaneDomain"}}]
[:LEADER :b { :SplitHorizontal {:domain "CurrentPaneDomain"}}] [:LEADER :s { :Search {:CaseInSensitiveString ""}}]
[:LEADER :s { :Search {:CaseInSensitiveString ""}}] [:CTRL :LeftArrow { :ActivatePaneDirection "Left"}]
[:CTRL :LeftArrow { :ActivatePaneDirection "Left"}] [:CTRL :RightArrow { :ActivatePaneDirection "Right"}]
[:CTRL :RightArrow { :ActivatePaneDirection "Right"}] [:CTRL :DownArrow { :ActivatePaneDirection "Down"}]
[:CTRL :DownArrow { :ActivatePaneDirection "Down"}] [:CTRL :UpArrow { :ActivatePaneDirection "Up"}]])})
[:CTRL :UpArrow { :ActivatePaneDirection "Up"}]])
:colors
(merge color-theme ;{ :font (wezterm.font "Terminus (TTF)")
{ :tab_bar ;:hide_tab_bar_if_only_one_tab true
{ :background color-theme.background ;:scrollback_lines 5000
:active_tab { :bg_color color-theme.accent :fg_color color-theme.background} ;:line_height 0.91
:inactive_tab { :bg_color color-theme.background-light :fg_color color-theme.accent} ;:window_padding { :left 20 :right 20 :top 20 :bottom 20}
:inactive_tab_hover { :bg_color color-theme.background-dark :fg_color color-theme.accent :italic false}}})}
;:leader { :mods "CTRL" :key "a" :timeout_milliseconds 500}
;:keys
;(gen-keys
;[ [:CTRL :+ "IncreaseFontSize"]
;[:LEADER :n "SpawnWindow"]
;[:LEADER :f "TogglePaneZoomState"]
;[:LEADER :p "ShowLauncher"]
;[:LEADER :t { :SpawnTab "CurrentPaneDomain"}]
;[:LEADER :c { :CloseCurrentTab {:confirm false}}]
;[:LEADER :l { :ActivateTabRelative 1}]
;[:LEADER :h { :ActivateTabRelative -1}]
;[:LEADER :v { :SplitVertical {:domain "CurrentPaneDomain"}}]
;[:LEADER :b { :SplitHorizontal {:domain "CurrentPaneDomain"}}]
;[:LEADER :s { :Search {:CaseInSensitiveString ""}}]
;[:CTRL :LeftArrow { :ActivatePaneDirection "Left"}]
;[:CTRL :RightArrow { :ActivatePaneDirection "Right"}]
;[:CTRL :DownArrow { :ActivatePaneDirection "Down"}]
;[:CTRL :UpArrow { :ActivatePaneDirection "Up"}]])
;:colors
;(merge color-theme
;{ :tab_bar
;{ :background color-theme.background
;:active_tab { :bg_color color-theme.accent :fg_color color-theme.background}
;:inactive_tab { :bg_color color-theme.background-light :fg_color color-theme.accent}
;:inactive_tab_hover { :bg_color color-theme.background-dark :fg_color color-theme.accent :italic false}}})}

View file

@ -1,5 +1,5 @@
local fennel = require("./fennel") local fennel = require("./fennel")
fennel.path = fennel.path .. ";.config/wezterm/?.fnl" fennel.path = fennel.path .. ".config/wezterm/?.fnl"
table.insert(package.loaders or package.searchers, fennel.searcher) table.insert(package.loaders or package.searchers, fennel.searcher)
return require("config") return require("config")

View file

@ -135,6 +135,9 @@ export PATH="$HOME/.volta/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.bun/bin:$PATH" export PATH="$HOME/.bun/bin:$PATH"
if [ -d "/Applications/WezTerm.app" ]; then
export PATH="/Applications/WezTerm.app/Contents/MacOS:$PATH"
fi
if command -v flutter >/dev/null; then if command -v flutter >/dev/null; then
export PATH="$HOME/.pub-cache/bin:$PATH" export PATH="$HOME/.pub-cache/bin:$PATH"