Compare commits

...

4 Commits

@ -77,7 +77,7 @@ font:
# OS X only: use thin stroke font rendering. Thin strokes are suitable
# for retina displays, but for non-retina you probably want this set to
# false.
use_thin_strokes: true
#use_thin_strokes: true
# Should display the render timer
render_timer: true

@ -0,0 +1,148 @@
[Desktop Entry]
Name[ab]=GNOME Wayland аҟны
Name[ar]=جنوم على وايلاند
Name[as]=Wayland ত GNOME
Name[bg]=GNOME с Wayland
Name[bs]=GNOME u Wayland
Name[ca]=GNOME sobre Wayland
Name[cs]=GNOME na Waylandu
Name[da]=GNOME på Wayland
Name[de]=GNOME unter Wayland
Name[es]=GNOME en Wayland
Name[eu]=GNOME Wayland gainean
Name[fa]=گنوم روی وی‌لند
Name[fi]=Gnome Waylandia käyttäen
Name[fr]=GNOME sur Wayland
Name[fur]=GNOME su Wayland
Name[gl]=GNOME en Wayland
Name[he]=GNOME על גבי Wayland
Name[hi]=गनोम वेलैंड पर
Name[hr]=GNOME na Waylandu
Name[hu]=GNOME Waylanden
Name[id]=GNOME pada Wayland
Name[is]=GNOME á Wayland
Name[it]=GNOME su Wayland
Name[ka]=GNOME Wayland-ზე
Name[kk]=Wayland негізіндегі GNOME
Name[km]=GNOME នៅ Wayland
Name[kn]=Wayland ನಲ್ಲಿ GNOME
Name[ko]=그놈 (웨일랜드)
Name[lt]=GNOME Wayland aplinkoje
Name[lv]=GNOME ar Wayland
Name[mr]=वेलँडवरील GNOME
Name[ne]=वेल्याण्डमा जिनोम
Name[nl]=Gnome op Wayland
Name[oc]=GNOME sus Wayland
Name[or]=ୱେଲ୍ୟାଣ୍ଡ ଉପରେ GNOME
Name[pl]=GNOME (Wayland)
Name[pt]=GNOME em Wayland
Name[pt_BR]=GNOME sobre Wayland
Name[ru]=GNOME на Wayland
Name[sk]=GNOME cez Wayland
Name[sr]=Гном на Вејланду
Name[sv]=GNOME med Wayland
Name[ta]=Wayland இல் GNOME
Name[te]=వేల్యాండ్ పై గ్నోమ్
Name[tg]=GNOME дар Wayland
Name[tr]=Wayland üzerinde GNOME
Name[uk]=GNOME через Wayland
Name[zh_CN]=GNOME Wayland
Name[zh_HK]=GNOME 於 Wayland
Name[zh_TW]=GNOME 採行 Wayland
Name=GNOME on Wayland
Comment[ab]=Ари асеанс GNOME аҭалара азин шәнаҭоит
Comment[af]=Die sessie laat u by GNOME aanmeld
Comment[an]=Ista sesión accede a GNOME
Comment[ar]=تولجك هذه الجلسة في جنوم
Comment[as]=এই অধিবেশনে আপোনাক GNOME ত লগিন কৰায়
Comment[ast]=Esta sesión conéuta-y a GNOME
Comment[be]=Сеанс уваходу ў GNOME
Comment[be@latin]=Hetaja sesija ŭruchamlaje GNOME
Comment[bg]=Влизане в GNOME
Comment[bn]=এই সেশনের মাধ্যমে GNOME-এ লগ-ইন করা যাবে
Comment[bn_IN]=এই সেশানের মাধ্যমে GNOME-এ লগ-ইন করা যাবে
Comment[br]=An estez-mañ a lug ac'hanoc'h davet GNOME
Comment[bs]=Ova sesija Vas prijavljuje u GNOME
Comment[ca]=Aquesta sessió us entra al GNOME
Comment[ca@valencia]=Esta sessió vos entra al GNOME
Comment[ckb]=به‌م دانیشتنه‌ ئه‌که‌ویته‌ ناو گنومه‌وه‌
Comment[crh]=Bu oturım sizni GNOME'ğa içeri imzalandırır
Comment[cs]=Toto sezení vás přihlásí do GNOME
Comment[da]=Denne session logger dig ind i GNOME
Comment[de]=Diese Sitzung meldet Sie bei GNOME an
Comment[dz]=ལཱ་ཡུན་འདི་གིས་ ཁྱོད་ ཇི་ནོམ་ནང་ལུ་ ནང་བསྐྱོད་འབདཝ་ཨིན་
Comment[el]=Αυτή η συνεδρία σας συνδέει στο GNOME
Comment[en_GB]=This session logs you into GNOME
Comment[en@shaw]=𐑞𐑦𐑕 𐑕𐑧𐑖𐑩𐑯 𐑤𐑪𐑜𐑟 𐑿 𐑦𐑯𐑑𐑫 ·𐑜𐑯𐑴𐑥
Comment[eo]=Ĉi tiu seanco salutas vin en GNOME
Comment[es]=Esta sesión accede a GNOME
Comment[et]=Selle seansiga logitakse sind GNOME keskkonda sisse
Comment[eu]=Saio honek GNOMEn sartuko zaitu
Comment[fa]=این نشست شما را به گنوم وارد می‌کند
Comment[fi]=Tämä istunto kirjautuu Gnomeen
Comment[fr]=Cette session vous connecte dans GNOME
Comment[fur]=Cheste session ti fasarà jentrâ in GNOME
Comment[fy]=Dizze sesje meld jo oan by Gnome
Comment[ga]=Logálann an seisiún seo thú isteach i nGNOME
Comment[gd]=Clàraidh an seisean seo a-steach gu GNOME thu
Comment[gl]=Esta sesión iniciará en GNOME
Comment[gu]=આ સત્ર તમને GNOME માં પ્રવેશ આપે છે
Comment[he]=הפעלה זאת מחברת אותך לשולחן העבודה GNOME
Comment[hi]=यह सत्र गनोम में लॉगइन होगा
Comment[hr]=Ova sesija vas prijavljuje u GNOME
Comment[hu]=Bejelentkezés a GNOME környezetbe
Comment[id]=Sesi ini melogkan Anda ke dalam GNOME
Comment[is]=Þessi seta skráir þig inn í GNOME
Comment[it]=Questa sessione esegue l'accesso in GNOME
Comment[ja]=このセッションで GNOME にログインします
Comment[ka]=აქედან შეხვალთ GNOME-ში
Comment[kab]=Tiɣimit-agi ad k-teqqen ɣer GNOME
Comment[kk]=Бұл сессия арқылы GNOME-ға кіресіз
Comment[km]=សម័យ​នេះ​ជា​កំណត់​ហេតុ​ដែល​អ្នក​ទៅ​កាន់ GNOME
Comment[kn]=ಈ ಅಧಿವೇಶನವು ನಿಮ್ಮನ್ನು GNOME ಗೆ ಪ್ರವೇಶಿಸುವಂತೆ ಮಾಡುತ್ತದೆ
Comment[ko]=이 세션을 사용하면 그놈에 로그인합니다
Comment[lt]=Šis seansas prijungia jus prie GNOME
Comment[lv]=Šī sesija ieraksta jūs GNOME vidē
Comment[mai]=ई सत्र अहाँक गनोममे लागिन दैछ
Comment[mjw]=Laso session nangli phan GNOME long pon po
Comment[mk]=Оваа сесија Ве најавува во GNOME
Comment[ml]=ഈ പ്രവര്‍ത്തനവേള നിങ്ങളെ ഗ്നോമിലേക്ക് കയറ്റുന്നു
Comment[mr]=GNOME मध्ये दाखल करण्याजोगी सत्र लॉग
Comment[ms]=Sesi ini akan mendaftar masuk ke GNOME
Comment[nb]=Denne økten logger inn i GNOME
Comment[nds]=Düsser Törn mellt dik bi GNOME an
Comment[ne]=यो सत्र जिनोम लगईन हुन्छ
Comment[nl]=Deze sessie laat u in Gnome inloggen
Comment[nn]=Denne økta loggar inn i GNOME
Comment[oc]=Aquesta session vos connècta dins GNOME
Comment[or]=ଏହି ଅଧିବେଶନ ଆପଣଙ୍କୁ ନୋମ ରେ ଲଗ କରାଇଥାଏ
Comment[pa]=ਇਹ ਸ਼ੈਸ਼ਨ ਤੁਹਾਨੂੰ ਗਨੋਮ ਵਿੱਚ ਲਾਗ ਕਰਦਾ ਹੈ
Comment[pl]=Ta sesja loguje użytkownika do środowiska GNOME
Comment[ps]=دا ناسته تاسو ګنوم ته ننباسي
Comment[pt]=Esta sessão usa o GNOME
Comment[pt_BR]=Essa sessão o leva ao GNOME
Comment[ro]=Această sesiune vă va autentifica în GNOME
Comment[ru]=Этот сеанс позволяет вам войти в GNOME
Comment[sk]=Táto relácia vás prihlási do GNOME
Comment[sl]=Seja omogoča prijavo v namizje GNOME.
Comment[sr]=Ова сесија вас пријављује у Гном
Comment[sr@latin]=Ova sesija vas prijavljuje u Gnom
Comment[sv]=Denna session loggar in dig i GNOME
Comment[ta]=இந்த அமர்வு க்நோம் இல் உங்களை நுழைக்கும்
Comment[te]=ఈ సెషన్ గ్నోమ్‌లోనికి లాగ్ చేస్తుంది
Comment[tg]=Ин ҷаласа шуморо ба GNOME ворид мекунад
Comment[th]=วาระนี้จะเข้าสู่ GNOME
Comment[tr]=Bu oturum GNOMEa girmenizi sağlar
Comment[ug]=بۇ ئەڭگىمە سىزنى گىنومغا ئەكىرىدۇ.
Comment[uk]=Це — сеанс входу в GNOME
Comment[uz]=Ushbu seans GNOME'ga kirishingizni taʼminlaydi
Comment[uz@cyrillic]=Ушбу сеанс GNOME'га киришингизни таъминлайди
Comment[zh_CN]=此会话将让您登录到 GNOME
Comment[zh_HK]=這個作業階段讓你登入 GNOME
Comment[zh_TW]=這個工作階段讓您登入 GNOME
Comment=This session logs you into GNOME
Exec=/usr/bin/gnome-session
TryExec=/usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Sway (systemd)
Comment=SirCmpwn's Wayland window manager as a systemd service
Exec=sway-service
Type=Application

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=sway
Type=Application
Environment=wayland

@ -27,7 +27,7 @@ print_info() {
info "Public IP" public_ip
# info "CPU Usage" cpu_usage
# info "Battery" battery
info "Battery" battery
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
@ -116,7 +116,7 @@ uptime_shorthand="on"
# Example:
# on: '1801MiB / 7881MiB (22%)'
# off: '1801MiB / 7881MiB'
memory_percent="off"
memory_percent="on"
# Change memory output unit.
#
@ -128,7 +128,7 @@ memory_percent="off"
# kib '1020928KiB / 7117824KiB'
# mib '1042MiB / 6951MiB'
# gib: ' 0.98GiB / 6.79GiB'
memory_unit="mib"
memory_unit="gib"
# Packages

@ -18,17 +18,13 @@ esac
# History
# https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
shopt -s histappend; # Append to the history file, not overwrite
export HISTCONTRO=Lignoreboth:erasedups; # No duplicate commands in history
export HISTCONTROL="ignoreboth:erasedups"; # No duplicate commands in history
export HISTSIZE=25000;
export HISTFILESIZE=10000;
export HISTIGNORE="[ ]*:&:bg:fg:exit:clear"; # Don't save these commands in the history
export HISTORY_COMMAND="history -a; history -c; history -r;"; # flush each command to history immediately
stty -ixon;
# bindings
bind '"\C-l"':redraw-current-line; # <Ctrl>-l
bind '"\e\C-l"':clear-screen; # <Escape>-<Ctrl>-l
# see environ manfile - just setting up my shell environment
export LESS='-iMR'; # Case insensite search, verbose prompting and raw output
export PAGER=less; # Used to display text / man files
@ -39,19 +35,13 @@ export GIT_EDITOR=vim;
export EDITOR=$GIT_EDITOR;
export VISUAL=$EDITOR;
# export DEFAULT_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;
# export PATH=${DEFAULT_PATH}:${HOME}/.bin;
if [[ -d "${HOME}/.dotnet" ]]; then
export DOTNET_CLI_TELEMETRY_OPTOUT=1;
export DOTNETPATH=~/.dotnet/;
export PATH=${DOTNETPATH}:${PATH};
fi
if [[ -d "${HOME}/.bin" ]]; then
PATH=${HOME}/.bin:${PATH};
fi
# bindings
bind '"\C-l"':redraw-current-line; # <Ctrl>-l
bind '"\e\C-l"':clear-screen; # <Escape>-<Ctrl>-l
# http://stackoverflow.com/questions/410616/increasing-the-maximum-number-of-tcp-ip-connections-in-linux
# run these to increase concurrent connections in linux

@ -0,0 +1,75 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- Simple plugins can be specified as strings
use 'rstacruz/vim-closer'
-- Lazy loading:
-- Load on specific commands
use {'tpope/vim-dispatch', opt = true, cmd = {'Dispatch', 'Make', 'Focus', 'Start'}}
-- Load on an autocommand event
use {'andymass/vim-matchup', event = 'VimEnter'}
-- Load on a combination of conditions: specific filetypes or commands
-- Also run code after load (see the "config" key)
use {
'w0rp/ale',
ft = {'sh', 'zsh', 'bash', 'c', 'cpp', 'cmake', 'html', 'markdown', 'racket', 'vim', 'tex'},
cmd = 'ALEEnable',
config = 'vim.cmd[[ALEEnable]]'
}
-- Plugins can have dependencies on other plugins
use {
'haorenW1025/completion-nvim',
opt = true,
requires = {{'hrsh7th/vim-vsnip', opt = true}, {'hrsh7th/vim-vsnip-integ', opt = true}}
}
-- Plugins can also depend on rocks from luarocks.org:
use {
'my/supercoolplugin',
rocks = {'lpeg', {'lua-cjson', version = '2.1.0'}}
}
-- You can specify rocks in isolation
use_rocks 'penlight'
use_rocks {'lua-resty-http', 'lpeg'}
-- Local plugins can be included
use '~/projects/personal/hover.nvim'
-- Plugins can have post-install/update hooks
use {'iamcco/markdown-preview.nvim', run = 'cd app && yarn install', cmd = 'MarkdownPreview'}
-- Post-install/update hook with neovim command
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
-- Post-install/update hook with call of vimscript function with argument
use { 'glacambre/firenvim', run = function() vim.fn['firenvim#install'](0) end }
-- Use specific branch, dependency and run lua file after load
use {
'glepnir/galaxyline.nvim', branch = 'main', config = function() require'statusline' end,
requires = {'kyazdani42/nvim-web-devicons'}
}
-- Use dependency and run lua function after load
use {
'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' },
config = function() require('gitsigns').setup() end
}
-- You can specify multiple plugins in a single call
use {'tjdevries/colorbuddy.vim', {'nvim-treesitter/nvim-treesitter', opt = true}}
-- You can alias plugin names
use {'dracula/vim', as = 'dracula'}
end)

@ -0,0 +1 @@
require("plugins").setup(plugins, opts)

@ -0,0 +1,224 @@
colorscheme ecostation
" colorscheme gruvbox-material
" colorscheme jellybeans
" colorscheme monokai
" colorscheme slate
" colorscheme vilight
filetype plugin indent on
set number
set tabstop=4
set shiftwidth=4
set expandtab
set termguicolors
set autochdir
" Enhance command-line completion
set wildmenu
" Allow backspace in insert mode
set backspace=indent,eol,start
" Optimize for fast terminal connections
set ttyfast
" Add the g flag to search/replace by default
set gdefault
" Use UTF-8 without BOM
set encoding=utf-8 "nobomb
set binary
" Don't add empty newlines at the end of files
" set noeol
set history=500 " Number of things to remember in history.
set t_Co=256
syntax on
set wildignore=*.png,*.jpg,node_modules,*.min.js,*.txt,*.bak,*.exe,vendor.js
set tags=./.git/tags,tags
set clipboard+=unnamedplus
set guifont=Literation\ Mono\ for\ Powerline:h12,Literation_Mono_for_Powerline:h12,Inconsolata\ for\ Powerline:h10,Ubuntu\ Mono:h26,Consolas:h12,Courier:h12
set lcs=tab:▸\ ,trail,eol,nbsp:_
set omnifunc=syntaxcomplete#Complete
set completeopt-=preview
set list
" Highlight searches
set hlsearch
" Ignore case of searches
set ignorecase
" Highlight dynamically as pattern is typed
set incsearch
" Always show status line
set laststatus=2
" Enable mouse in all modes
set mouse=a
" Disable error bells
set noerrorbells
" Dont reset cursor to start of line when moving around.
set nostartofline
" Show the cursor position
set ruler
" Dont show the intro message when starting Vim
set shortmess=atI
" Show the current mode
set showmode
" Show the filename in the window titlebar
set title
" Show the (partial) command as its being typed
set showcmd
" Start scrolling x lines before the horizontal window border
set scrolloff=4
lua require('plugins')
" Change mapleader
let mapleader = ","
map <leader><Space> :HardTimeToggle<CR>
map <Space> :noh<CR>
"replace with regular newlines
noremap <leader>k :%s/ //g<CR>
"list buffers
map <leader>w :buffers<CR>
" open erros
map <leader>e :lw 5<CR>
" mini buffer explorer toggle
map <Leader>b :MBEToggle<cr>
" easymotion mappings
" n character search
map <leader>/ <Plug>(easymotion-tn)
" 2 character search
map <leader>s <Plug>(easymotion-s2)
" nerdtree mapppings
nmap <leader>n :NERDTreeToggle %:p:h<CR>
nmap <leader>m :NERDTreeClose<CR>:NERDTreeFind<CR>
if exists("g:neovide")
let g:neovide_cursor_vfx_mode = "railgun"
endif
" pane resizing
noremap <C-w> :resize -3<Cr>
noremap <C-x> :resize +3<Cr>
noremap <C-a> :vertical resize +3<Cr>
noremap <C-d> :vertical resize -3<Cr>
"pane movements
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
map <leader>x :%s/\s\+$//<CR>:noh<Cr>
"reload vim config
noremap <leader>rr :so ~/.vimrc<CR>
"open vimrc in a new tab
map <leader>v :tabedit ~/.vimrc<CR>
map <F1> <Nop>
" Save a file as root (,W)
noremap <leader>W :w !sudo tee % > /dev/null<CR>
" generate tags
nnoremap <leader>c :! ctags -R -f ./.git/tags .<CR>
" enable neocomplete
let g:neocomplete#enable_at_startup = 0
" Use smartcase
let g:neocomplete#enable_smart_case = 0
" indent guides
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_guide_size = 1
let g:indent_guides_start_level = 2
" tern
let g:tern_show_argument_hits='on_hold'
let g:tern_map_keys=1
let g:tern_map_prefix = '<leader>'
" vim-go
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
let g:go_fmt_command = "goimports"
let g:go_fmt_autosave = 1
" -b -w -p"
let g:syntastic_go_checkers = ['go', 'errcheck', 'gofmt', 'golint', 'govet']
"let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
" Automatic commands
if has("autocmd")
" Use relative line numbers
if exists("&relativenumber")
set relativenumber
au BufReadPost * set relativenumber
endif
" rename symbol
au FileType go nmap <Leader>r <Plug>(go-rename)
" show type info
au FileType go nmap <Leader>ki <Plug>(go-info)
" go def
au FileType go nmap <Leader>di <Plug>(go-def-split)
au FileType go nmap <Leader>ds <Plug>(go-def-vertical)
au FileType go nmap <Leader>dt <Plug>(go-def-tab)
" go docs
au FileType go nmap <Leader>gd <Plug>(go-doc)
au FileType go nmap <Leader>gi <Plug>(go-doc-vertical)
au FileType go nmap <Leader>gb <Plug>(go-doc-browser)
endif
" ctrl p
let g:ctrlp_map = '<C-P>'
"nnoremap <C-l> :CtrlPTag<cr>
let g:ctrlp_cmd = 'CtrlPLastMode'
let g:ctrlp_extensions = ['line']
let g:ctrlp_show_hidden = 1
"'c' - the directory of the current file.
"'a' - the directory of the current file, unless it is a subdirectory of the cwd
"'r' - the nearest ancestor of the current file that contains one of these directories or files: .git .hg .svn .bzr _darcs
"'w' - modifier to "r": start search from the cwd instead of the current file's directory
"0 or '' (empty string) - disable this feature.
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_by_filename = 0
let g:ctrlp_max_files = 5000
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ }

@ -39,6 +39,7 @@ ssh_pubkey(){
ssh-keygen -y -f $1;
}
# generate a new key
ssh_newkey() {
local name=$1;
local comment=$2;

@ -1,15 +1,18 @@
# Inserts a blank line between shell prompts
add_newline = true
scan_timeout = 50
format = "$all"
# Replace the "" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
[character]
success_symbol = "[➜](bold green)"
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
[kubernetes]
format = '[⛵ $context](dimmed green) '
disabled = false
[git_metrics]
disabled = false

@ -1,6 +1,7 @@
#!/bin/env bash
STARSHIP_VERSION=${STARSHIP_VERSION:-"latest"};
STARSHIP_CONFIG_DIR="${FILES_USER_CONFIG}/starship";
if ! [[ -f "$(which starship 2>&1)" ]] && [[ -d "${HOME}/.asdf" ]]; then
asdf plugin add starship;
@ -9,15 +10,16 @@ if ! [[ -f "$(which starship 2>&1)" ]] && [[ -d "${HOME}/.asdf" ]]; then
fi
if [[ -f "$(which starship 2>&1)" ]]; then
export STARSHIP_CONFIG_DIR="${FILES_USER_CONFIG}";
export STARSHIP_CACHE="${STARSHIP_CONFIG_DIR}/cache";
export STARSHIP_CONFIG="${STARSHIP_CONFIG_DIR}/starship.toml";
files_debug_log "[starship] installing default config";
[[ -f "${FILES_USER_CONFIG}/starship.toml" ]] || ln -sf "${FILES_PLUGIN_ROOT}/defaults.d/starship.toml" ${FILES_USER_CONFIG};
[[ -f "${STARSHIP_CONFIG_DIR}/starship.toml" ]] || ln -sf "${FILES_PLUGIN_ROOT}/defaults.d/starship.toml" ${STARSHIP_CONFIG};
starship_run() {
local shell=${1:-bash};
eval "$(starship init ${1})";
eval "$(starship init ${1} --print-full-init)";
export PROMPT_COMMAND='PS1=$(starship prompt)';
}
starship_install() {

@ -1,20 +1,98 @@
local wez = require 'wezterm';
return {
font = wez.font('Fira Code'),
default_prog = {"/bin/bash", "--login"},
keys = {
-- This will create a new split and run your default program inside it
{
key="s",
mods="CTRL|SHIFT|ALT",
action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}
},
{
key="i",
mods="CTRL|SHIFT|ALT",
action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}
},
local wezterm = require 'wezterm';
local config = {};
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder();
end
config.default_prog = {"/bin/bash", "--login"};
config.default_cwd = "~/projects";
config.font = wezterm.font('Pragmata Pro Mono Liga');
config.color_scheme = 'Aura (Gogh)';
--config.color_scheme = 'Batman';
config.window_padding = {
left = 10,
right = 10,
top = 10,
bottom = 10,
};
config.inactive_pane_hsb = {
saturation = 0.9,
brightness = 0.8,
};
config.window_background_opacity = 0.5;
config.keys = {
-- This will create a new split and run your default program inside it
{
key="i",
mods="CTRL|SHIFT",
action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}
},
{
key="s",
mods="CTRL|SHIFT",
action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}
},
{
key="j",
mods="CTRL|SHIFT",
action=wezterm.action{AdjustPaneSize={"Down", 4}}
},
{
key="k",
mods="CTRL|ALT",
action=wezterm.action{AdjustPaneSize={"Up", 4}}
},
{
key="h",
mods="CTRL|ALT",
action=wezterm.action{AdjustPaneSize={"Left", 4}}
},
{
key="l",
mods="CTRL|ALT",
action=wezterm.action{AdjustPaneSize={"Right", 4}}
},
{
key="h",
mods="CTRL|SHIFT",
action=wezterm.action{ActivatePaneDirection="Left"}
},
{
key="l",
mods="CTRL|SHIFT",
action=wezterm.action{ActivatePaneDirection="Right"}
},
{
key="j",
mods="CTRL|SHIFT",
action=wezterm.action{ActivatePaneDirection="Down"}
},
{
key="k",
mods="CTRL|SHIFT",
action=wezterm.action{ActivatePaneDirection="Up"}
},
{
key="w",
mods="CTRL",
action=wezterm.action{CloseCurrentPane={confirm=false}}
},
{
key="w",
mods="CTRL|SHIFT",
action=wezterm.action{CloseCurrentTab={confirm=true}}
}
};
return config;
}

@ -9,6 +9,6 @@ if [[ -f "$(which wezterm 2>&1)" ]]; then
if ! [[ -f "${WEZTERM_CONFIG_FILE}" ]]; then
files_debug_log "linking"
files_linkdir "${FILES_PLUGIN_ROOT}/defaults.d/" "${FILES_USER_CONFIG}/wezterm";
files_linkdir "${FILES_PLUGIN_ROOT}/defaults.d/" "${FILES_USER_CONFIG}/wezterm/";
fi
fi

Loading…
Cancel
Save