Skip to content

Commit

Permalink
added wezterm dots, updated alacritty, zsh, niri dots
Browse files Browse the repository at this point in the history
  • Loading branch information
vomaksh committed Oct 20, 2024
1 parent de16a86 commit 315fbc2
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ task :install do

# terminal
FileUtils.ln_s("#{base_path}/alacritty", "#{target}/.config/alacritty")
FileUtils.ln_s("#{base_path}/wezterm", "#{target}/.config/wezterm")
FileUtils.ln_s("#{base_path}/posh", "#{target}/.config/posh")
FileUtils.ln_s("#{base_path}/foot", "#{target}/.config/foot")

Expand All @@ -35,6 +36,7 @@ task :uninstall do
FileUtils.rm([
"#{target}/.zshrc",
"#{target}/.config/alacritty",
"#{target}/.config/wezterm",
"#{target}/.config/foot",
"#{target}/.config/posh",
"#{target}/.config/gammastep",
Expand Down
8 changes: 5 additions & 3 deletions alacritty/alacritty.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import = [
"~/.config/alacritty/themes/github-dark-default.toml"
# "~/.config/alacritty/themes/github-light-default.toml"
]

[font]
# normal = { family = "Cascadia Code" }
normal = { family = "Cascadia Code" }
# normal = { family = "FantasqueSansM Nerd Font" }
# normal = { family = "FantasqueSansM Nerd Font" }
normal = { family = "BlexMono Nerd Font Medium" }
size = 12
# normal = { family = "BlexMono Nerd Font Medium" }
# normal = { family = "BlexMono Nerd Font" }
size = 12.5

[window]
dynamic_padding = true
Expand Down
36 changes: 36 additions & 0 deletions alacritty/themes/github-light-default.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# github Alacritty Colors

# Default colors
[colors.primary]
background = '#ffffff'
foreground = '#0E1116'

# Normal colors
[colors.normal]
black = '#24292f'
red = '#cf222e'
green = '#116329'
yellow = '#4d2d00'
blue = '#0969da'
magenta = '#8250df'
cyan = '#1b7c83'
white = '#6e7781'

# Bright colors
[colors.bright]
black = '#57606a'
red = '#a40e26'
green = '#1a7f37'
yellow = '#633c01'
blue = '#218bff'
magenta = '#a475f9'
cyan = '#3192aa'
white = '#8c959f'

[[colors.indexed_colors]]
index = 16
color = '#d18616'

[[colors.indexed_colors]]
index = 17
color = '#a40e26'
1 change: 1 addition & 0 deletions niri/config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ output "eDP-1" {
}

output "HDMI-A-1" {
off
scale 1.5
}

Expand Down
162 changes: 162 additions & 0 deletions wezterm/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
local wezterm = require("wezterm")

local config = wezterm.config_builder()

config.automatically_reload_config = true

-- font and color scheme
config.color_scheme = "GitHub Dark"
-- config.font = wezterm.font("BlexMono Nerd Font", { weight = "Medium" })
config.font = wezterm.font("Cascadia Code")
config.font_size = 12.5

-- remove terminal padding
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}

-- more customization
-- config.window_background_opacity = 0.95

-- shortcuts
-- config.disable_default_key_bindings = true
config.leader = { key = "a", mods = "CTRL", timeout_milliseconds = 2000 }
config.keys = {
{
mods = "LEADER",
key = "c",
action = wezterm.action.SpawnTab("CurrentPaneDomain"),
},
{
mods = "LEADER",
key = "x",
action = wezterm.action.CloseCurrentPane({ confirm = true }),
},
{
mods = "LEADER",
key = "b",
action = wezterm.action.ActivateTabRelative(-1),
},
{
mods = "LEADER",
key = "n",
action = wezterm.action.ActivateTabRelative(1),
},
{
mods = "LEADER|SHIFT",
key = "%",
action = wezterm.action.SplitHorizontal({
domain = "CurrentPaneDomain",
}),
},
{
mods = "LEADER|SHIFT",
key = '"',
action = wezterm.action.SplitVertical({
domain = "CurrentPaneDomain",
}),
},
{
mods = "ALT",
key = "h",
action = wezterm.action.ActivatePaneDirection("Left"),
},
{
mods = "ALT",
key = "j",
action = wezterm.action.ActivatePaneDirection("Down"),
},
{
mods = "ALT",
key = "k",
action = wezterm.action.ActivatePaneDirection("Up"),
},
{
mods = "ALT",
key = "l",
action = wezterm.action.ActivatePaneDirection("Right"),
},
{
mods = "LEADER",
key = "LeftArrow",
action = wezterm.action.AdjustPaneSize({ "Left", 5 }),
},
{
mods = "LEADER",
key = "RightArrow",
action = wezterm.action.AdjustPaneSize({ "Right", 5 }),
},
{
mods = "LEADER",
key = "DownArrow",
action = wezterm.action.AdjustPaneSize({ "Down", 5 }),
},
{
mods = "LEADER",
key = "UpArrow",
action = wezterm.action.AdjustPaneSize({ "Up", 5 }),
},
{
mods = "LEADER",
key = "z",
action = wezterm.action.TogglePaneZoomState,
},
}

for i = 0, 9 do
table.insert(config.keys, {
key = tostring(i),
mods = "LEADER",
action = wezterm.action.ActivateTab(i),
})
end

-- customize background image
-- config.window_background_image = "/home/vomaksh/Pictures/Wallhaven/wallhaven-2y3keg.png"
-- config.window_background_image_hsb = {
-- brightness = 0.1,
-- hue = 1,
-- saturation = 1,
-- }

-- customize title bar
config.hide_tab_bar_if_only_one_tab = false
config.tab_bar_at_bottom = false
config.use_fancy_tab_bar = false
config.tab_and_split_indices_are_zero_based = true

local scheme = wezterm.get_builtin_color_schemes()["GitHub Dark"]

config.colors = {
tab_bar = {
background = scheme.background,
new_tab = { bg_color = "#2e3440", fg_color = scheme.ansi[8], intensity = "Bold" },
new_tab_hover = { bg_color = scheme.ansi[1], fg_color = scheme.brights[8], intensity = "Bold" },
active_tab = { bg_color = "#4338ca", fg_color = "#ffffff" },
inactive_tab = { bg_color = "#2e3440", fg_color = "#ffffff" },
inactive_tab_hover = { bg_color = scheme.ansi[1], fg_color = "#ffffff" },
},
}

wezterm.on("update-right-status", function(window, _)
local SOLID_LEFT_ARROW = ""
local ARROW_FOREGROUND = { Foreground = { Color = "#c6a0f6" } }
local prefix = ""

if window:leader_is_active() then
prefix = " " .. utf8.char(0x1f30a) .. " " -- ocean wave
-- SOLID_LEFT_ARROW = utf8.char(0xe0b2)
end

window:set_left_status(wezterm.format({
{ Background = { Color = "#b7bdf8" } },
{ Text = prefix },
ARROW_FOREGROUND,
{ Text = SOLID_LEFT_ARROW },
}))
end)
--
return config
7 changes: 6 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,17 @@
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

alias ls=eza
alias ls="eza --icons --hyperlink"
alias wezterm="flatpak run org.wezfurlong.wezterm"

export PATH="$PATH:/home/vomaksh/.local/bin:/home/vomaksh/bin"
alias lzd='lazydocker'
alias lzg='lazygit'
eval "$(~/.local/bin/mise activate zsh)"

# go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

# posh for prompt
eval "$(oh-my-posh init zsh --config ~/.config/posh/themes/pure.omp.json)"

0 comments on commit 315fbc2

Please sign in to comment.