parent
a282cf4d63
commit
8789a2a83e
33 changed files with 37 additions and 24 deletions
48
gui/.config/alacritty/alacritty.yml
Normal file
48
gui/.config/alacritty/alacritty.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
scrolling:
|
||||
history: 15000
|
||||
|
||||
font:
|
||||
builtin_box_drawing: true
|
||||
normal:
|
||||
family: Fantasque Sans Mono
|
||||
size: 15
|
||||
|
||||
colors:
|
||||
primary:
|
||||
background: '0x282828'
|
||||
foreground: '0xebdbb2'
|
||||
cursor:
|
||||
cursor: '0xfb4934'
|
||||
selection:
|
||||
text: CellForeground
|
||||
background: '0x565656'
|
||||
normal:
|
||||
black: '0x282828'
|
||||
red: '0xcc241d'
|
||||
green: '0x98971a'
|
||||
yellow: '0xd79921'
|
||||
blue: '0x458588'
|
||||
magenta: '0xb16286'
|
||||
cyan: '0x689d6a'
|
||||
white: '0xa89984'
|
||||
bright:
|
||||
black: '0x928374'
|
||||
red: '0xfb4934'
|
||||
green: '0xb8bb26'
|
||||
yellow: '0xfabd2f'
|
||||
blue: '0x83a598'
|
||||
magenta: '0xd3869b'
|
||||
cyan: '0x8ec07c'
|
||||
white: '0xebdbb2'
|
||||
|
||||
cursor:
|
||||
thickness: 0.3
|
||||
style:
|
||||
shape: Underline
|
||||
|
||||
mouse_bindings:
|
||||
- { mouse: Middle, action: PasteSelection }
|
||||
|
||||
key_bindings:
|
||||
- { key: V, mods: Alt, action: Paste }
|
||||
- { key: C, mods: Alt, action: Copy }
|
92
gui/.config/kitty/kitty.conf
Normal file
92
gui/.config/kitty/kitty.conf
Normal file
|
@ -0,0 +1,92 @@
|
|||
# I am config
|
||||
font_family Cascadia Code PL
|
||||
font_features CascadiaCodePL-Regular +ss19
|
||||
font_features CascadiaCodePLRoman-SemiBold +ss19
|
||||
font_features CascadiaCodePL-Italic +ss19 +ss01
|
||||
font_features CascadiaCodePLItalic-SemiBold +ss19 +ss01
|
||||
font_size 15
|
||||
adjust_line_height 0
|
||||
box_drawing_scale 0.1, 0.5, 1, 1.5
|
||||
disable_ligatures cursor
|
||||
cursor_blink_interval 0
|
||||
|
||||
tab_title_template "{index}┇{title}"
|
||||
tab_bar_style slant
|
||||
tab_bar_edge top
|
||||
active_tab_foreground #ebdbb2
|
||||
active_tab_background #282828
|
||||
active_tab_font_style bold
|
||||
inactive_tab_background #a89984
|
||||
inactive_tab_foreground #282828
|
||||
inactive_tab_font_style italic
|
||||
tab_bar_background #a89984
|
||||
|
||||
enabled_layouts splits,stack
|
||||
enable_audio_bell no
|
||||
strip_trailing_spaces always
|
||||
open_url_with default
|
||||
window_padding_width 0
|
||||
placement_strategy top-left
|
||||
remember_window_size no
|
||||
initial_window_width 120c
|
||||
initial_window_height 30c
|
||||
resize_in_steps yes
|
||||
shell_integration no-cursor
|
||||
|
||||
map ctrl+g>c new_tab
|
||||
map ctrl+g>n next_tab
|
||||
map ctrl+g>p prev_tab
|
||||
map ctrl+g>x close_window
|
||||
map ctrl+g>s launch --location=hsplit
|
||||
map ctrl+g>v launch --location=vsplit
|
||||
map ctrl+g>r start_resizing_window
|
||||
map ctrl+g>h neighboring_window left
|
||||
map ctrl+g>j neighboring_window down
|
||||
map ctrl+g>k neighboring_window up
|
||||
map ctrl+g>l neighboring_window right
|
||||
map ctrl+g>f show_scrollback
|
||||
map ctrl+g>z toggle_layout stack
|
||||
map ctrl+g>1 goto_tab 1
|
||||
map ctrl+g>2 goto_tab 2
|
||||
map ctrl+g>3 goto_tab 3
|
||||
map ctrl+g>4 goto_tab 4
|
||||
map ctrl+g>5 goto_tab 5
|
||||
map ctrl+g>6 goto_tab 6
|
||||
map ctrl+g>7 goto_tab 7
|
||||
map ctrl+g>8 goto_tab 8
|
||||
map ctrl+g>9 goto_tab 9
|
||||
map ctrl+g>0 goto_tab 10
|
||||
|
||||
map alt+c copy_to_clipboard
|
||||
map ctrl+alt+c copy_to_clipboard
|
||||
map alt+v paste_from_clipboard
|
||||
map ctrl+alt+v paste_from_clipboard
|
||||
|
||||
mouse_map left click ungrabbed mouse_click_url_or_select
|
||||
mouse_map alt+left press ungrabbed mouse_selection rectangle
|
||||
|
||||
# Gruvbox Dark
|
||||
selection_foreground #282828
|
||||
selection_background #83a598
|
||||
foreground #ebdbb2
|
||||
background #282828
|
||||
cursor #fb4934
|
||||
cursor_text_color #282828
|
||||
|
||||
color0 #282828
|
||||
color1 #cc241d
|
||||
color2 #98971a
|
||||
color3 #d79921
|
||||
color4 #458588
|
||||
color5 #b16286
|
||||
color6 #689d6a
|
||||
color7 #a89984
|
||||
|
||||
color8 #928374
|
||||
color9 #fb4934
|
||||
color10 #b8bb26
|
||||
color11 #fabd2f
|
||||
color12 #83a598
|
||||
color13 #d3869b
|
||||
color14 #8ec07c
|
||||
color15 #ebdbb2
|
118
gui/.wezterm.lua
Normal file
118
gui/.wezterm.lua
Normal file
|
@ -0,0 +1,118 @@
|
|||
local wt = require('wezterm')
|
||||
local act = wt.action
|
||||
local font = 'Cascadia Code PL'
|
||||
local font_features = { 'ss01=1', 'ss02=1', 'ss19=1' }
|
||||
local fontsizes = { Darwin = 14, others = 11 }
|
||||
local theme = 'Gruvbox Dark'
|
||||
local overrides = {
|
||||
fonts = {
|
||||
font = wt.font('JetBrains Mono'),
|
||||
harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' }
|
||||
},
|
||||
theme = { color_scheme = 'PencilLight' }
|
||||
}
|
||||
local tab_bar_bg = '#ebdbae'
|
||||
local tab_bar_fg = '#1e1e1e'
|
||||
local tab_bar_defaults = {
|
||||
bg_color = tab_bar_bg,
|
||||
fg_color = tab_bar_fg,
|
||||
italic = true
|
||||
}
|
||||
local tab_bar_active = {
|
||||
bg_color = tab_bar_fg,
|
||||
fg_color = tab_bar_bg,
|
||||
italic = true
|
||||
}
|
||||
local custom_colors = {
|
||||
tab_bar = {
|
||||
background = tab_bar_bg,
|
||||
active_tab = tab_bar_active,
|
||||
inactive_tab = tab_bar_defaults,
|
||||
inactive_tab_hover = tab_bar_defaults,
|
||||
new_tab = tab_bar_defaults,
|
||||
new_tab_hover = tab_bar_defaults,
|
||||
}
|
||||
}
|
||||
local leader_key = { key = 'g', mods = 'CTRL', timeout_milliseconds = 1000 }
|
||||
local keybinds = {
|
||||
{ key = 'c', mods = 'META', action = act.Copy },
|
||||
{ key = 'v', mods = 'META', action = act.Paste },
|
||||
-- themes
|
||||
{ key = 'f', mods = 'LEADER', action = act.EmitEvent('override-fonts') },
|
||||
{ key = 't', mods = 'LEADER', action = act.EmitEvent('override-theme') },
|
||||
{ key = 'r', mods = 'LEADER', action = act.EmitEvent('reset-overrides') },
|
||||
-- tabs
|
||||
{ key = 'c', mods = 'LEADER', action = act.SpawnTab('DefaultDomain') },
|
||||
{ key = 'n', mods = 'LEADER', action = act.ActivateTabRelative( 1) },
|
||||
{ key = 'p', mods = 'LEADER', action = act.ActivateTabRelative(-1) },
|
||||
-- panes
|
||||
{ key = 's', mods = 'LEADER', action = act.SplitVertical { domain = 'CurrentPaneDomain' } },
|
||||
{ key = 'v', mods = 'LEADER', action = act.SplitHorizontal{ domain = 'CurrentPaneDomain' } },
|
||||
{ key = 'h', mods = 'LEADER', action = act.ActivatePaneDirection('Left') },
|
||||
{ key = 'j', mods = 'LEADER', action = act.ActivatePaneDirection('Down') },
|
||||
{ key = 'k', mods = 'LEADER', action = act.ActivatePaneDirection('Up') },
|
||||
{ key = 'l', mods = 'LEADER', action = act.ActivatePaneDirection('Right') },
|
||||
{ key = 'u', mods = 'LEADER', action = act.RotatePanes('Clockwise') },
|
||||
{ key = 'i', mods = 'LEADER', action = act.RotatePanes('CounterClockwise') },
|
||||
{ key = 'Return', mods = 'LEADER', action = act.TogglePaneZoomState },
|
||||
{ key = 'Space', mods = 'LEADER', action = act.PaneSelect },
|
||||
}
|
||||
|
||||
for i = 1, 9 do
|
||||
table.insert(
|
||||
keybinds,
|
||||
{ key = tostring(i), mods = 'LEADER', action = act.ActivateTab(i - 1) }
|
||||
)
|
||||
end
|
||||
|
||||
local function get_os()
|
||||
local current_os = os.getenv('OS')
|
||||
if current_os then return current_os end
|
||||
return io.popen('uname -s', 'r'):read()
|
||||
end
|
||||
|
||||
local function set_by_os(values)
|
||||
local my_os = get_os()
|
||||
if values[my_os] then return values[my_os] end
|
||||
return values.others
|
||||
end
|
||||
|
||||
local current_overrides = {}
|
||||
local function toggle_overrides(window, overrides)
|
||||
for k, v in pairs(overrides) do
|
||||
if current_overrides[k] == v then
|
||||
current_overrides[k] = nil
|
||||
else
|
||||
current_overrides[k] = v
|
||||
end
|
||||
end
|
||||
window:set_config_overrides(current_overrides)
|
||||
end
|
||||
|
||||
local function reset_overrides(window)
|
||||
current_overrides = {}
|
||||
window:set_config_overrides()
|
||||
end
|
||||
|
||||
wt.on('override-theme', function(window) toggle_overrides(window, overrides.theme) end)
|
||||
wt.on('override-fonts', function(window) toggle_overrides(window, overrides.fonts) end)
|
||||
wt.on('reset-overrides', reset_overrides)
|
||||
|
||||
return {
|
||||
audible_bell = 'Disabled',
|
||||
font = wt.font(font),
|
||||
font_size = set_by_os(fontsizes),
|
||||
harfbuzz_features = font_features,
|
||||
color_scheme = theme,
|
||||
cursor_blink_rate = 0,
|
||||
check_for_updates = false,
|
||||
bold_brightens_ansi_colors = false,
|
||||
window_padding = { left = 0, right = 0, top = 0, bottom = 0 },
|
||||
leader = leader_key,
|
||||
keys = keybinds,
|
||||
colors = custom_colors,
|
||||
use_fancy_tab_bar = false,
|
||||
hide_tab_bar_if_only_one_tab = true,
|
||||
tab_max_width = 128,
|
||||
tab_bar_at_bottom = true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue