Compare commits
143 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2aa8820e86 | |||
| ab961d7006 | |||
| df83eef022 | |||
| 16fddec80c | |||
| 46ac775d64 | |||
| 10f10df3d3 | |||
| bbffda2ec8 | |||
| 04eb39ce33 | |||
| fc8a72ebaf | |||
| e13204586c | |||
| 406f904367 | |||
| 8a03de58b9 | |||
| 0c1bbf2724 | |||
| a13b62b983 | |||
| 16085ea510 | |||
| 0751521ea9 | |||
| 5fe9887fd1 | |||
| 008be8a351 | |||
| 03a7c0ef5d | |||
| e7409b1f7d | |||
| 936b4489c1 | |||
| 7ed4daa6d8 | |||
| 092d39ca40 | |||
| d663d0a73b | |||
| 62973120bb | |||
| 8a6fff09a9 | |||
| db86e8770e | |||
| 647e39b5cf | |||
| 9e3c50f60b | |||
| 1395146661 | |||
| 87ed7f3527 | |||
| 2e856516aa | |||
| 3d32dea385 | |||
| 334815816a | |||
| 9f65bc30c8 | |||
| e79633362e | |||
| 88ab0c75e4 | |||
| e49b11da27 | |||
| 37d14d3e7c | |||
| f79772f85f | |||
| ad38badb04 | |||
| 9165e6dad8 | |||
| 1bbd7f5e6c | |||
| 010f692b41 | |||
| cc1b5ae9c7 | |||
| 070750b7c8 | |||
| 4a28478156 | |||
| 6fb63aa116 | |||
| b307fab0f2 | |||
| 9292773c26 | |||
| d3ad5d4b5d | |||
| f64c2d39c5 | |||
| 3e630c4c4f | |||
| d30af24cae | |||
| d9b6fdfc1b | |||
| 6fcf9ba919 | |||
| 3b95857d2d | |||
| 7a7c647c22 | |||
| f0510126ba | |||
| 3a929aab14 | |||
| 30847ce7ab | |||
| e04f3e0fb8 | |||
| b419ec8f9f | |||
| 9401989d52 | |||
| 99c753d335 | |||
| 7aace26ee9 | |||
| d4cfe9e64d | |||
| d4f922dd95 | |||
| 5e349c574c | |||
| 27cf792916 | |||
| da08d846a8 | |||
| 6ff1cb0c04 | |||
| 508fd11964 | |||
| 0984ac2838 | |||
| d498a4fd18 | |||
| 2d4d014056 | |||
| b92370a8c0 | |||
| 02090ad839 | |||
| 0cab81e17c | |||
| 80f3c7ec18 | |||
| e75d93975c | |||
| a7d797f432 | |||
| d5e31079f6 | |||
| 509ccdc88b | |||
| 063f5b5029 | |||
| d1e31d35b3 | |||
| 6d2bbfa01e | |||
| ede78da06a | |||
| 1ff79d8a85 | |||
| bf1dbe95e9 | |||
| 6bd5d710ec | |||
| 4273b7612e | |||
| 133cc4d31c | |||
| b9b5ebe807 | |||
| 61df077539 | |||
| fc663940ff | |||
|
|
2e87881195 | ||
|
|
4eca2ee06a | ||
| 40cf47632b | |||
| aab3bef14a | |||
| 3490407647 | |||
| 8b096b569a | |||
| 60d9c2182a | |||
| 9a2666798a | |||
| 0a3fdd0682 | |||
| 4be018fdc5 | |||
| e94b86c137 | |||
| ed138d143a | |||
| 140f471283 | |||
| d784acc82a | |||
| c667df83fa | |||
| 5ebe434fbf | |||
| 06a0ac7cc4 | |||
| 1114ddf947 | |||
| 7df1e7a4d8 | |||
| d9fc1b7765 | |||
| 972c4d7a4d | |||
| a13b50be39 | |||
| da084d3243 | |||
| 41db2b047e | |||
| 77e0a5a50f | |||
| 423a767254 | |||
| e4d0042114 | |||
| a7c30c7a27 | |||
| 08d8a22709 | |||
| 8f4ceb7e2e | |||
| 9cac6e0f85 | |||
| c864b6df9f | |||
| c9520bf079 | |||
| 14c50758fb | |||
| 1e5bd3255d | |||
| 2502a78da7 | |||
| d2a7a8263c | |||
| 96685eb902 | |||
| 51eebfe113 | |||
| 09f050a42e | |||
| d8a623b5b8 | |||
| 9c77d9b3fc | |||
| 1b9408c46e | |||
| d2210226d8 | |||
| 15dc08f81a | |||
| d10da3b71a | |||
| e8626f8108 |
2
.chezmoi.toml.tmpl
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[diff]
|
||||||
|
reverse = true
|
||||||
4
.chezmoiexternal.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
[".tmux/plugins/tpm"]
|
||||||
|
type = "git-repo"
|
||||||
|
url = "https://github.com/tmux-plugins/tpm"
|
||||||
|
refreshPeriod = "168h"
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
set -g VIRTUALFISH_VERSION 2.5.4
|
|
||||||
set -g VIRTUALFISH_PYTHON_EXEC /bin/python
|
|
||||||
source /usr/lib/python3.10/site-packages/virtualfish/virtual.fish
|
|
||||||
emit virtualfish_did_setup_plugins
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
set PATH ~/bin ~/.go/bin /bin /sbin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin ~/.cabal/bin /usr/lib/go/bin ~/.gem/ruby/1.9.1/bin $PATH
|
|
||||||
|
|
||||||
set fish_greeting ""
|
|
||||||
|
|
||||||
. ~/.config/fish/fish_aliases.fish
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
function fish_user_key_bindings
|
|
||||||
fzf_key_bindings
|
|
||||||
end
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
||||||
# This is the build plan for my own custom fontface
|
|
||||||
# docker run -it -v $(pwd):/build avivace/iosevka-build contents::iosevka-berkeley
|
|
||||||
|
|
||||||
[buildPlans.iosevka-berkeley]
|
|
||||||
family = "Iosevka Berkeley"
|
|
||||||
spacing = "fontconfig-mono"
|
|
||||||
serifs = "sans"
|
|
||||||
no-cv-ss = true
|
|
||||||
no-ligation = true
|
|
||||||
|
|
||||||
[buildPlans.iosevka-berkeley.variants.design]
|
|
||||||
capital-g = "toothless-rounded-serifless-hooked"
|
|
||||||
g = "double-storey"
|
|
||||||
t = "flat-hook"
|
|
||||||
y = "straight-turn"
|
|
||||||
eszet = "sulzbacher-descending"
|
|
||||||
turn-v = "curly"
|
|
||||||
lower-lambda = "straight-turn"
|
|
||||||
zero = "dotted"
|
|
||||||
four = "closed"
|
|
||||||
six = "open-contour"
|
|
||||||
eight = "two-circles"
|
|
||||||
asterisk = "hex-high"
|
|
||||||
paren = "large-contour"
|
|
||||||
brace = "straight"
|
|
||||||
at = "fourfold"
|
|
||||||
percent = "rings-continuous-slash"
|
|
||||||
bar = "force-upright"
|
|
||||||
question = "corner"
|
|
||||||
|
|
||||||
[buildPlans.iosevka-berkeley.variants.italic]
|
|
||||||
capital-a = "curly-serifless"
|
|
||||||
capital-b = "standard-unilateral-serifed"
|
|
||||||
capital-d = "standard-unilateral-serifed"
|
|
||||||
capital-f = "top-left-serifed"
|
|
||||||
capital-g = "toothed-serifless-hooked"
|
|
||||||
capital-i = "short-serifed"
|
|
||||||
capital-j = "serifed-both-sides"
|
|
||||||
capital-k = "curly-serifless"
|
|
||||||
capital-m = "flat-bottom"
|
|
||||||
capital-p = "closed-motion-serifed"
|
|
||||||
capital-q = "crossing-curly-tailed"
|
|
||||||
capital-r = "curly"
|
|
||||||
capital-u = "tailed-motion-serifed"
|
|
||||||
capital-v = "curly"
|
|
||||||
capital-w = "curly"
|
|
||||||
capital-x = "curly-serifless"
|
|
||||||
capital-y = "curly-serifless"
|
|
||||||
capital-z = "curly-serifless-with-horizontal-crossbar"
|
|
||||||
a = "double-storey-tailed"
|
|
||||||
d = "toothed-serifed"
|
|
||||||
f = "flat-hook"
|
|
||||||
g = "single-storey-serifed"
|
|
||||||
h = "straight-top-left-serifed"
|
|
||||||
k = "curly-serifless"
|
|
||||||
n = "straight-top-left-serifed"
|
|
||||||
p = "motion-serifed"
|
|
||||||
q = "straight-motion-serifed"
|
|
||||||
r = "top-serifed"
|
|
||||||
u = "tailed-motion-serifed"
|
|
||||||
v = "curly"
|
|
||||||
w = "curly"
|
|
||||||
x = "curly-serifless"
|
|
||||||
y = "cursive-motion-serifed"
|
|
||||||
z = "curly-serifless-with-horizontal-crossbar"
|
|
||||||
one = "base-long-top-serif"
|
|
||||||
two = "straight-neck"
|
|
||||||
seven = "straight-crossbar"
|
|
||||||
nine = "open-contour"
|
|
||||||
paren = "normal"
|
|
||||||
|
|
||||||
[buildPlans.iosevka-berkeley.variants.oblique]
|
|
||||||
paren = "normal"
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
../.vim
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
/home/barak/.config/systemd/user/ssh-agent.service
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<channel name="xfwm4" version="1.0">
|
|
||||||
<property name="general" type="empty">
|
|
||||||
<property name="activate_action" type="empty"/>
|
|
||||||
<property name="box_move" type="empty"/>
|
|
||||||
<property name="box_resize" type="empty"/>
|
|
||||||
<property name="button_layout" type="empty"/>
|
|
||||||
<property name="button_offset" type="empty"/>
|
|
||||||
<property name="button_spacing" type="empty"/>
|
|
||||||
<property name="click_to_focus" type="empty"/>
|
|
||||||
<property name="cycle_apps_only" type="empty"/>
|
|
||||||
<property name="cycle_draw_frame" type="empty"/>
|
|
||||||
<property name="cycle_preview" type="empty"/>
|
|
||||||
<property name="double_click_distance" type="empty"/>
|
|
||||||
<property name="double_click_time" type="empty"/>
|
|
||||||
<property name="focus_delay" type="empty"/>
|
|
||||||
<property name="focus_new" type="empty"/>
|
|
||||||
<property name="frame_opacity" type="empty"/>
|
|
||||||
<property name="full_width_title" type="empty"/>
|
|
||||||
<property name="maximized_offset" type="empty"/>
|
|
||||||
<property name="mousewheel_rollup" type="empty"/>
|
|
||||||
<property name="placement_mode" type="empty"/>
|
|
||||||
<property name="raise_delay" type="empty"/>
|
|
||||||
<property name="raise_on_click" type="empty"/>
|
|
||||||
<property name="raise_on_focus" type="empty"/>
|
|
||||||
<property name="repeat_urgent_blink" type="empty"/>
|
|
||||||
<property name="scroll_workspaces" type="empty"/>
|
|
||||||
<property name="shadow_delta_height" type="empty"/>
|
|
||||||
<property name="shadow_delta_width" type="empty"/>
|
|
||||||
<property name="shadow_delta_x" type="empty"/>
|
|
||||||
<property name="shadow_delta_y" type="empty"/>
|
|
||||||
<property name="shadow_opacity" type="empty"/>
|
|
||||||
<property name="show_app_icon" type="empty"/>
|
|
||||||
<property name="show_dock_shadow" type="empty"/>
|
|
||||||
<property name="show_frame_shadow" type="empty"/>
|
|
||||||
<property name="show_popup_shadow" type="empty"/>
|
|
||||||
<property name="snap_to_border" type="empty"/>
|
|
||||||
<property name="snap_to_windows" type="empty"/>
|
|
||||||
<property name="snap_width" type="empty"/>
|
|
||||||
<property name="theme" type="empty"/>
|
|
||||||
<property name="title_alignment" type="empty"/>
|
|
||||||
<property name="title_font" type="empty"/>
|
|
||||||
<property name="title_horizontal_offset" type="empty"/>
|
|
||||||
<property name="title_shadow_active" type="empty"/>
|
|
||||||
<property name="title_shadow_inactive" type="empty"/>
|
|
||||||
<property name="title_vertical_offset_active" type="empty"/>
|
|
||||||
<property name="title_vertical_offset_inactive" type="empty"/>
|
|
||||||
<property name="urgent_blink" type="empty"/>
|
|
||||||
<property name="use_compositing" type="empty"/>
|
|
||||||
<property name="workspace_count" type="int" value="4"/>
|
|
||||||
<property name="workspace_names" type="array">
|
|
||||||
<value type="string" value="1"/>
|
|
||||||
<value type="string" value="2"/>
|
|
||||||
<value type="string" value="3"/>
|
|
||||||
<value type="string" value="5"/>
|
|
||||||
<value type="string" value="9"/>
|
|
||||||
<value type="string" value="10"/>
|
|
||||||
<value type="string" value="10"/>
|
|
||||||
<value type="string" value="Workspace 8"/>
|
|
||||||
</property>
|
|
||||||
<property name="wrap_resistance" type="empty"/>
|
|
||||||
<property name="wrap_windows" type="empty"/>
|
|
||||||
<property name="wrap_workspaces" type="empty"/>
|
|
||||||
<property name="borderless_maximize" type="bool" value="true"/>
|
|
||||||
<property name="cycle_hidden" type="bool" value="true"/>
|
|
||||||
<property name="cycle_minimum" type="bool" value="true"/>
|
|
||||||
<property name="cycle_tabwin_mode" type="int" value="0"/>
|
|
||||||
<property name="cycle_workspaces" type="bool" value="false"/>
|
|
||||||
<property name="double_click_action" type="string" value="maximize"/>
|
|
||||||
<property name="easy_click" type="string" value="Alt"/>
|
|
||||||
<property name="focus_hint" type="bool" value="true"/>
|
|
||||||
<property name="horiz_scroll_opacity" type="bool" value="false"/>
|
|
||||||
<property name="inactive_opacity" type="int" value="100"/>
|
|
||||||
<property name="move_opacity" type="int" value="100"/>
|
|
||||||
<property name="placement_ratio" type="int" value="20"/>
|
|
||||||
<property name="popup_opacity" type="int" value="100"/>
|
|
||||||
<property name="prevent_focus_stealing" type="bool" value="false"/>
|
|
||||||
<property name="raise_with_any_button" type="bool" value="true"/>
|
|
||||||
<property name="resize_opacity" type="int" value="100"/>
|
|
||||||
<property name="snap_resist" type="bool" value="false"/>
|
|
||||||
<property name="sync_to_vblank" type="bool" value="false"/>
|
|
||||||
<property name="tile_on_move" type="bool" value="true"/>
|
|
||||||
<property name="titleless_maximize" type="bool" value="false"/>
|
|
||||||
<property name="toggle_workspaces" type="bool" value="false"/>
|
|
||||||
<property name="unredirect_overlays" type="bool" value="true"/>
|
|
||||||
<property name="wrap_cycle" type="bool" value="true"/>
|
|
||||||
<property name="wrap_layout" type="bool" value="true"/>
|
|
||||||
<property name="zoom_desktop" type="bool" value="true"/>
|
|
||||||
</property>
|
|
||||||
</channel>
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
;;; init.el --- Spacemacs Initialization File
|
|
||||||
;;
|
|
||||||
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
|
||||||
;;
|
|
||||||
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
||||||
;; URL: https://github.com/syl20bnr/spacemacs
|
|
||||||
;;
|
|
||||||
;; This file is not part of GNU Emacs.
|
|
||||||
;;
|
|
||||||
;;; License: GPLv3
|
|
||||||
|
|
||||||
;; Without this comment emacs25 adds (package-initialize) here
|
|
||||||
;; (package-initialize)
|
|
||||||
|
|
||||||
;; Increase gc-cons-threshold, depending on your system you may set it back to a
|
|
||||||
;; lower value in your dotfile (function `dotspacemacs/user-config')
|
|
||||||
(setq gc-cons-threshold 100000000)
|
|
||||||
|
|
||||||
(defconst spacemacs-version "0.200.3" "Spacemacs version.")
|
|
||||||
(defconst spacemacs-emacs-min-version "24.4" "Minimal version of Emacs.")
|
|
||||||
|
|
||||||
(if (not (version<= spacemacs-emacs-min-version emacs-version))
|
|
||||||
(message (concat "Your version of Emacs (%s) is too old. "
|
|
||||||
"Spacemacs requires Emacs version %s or above.")
|
|
||||||
emacs-version spacemacs-emacs-min-version)
|
|
||||||
(load-file (concat (file-name-directory load-file-name)
|
|
||||||
"core/core-load-paths.el"))
|
|
||||||
(require 'core-spacemacs)
|
|
||||||
(spacemacs/init)
|
|
||||||
(spacemacs/maybe-install-dotfile)
|
|
||||||
(configuration-layer/sync)
|
|
||||||
(spacemacs-buffer/display-info-box)
|
|
||||||
(spacemacs/setup-startup-hook)
|
|
||||||
(require 'server)
|
|
||||||
(unless (server-running-p) (server-start)))
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
/home/barak/.config/fontconfig/fonts.conf
|
|
||||||
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
||||||
*~
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
/home/barak/.fonts
|
|
||||||
1
.nvim
|
|
@ -1 +0,0 @@
|
||||||
.vim
|
|
||||||
1
.nvimrc
|
|
@ -1 +0,0 @@
|
||||||
.vimrc
|
|
||||||
66
.tmux.conf
|
|
@ -1,66 +0,0 @@
|
||||||
set -g prefix C-a
|
|
||||||
unbind C-b
|
|
||||||
|
|
||||||
set -g base-index 1
|
|
||||||
setw -g pane-base-index 1
|
|
||||||
|
|
||||||
# Make vim more responsive
|
|
||||||
set -sg escape-time 10
|
|
||||||
|
|
||||||
bind-key C-o last-window
|
|
||||||
bind-key C-a select-pane -t :.+
|
|
||||||
bind-key a send-prefix
|
|
||||||
bind r source-file ~/.tmux.conf
|
|
||||||
bind -n M-j select-pane -D
|
|
||||||
bind -n M-k select-pane -U
|
|
||||||
bind -n M-h select-pane -L
|
|
||||||
bind -n M-l select-pane -R
|
|
||||||
bind-key C-n next-window
|
|
||||||
bind-key C-p previous-window
|
|
||||||
set -g set-titles off
|
|
||||||
set -g mouse on
|
|
||||||
set -g default-terminal tmux-256color
|
|
||||||
setw -g mode-keys vi
|
|
||||||
new -d
|
|
||||||
|
|
||||||
|
|
||||||
# shift-movement keys will resize panes
|
|
||||||
bind -r H resize-pane -L 5
|
|
||||||
bind -r J resize-pane -D 5
|
|
||||||
bind -r K resize-pane -U 5
|
|
||||||
bind -r L resize-pane -R 5
|
|
||||||
|
|
||||||
# better mnemonics for splitting panes!
|
|
||||||
bind | split-window -h
|
|
||||||
bind - split-window -v
|
|
||||||
|
|
||||||
bind v split-window -h
|
|
||||||
bind = select-layout even-horizontal
|
|
||||||
|
|
||||||
# Status Bar
|
|
||||||
#set -g status-bg black
|
|
||||||
set -g status-interval 1
|
|
||||||
#set -g status-left '#[fg=green]#H#[default]'
|
|
||||||
#set -g status-left-length 20
|
|
||||||
#set -g status-right '#[fg=green]#(~/src/tpom/tpom) #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
|
|
||||||
set -g status-justify centre # center align window list
|
|
||||||
set -g status-style fg=white,bg=default
|
|
||||||
|
|
||||||
# default window title colors
|
|
||||||
set-window-option -g window-status-style fg=white,bg=default,dim
|
|
||||||
|
|
||||||
# active window title colors
|
|
||||||
set-window-option -g window-status-current-style fg=cyan,bg=default,bright
|
|
||||||
|
|
||||||
set-window-option -g window-style fg=#aaaaaa,bg=terminal
|
|
||||||
set-window-option -g window-active-style fg=terminal,bg=terminal
|
|
||||||
|
|
||||||
set -g status-left '#[fg=green][ #H ][ '
|
|
||||||
set -g status-right '#[fg=green]][ #[bright]#[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[dim]#[fg=green]]'
|
|
||||||
|
|
||||||
# Notifying if other windows has activities
|
|
||||||
setw -g monitor-activity on
|
|
||||||
set -g visual-activity on
|
|
||||||
|
|
||||||
# Highlighting the active window in status bar
|
|
||||||
setw -g window-status-current-style bg=red,bright
|
|
||||||
327
.vim/nvim.lua
|
|
@ -1,327 +0,0 @@
|
||||||
require('nvim-autopairs').setup{}
|
|
||||||
|
|
||||||
-- nvim_lsp object
|
|
||||||
local nvim_lsp = require'lspconfig'
|
|
||||||
|
|
||||||
-- function to attach completion when setting up lsp
|
|
||||||
local on_attach = function(client)
|
|
||||||
end
|
|
||||||
|
|
||||||
local rust_capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
||||||
rust_capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|
||||||
rust_capabilities.textDocument.completion.completionItem.resolveSupport = {
|
|
||||||
properties = {
|
|
||||||
'documentation',
|
|
||||||
'detail',
|
|
||||||
'additionalTextEdits',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Enable rust_analyzer
|
|
||||||
nvim_lsp.rust_analyzer.setup({
|
|
||||||
on_attach=on_attach,
|
|
||||||
capabilities=rust_capabilities,
|
|
||||||
})
|
|
||||||
nvim_lsp.gopls.setup({ on_attach=on_attach })
|
|
||||||
nvim_lsp.pyright.setup({ on_attach=on_attach })
|
|
||||||
nvim_lsp.clangd.setup({ on_attach=on_attach })
|
|
||||||
|
|
||||||
function org_imports(wait_ms)
|
|
||||||
local params = vim.lsp.util.make_range_params()
|
|
||||||
|
|
||||||
params.context = {only = {"source.organizeImports"}}
|
|
||||||
|
|
||||||
local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, wait_ms)
|
|
||||||
|
|
||||||
for _, res in pairs(result or {}) do
|
|
||||||
for _, r in pairs(res.result or {}) do
|
|
||||||
if r.edit then
|
|
||||||
vim.lsp.util.apply_workspace_edit(r.edit)
|
|
||||||
else
|
|
||||||
vim.lsp.buf.execute_command(r.command)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
nvim_lsp.efm.setup {
|
|
||||||
init_options = {documentFormatting = true},
|
|
||||||
settings = {
|
|
||||||
rootMarkers = {".git/"},
|
|
||||||
languages = {
|
|
||||||
lua = {
|
|
||||||
{ formatCommand = "lua-format -i", formatStdin = true }
|
|
||||||
},
|
|
||||||
python = {
|
|
||||||
{ formatCommand = 'black --quiet -', formatStdin = true }
|
|
||||||
},
|
|
||||||
rust = {
|
|
||||||
{ formatCommand = 'rustfmt', formatStdin = true }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Enable diagnostics
|
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
|
||||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
|
||||||
virtual_text = false,
|
|
||||||
signs = true,
|
|
||||||
update_in_insert = false,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Compe setup
|
|
||||||
require'compe'.setup {
|
|
||||||
enabled = true;
|
|
||||||
autocomplete = true;
|
|
||||||
debug = false;
|
|
||||||
min_length = 1;
|
|
||||||
preselect = 'disable';
|
|
||||||
throttle_time = 80;
|
|
||||||
source_timeout = 200;
|
|
||||||
incomplete_delay = 400;
|
|
||||||
max_abbr_width = 100;
|
|
||||||
max_kind_width = 100;
|
|
||||||
max_menu_width = 100;
|
|
||||||
documentation = true;
|
|
||||||
|
|
||||||
source = {
|
|
||||||
path = true;
|
|
||||||
nvim_lsp = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
signature_cfg = {
|
|
||||||
hint_enable = true,
|
|
||||||
hint_prefix = "% ",
|
|
||||||
handler_opts = {
|
|
||||||
border = "none"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
require'lsp_signature'.on_attach(signature_cfg)
|
|
||||||
|
|
||||||
saga_cfg = {
|
|
||||||
code_action_prompt = {
|
|
||||||
enable = false,
|
|
||||||
sign = false,
|
|
||||||
virtual_text = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- require'lspsaga'.init_lsp_saga(saga_cfg)
|
|
||||||
|
|
||||||
local t = function(str)
|
|
||||||
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
|
||||||
end
|
|
||||||
|
|
||||||
local check_back_space = function()
|
|
||||||
local col = vim.fn.col('.') - 1
|
|
||||||
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
|
|
||||||
return true
|
|
||||||
else
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Use (s-)tab to:
|
|
||||||
--- move to prev/next item in completion menuone
|
|
||||||
--- jump to prev/next snippet's placeholder
|
|
||||||
_G.tab_complete = function()
|
|
||||||
if vim.fn.pumvisible() == 1 then
|
|
||||||
return t "<C-n>"
|
|
||||||
elseif check_back_space() then
|
|
||||||
return t "<Tab>"
|
|
||||||
else
|
|
||||||
return vim.fn['compe#complete']()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
_G.s_tab_complete = function()
|
|
||||||
if vim.fn.pumvisible() == 1 then
|
|
||||||
return t "<C-p>"
|
|
||||||
else
|
|
||||||
return t "<S-Tab>"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", {expr = true})
|
|
||||||
vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", {expr = true})
|
|
||||||
vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
|
||||||
vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
|
||||||
|
|
||||||
require('lspkind').init({
|
|
||||||
-- disables text annotations
|
|
||||||
--with_text = false,
|
|
||||||
with_text = true,
|
|
||||||
|
|
||||||
-- default symbol map
|
|
||||||
-- can be either 'default' or 'codicons'
|
|
||||||
preset = 'default',
|
|
||||||
|
|
||||||
-- override preset symbols
|
|
||||||
-- default: {}
|
|
||||||
--symbol_map = {
|
|
||||||
--Method = 'm',
|
|
||||||
--Function = 'f',
|
|
||||||
--Text = 'txt',
|
|
||||||
--Constructor = 'new',
|
|
||||||
--Variable = 'var',
|
|
||||||
--Class = 'cls',
|
|
||||||
--Interface = 'iface',
|
|
||||||
--Module = 'mod',
|
|
||||||
--Property = 'prop',
|
|
||||||
--Unit = 'unit',
|
|
||||||
--Value = 'val',
|
|
||||||
--Enum = 'enum',
|
|
||||||
--Keyword = 'kw',
|
|
||||||
--Snippet = 'sn',
|
|
||||||
--Color = 'color',
|
|
||||||
--File = 'file',
|
|
||||||
--Folder = 'fold',
|
|
||||||
--EnumMember = 'enum',
|
|
||||||
--Constant = 'const',
|
|
||||||
--Struct = 'struct',
|
|
||||||
--},
|
|
||||||
})
|
|
||||||
|
|
||||||
require('trouble').setup {
|
|
||||||
mode = "document_diagnostics",
|
|
||||||
auto_close = true,
|
|
||||||
action_keys = { -- key mappings for actions in the trouble list
|
|
||||||
-- map to {} to remove a mapping, for example:
|
|
||||||
-- close = {},
|
|
||||||
--close = "q", -- close the list
|
|
||||||
--cancel = "<esc>", -- cancel the preview and get back to your last window / buffer / cursor
|
|
||||||
--refresh = "r", -- manually refresh
|
|
||||||
jump = {"o", "<tab>"}, -- jump to the diagnostic or open / close folds
|
|
||||||
--open_split = { "<c-x>" }, -- open buffer in new split
|
|
||||||
--open_vsplit = { "<c-v>" }, -- open buffer in new vsplit
|
|
||||||
open_tab = { }, -- open buffer in new tab
|
|
||||||
jump_close = {"<cr>"}, -- jump to the diagnostic and close the list
|
|
||||||
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
|
|
||||||
toggle_preview = "P", -- toggle auto_preview
|
|
||||||
hover = "K", -- opens a small popup with the full multiline message
|
|
||||||
preview = "p", -- preview the diagnostic location
|
|
||||||
close_folds = {"zM", "zm"}, -- close all folds
|
|
||||||
open_folds = {"zR", "zr"}, -- open all folds
|
|
||||||
toggle_fold = {"zA", "za"}, -- toggle fold of current file
|
|
||||||
previous = "k", -- previous item
|
|
||||||
next = "j" -- next item
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
require('telescope').setup {
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
n = {
|
|
||||||
["q"] = require('telescope.actions').close,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
pickers = {
|
|
||||||
lsp_code_actions = {
|
|
||||||
theme = "ivy",
|
|
||||||
layout_config = {
|
|
||||||
height = 10,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
lsp_range_code_actions = {
|
|
||||||
theme = "ivy",
|
|
||||||
layout_config = {
|
|
||||||
height = 10,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
lsp_references = {
|
|
||||||
theme = "ivy",
|
|
||||||
layout_config = {
|
|
||||||
height = 15,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local builtin = require'telescope.builtin'
|
|
||||||
|
|
||||||
local dropdown = require'telescope.themes'.get_dropdown({
|
|
||||||
--previewer = false,
|
|
||||||
--prompt_title = "",
|
|
||||||
--results_height = 16,
|
|
||||||
--width = 0.6,
|
|
||||||
--borderchars = {
|
|
||||||
--{"─", "│", "─", "│", "╭", "╮", "╯", "╰"},
|
|
||||||
--prompt = {"─", "│", " ", "│", "╭", "╮", "│", "│"},
|
|
||||||
--results = {"─", "│", "─", "│", "├", "┤", "╯", "╰"},
|
|
||||||
--preview = {"─", "│", "─", "│", "╭", "╮", "╯", "╰"}
|
|
||||||
--},
|
|
||||||
--winblend = 10
|
|
||||||
})
|
|
||||||
|
|
||||||
live_grep_repo = function(conf)
|
|
||||||
--local opt = dropdown
|
|
||||||
local opt = {
|
|
||||||
cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
|
|
||||||
}
|
|
||||||
for k,v in pairs(conf) do opt[k] = v end
|
|
||||||
builtin.live_grep(opt)
|
|
||||||
end
|
|
||||||
|
|
||||||
git_grep_word = function(conf)
|
|
||||||
--local opt = dropdown
|
|
||||||
local opt = {
|
|
||||||
cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
|
|
||||||
}
|
|
||||||
for k,v in pairs(conf) do opt[k] = v end
|
|
||||||
builtin.grep_string(opt)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function string.insert(str1, str2, pos)
|
|
||||||
return str1:sub(1,pos)..str2..str1:sub(pos+1)
|
|
||||||
end
|
|
||||||
|
|
||||||
function string.split(s, delimiter)
|
|
||||||
result = {};
|
|
||||||
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
|
|
||||||
table.insert(result, match);
|
|
||||||
end
|
|
||||||
return result;
|
|
||||||
end
|
|
||||||
|
|
||||||
local function rust_whereify_line(line, var_name)
|
|
||||||
if string.find(line, "fn") == nil then
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
|
|
||||||
local paren = string.find(line, "%(")
|
|
||||||
if paren == nil then return nil end
|
|
||||||
|
|
||||||
local open_generic = string.find(line, "<")
|
|
||||||
if open_generic ~= nil then
|
|
||||||
if open_generic < paren then
|
|
||||||
-- TODO(barakmich): it's already generic, we need to do something for that
|
|
||||||
-- probably a different function
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
-- just continue otherwise
|
|
||||||
end
|
|
||||||
|
|
||||||
local whitespace = string.match(line, "^(%s*)")
|
|
||||||
|
|
||||||
local generic = "<"..var_name..">"
|
|
||||||
local out = string.insert(line, generic, paren - 1)
|
|
||||||
|
|
||||||
local brace = string.find(out, "%{")
|
|
||||||
if brace == nil then brace = string.len(out) end
|
|
||||||
|
|
||||||
out = string.insert(out, "\n"..whitespace.."where\n"..whitespace.." "..var_name..": ,\n"..whitespace, brace - 1)
|
|
||||||
|
|
||||||
return string.split(out, "\n")
|
|
||||||
end
|
|
||||||
|
|
||||||
function rust_where_at_line()
|
|
||||||
local var_name = vim.fn.input("Variable: ")
|
|
||||||
local lineNum, col = unpack(vim.api.nvim_win_get_cursor(0))
|
|
||||||
local replacements = rust_whereify_line(vim.api.nvim_get_current_line(), var_name)
|
|
||||||
vim.api.nvim_buf_set_lines(0, lineNum-1, lineNum, false, replacements)
|
|
||||||
vim.api.nvim_win_set_cursor(0, {lineNum + 2, 4})
|
|
||||||
end
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.xinitrc
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
./.zprofile
|
|
||||||
0
bin/ack → bin/executable_ack
Executable file → Normal file
0
bin/average → bin/executable_average
Executable file → Normal file
132
bin/executable_battery
Normal file
|
|
@ -0,0 +1,132 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
HEART_FULL=♥
|
||||||
|
HEART_EMPTY=♡
|
||||||
|
[ -z "$NUM_HEARTS" ] &&
|
||||||
|
NUM_HEARTS=5
|
||||||
|
|
||||||
|
cutinate()
|
||||||
|
{
|
||||||
|
perc=$1
|
||||||
|
inc=$(( 100 / $NUM_HEARTS))
|
||||||
|
|
||||||
|
|
||||||
|
for i in `seq $NUM_HEARTS`; do
|
||||||
|
if [ $perc -lt 100 ]; then
|
||||||
|
echo $HEART_EMPTY
|
||||||
|
else
|
||||||
|
echo $HEART_FULL
|
||||||
|
fi
|
||||||
|
perc=$(( $perc + $inc ))
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
linux_get_bat ()
|
||||||
|
{
|
||||||
|
echo $(( $BAT_TOTAL / $BAT_COUNT ))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
openbsd_get_bat ()
|
||||||
|
{
|
||||||
|
bf=$(sysctl -n hw.sensors.acpibat0.amphour0 | cut -d ' ' -f 1)
|
||||||
|
bn=$(sysctl -n hw.sensors.acpibat0.amphour3 | cut -d ' ' -f 1)
|
||||||
|
echo "(($bn * 100) / $bf)" | bc -l | awk -F '.' '{ print $1 }';
|
||||||
|
}
|
||||||
|
|
||||||
|
freebsd_get_bat ()
|
||||||
|
{
|
||||||
|
sysctl -n hw.acpi.battery.life
|
||||||
|
}
|
||||||
|
|
||||||
|
battery_status()
|
||||||
|
{
|
||||||
|
case $(uname -s) in
|
||||||
|
"Linux")
|
||||||
|
BATTERIES=$(ls /sys/class/power_supply | grep BAT)
|
||||||
|
BAT_COUNT=$(ls /sys/class/power_supply | grep BAT | wc -l)
|
||||||
|
[ $BAT_COUNT -eq 0 ] && return
|
||||||
|
for BATTERY in $BATTERIES; do
|
||||||
|
BAT_PATH=/sys/class/power_supply/$BATTERY
|
||||||
|
STATUS=$BAT_PATH/status
|
||||||
|
[ "$1" = `cat $STATUS` ] || [ "$1" = "" ] || return 0
|
||||||
|
if [ -f "$BAT_PATH/energy_full" ]; then
|
||||||
|
naming="energy"
|
||||||
|
elif [ -f "$BAT_PATH/charge_full" ]; then
|
||||||
|
naming="charge"
|
||||||
|
elif [ -f "$BAT_PATH/capacity" ]; then
|
||||||
|
cat "$BAT_PATH/capacity"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
BAT_PERCENT=$(( 100 * $(cat $BAT_PATH/${naming}_now) / $(cat $BAT_PATH/${naming}_full) ))
|
||||||
|
BAT_TOTAL=$(( ${BAT_TOTAL-0} + $BAT_PERCENT ))
|
||||||
|
done
|
||||||
|
linux_get_bat
|
||||||
|
;;
|
||||||
|
"FreeBSD")
|
||||||
|
STATUS=`sysctl -n hw.acpi.battery.state`
|
||||||
|
case $1 in
|
||||||
|
"Discharging")
|
||||||
|
if [ $STATUS -eq 1 ]; then
|
||||||
|
freebsd_get_bat
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"Charging")
|
||||||
|
if [ $STATUS -eq 2 ]; then
|
||||||
|
freebsd_get_bat
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
freebsd_get_bat
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
"OpenBSD")
|
||||||
|
openbsd_get_bat
|
||||||
|
;;
|
||||||
|
"Darwin")
|
||||||
|
case $1 in
|
||||||
|
"Discharging")
|
||||||
|
ext="No";;
|
||||||
|
"Charging")
|
||||||
|
ext="Yes";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
ioreg -c AppleSmartBattery -w0 | \
|
||||||
|
grep -o '"[^"]*" = [^ ]*' | \
|
||||||
|
sed -e 's/= //g' -e 's/"//g' | \
|
||||||
|
sort | \
|
||||||
|
while read key value; do
|
||||||
|
case $key in
|
||||||
|
"MaxCapacity")
|
||||||
|
export maxcap=$value;;
|
||||||
|
"CurrentCapacity")
|
||||||
|
export curcap=$value;;
|
||||||
|
"ExternalConnected")
|
||||||
|
if [ -n "$ext" ] && [ "$ext" != "$value" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"FullyCharged")
|
||||||
|
if [ "$value" = "Yes" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if [[ -n "$maxcap" && -n $curcap ]]; then
|
||||||
|
echo $(( 100 * $curcap / $maxcap ))
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
BATTERY_STATUS=`battery_status $1`
|
||||||
|
[ -z "$BATTERY_STATUS" ] && exit
|
||||||
|
|
||||||
|
if [ -n "$CUTE_BATTERY_INDICATOR" ]; then
|
||||||
|
cutinate $BATTERY_STATUS
|
||||||
|
else
|
||||||
|
echo ${BATTERY_STATUS}%
|
||||||
|
fi
|
||||||
|
|
||||||
0
bin/callout → bin/executable_callout
Executable file → Normal file
0
bin/contract → bin/executable_contract
Executable file → Normal file
0
bin/cronic → bin/executable_cronic
Executable file → Normal file
0
bin/gblame → bin/executable_gblame
Executable file → Normal file
22
bin/executable_gocov.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
POSITIONAL=()
|
||||||
|
while [[ $# -gt 0 ]]
|
||||||
|
do
|
||||||
|
key="$1"
|
||||||
|
|
||||||
|
case $key in
|
||||||
|
*) # unknown option
|
||||||
|
POSITIONAL+=("$1") # save it in an array for later
|
||||||
|
shift # past argument
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
set -- "${POSITIONAL[@]}" # restore positional parameters
|
||||||
|
|
||||||
|
FILENAME="${POSITIONAL[0]}"
|
||||||
|
|
||||||
|
go tool cover -html="$FILENAME" -o "$FILENAME.html"
|
||||||
|
elinks "$FILENAME.html"
|
||||||
|
rm "$FILENAME.html"
|
||||||
0
bin/golintc → bin/executable_golintc
Executable file → Normal file
0
bin/orly → bin/executable_orly
Executable file → Normal file
0
bin/pk → bin/executable_pk
Executable file → Normal file
0
bin/theyfightcrime → bin/executable_theyfightcrime
Executable file → Normal file
4
bin/vi → bin/executable_vi
Executable file → Normal file
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
if [ -n "`which nvim`" ]; then
|
if [ -n "`which nvim`" ]; then
|
||||||
nvim "$@"
|
exec -a nvim nvim "$@"
|
||||||
else
|
else
|
||||||
vim "$@"
|
exec -a vim vim "$@"
|
||||||
fi
|
fi
|
||||||
0
bin/xinput-toggle → bin/executable_xinput-toggle
Executable file → Normal file
BIN
bin/gettermsize
|
|
@ -1 +0,0 @@
|
||||||
./appimage/obsidian.appimage
|
|
||||||
7
bin/rename_git_branch.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git checkout $1
|
||||||
|
git branch -m $1 $2
|
||||||
|
git fetch
|
||||||
|
git branch --unset-upstream
|
||||||
|
git branch -u origin/$2
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -n "`which firefox`" ]; then
|
|
||||||
firefox
|
|
||||||
elif [ -n "`which iceweasel`" ]; then
|
|
||||||
iceweasel
|
|
||||||
elif [ -n "`which google-chrome`" ]; then
|
|
||||||
google-chrome
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
docker run --rm -p 10000:8888 -e JUPYTER_ENABLE_LAB=yes -v "$PWD":/home/jovyan jupyter/datascience-notebook
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ -n "`which alacritty`" ]; then
|
|
||||||
alacritty $@
|
|
||||||
elif [ -n "`which terminator`" ]; then
|
|
||||||
terminator $@
|
|
||||||
elif [ -n "`which gnome-terminal`" ]; then
|
|
||||||
gnome-terminal $@
|
|
||||||
elif [ -n "`which xfce4-terminal`" ]; then
|
|
||||||
xfce4-terminal $@
|
|
||||||
elif [ -n "`which urxvt`" ]; then
|
|
||||||
urxvt $@
|
|
||||||
else
|
|
||||||
xterm $@
|
|
||||||
fi
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
tunnelwrap -i "$HOME/.ssh/id_ed25519" -p 2222 8082:docdav.dav.svc.k8s.barakmich.com:80 barak@barakmich.com "$HOME/local/Zotero_linux-x86_64/zotero"
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/local/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
getopts('u');
|
getopts('u');
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,4 @@ fi
|
||||||
|
|
||||||
# Added by ~/.emacs.d/install.sh
|
# Added by ~/.emacs.d/install.sh
|
||||||
export PATH=$HOME/.cask/bin:$PATH
|
export PATH=$HOME/.cask/bin:$PATH
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|
@ -161,3 +161,4 @@ fi
|
||||||
if [ -f ~/local/google-cloud-sdk/completion.bash.inc ]; then
|
if [ -f ~/local/google-cloud-sdk/completion.bash.inc ]; then
|
||||||
. ~/local/google-cloud-sdk/completion.bash.inc
|
. ~/local/google-cloud-sdk/completion.bash.inc
|
||||||
fi
|
fi
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
148
dot_config/alacritty/alacritty.toml.tmpl
Normal file
|
|
@ -0,0 +1,148 @@
|
||||||
|
[bell]
|
||||||
|
color = "#ffffff"
|
||||||
|
duration = 200
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
draw_bold_text_with_bright_colors = false
|
||||||
|
|
||||||
|
[colors.bright]
|
||||||
|
black = "#565656"
|
||||||
|
blue = "#49a4f8"
|
||||||
|
cyan = "#99faf2"
|
||||||
|
green = "#c0e17d"
|
||||||
|
magenta = "#a47de9"
|
||||||
|
red = "#ec5357"
|
||||||
|
white = "#ffffff"
|
||||||
|
yellow = "#f9da6a"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "#2e2e2e"
|
||||||
|
blue = "#47a0f3"
|
||||||
|
cyan = "#64dbed"
|
||||||
|
green = "#abe047"
|
||||||
|
magenta = "#7b5cb0"
|
||||||
|
red = "#eb4129"
|
||||||
|
white = "#e5e9f0"
|
||||||
|
yellow = "#f6c744"
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "#000000"
|
||||||
|
foreground = "#fffbf6"
|
||||||
|
|
||||||
|
[env]
|
||||||
|
TERM = "xterm-256color"
|
||||||
|
|
||||||
|
[font]
|
||||||
|
{{if eq .chezmoi.hostname "lysander" -}}
|
||||||
|
size = 15.5
|
||||||
|
{{ else if eq .chezmoi.hostname "mercutio" -}}
|
||||||
|
size = 19.0
|
||||||
|
{{ else if eq .chezmoi.hostname "rosencrantz" -}}
|
||||||
|
size = 15.0
|
||||||
|
{{ else if eq .chezmoi.hostname "altair" -}}
|
||||||
|
size = 22
|
||||||
|
{{ else if eq .chezmoi.hostname "hermia" -}}
|
||||||
|
size = 20.5
|
||||||
|
{{ else -}}
|
||||||
|
size = 19.0
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
[font.bold]
|
||||||
|
style = "Semi-Condensed"
|
||||||
|
#style = "Regular"
|
||||||
|
|
||||||
|
[font.bold_italic]
|
||||||
|
style = "Semi-Condensed Oblique"
|
||||||
|
#style = "Italic"
|
||||||
|
|
||||||
|
[font.italic]
|
||||||
|
style = "Light Semi-Condensed Oblique"
|
||||||
|
#style = "Light Italic"
|
||||||
|
|
||||||
|
[font.normal]
|
||||||
|
family = "Iosevka Berkeley"
|
||||||
|
style = "Light Semi-Condensed"
|
||||||
|
#style = "Light"
|
||||||
|
|
||||||
|
[hints]
|
||||||
|
alphabet = "jfkdls;ahgurieowpq"
|
||||||
|
|
||||||
|
[[hints.enabled]]
|
||||||
|
action = "Copy"
|
||||||
|
regex = "[a-f0-9]{7,}"
|
||||||
|
|
||||||
|
[hints.enabled.binding]
|
||||||
|
key = "H"
|
||||||
|
mods = "Control|Shift"
|
||||||
|
|
||||||
|
[[hints.enabled]]
|
||||||
|
action = "Copy"
|
||||||
|
regex = "(magnet:|mailto:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-<>\"\\s{-}\\^⟨⟩`]+"
|
||||||
|
|
||||||
|
[hints.enabled.binding]
|
||||||
|
key = "U"
|
||||||
|
mods = "Control|Shift"
|
||||||
|
|
||||||
|
[[hints.enabled]]
|
||||||
|
post_processing = true
|
||||||
|
regex = "(magnet:|mailto:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-<>\"\\s{-}\\^⟨⟩`]+"
|
||||||
|
{{if eq .chezmoi.os "darwin" -}}
|
||||||
|
command = "open"
|
||||||
|
{{ else -}}
|
||||||
|
command = "xdg-open"
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
[hints.enabled.binding]
|
||||||
|
key = "L"
|
||||||
|
mods = "Control|Shift"
|
||||||
|
|
||||||
|
[hints.enabled.mouse]
|
||||||
|
enabled = true
|
||||||
|
mods = "None"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ToggleViMode"
|
||||||
|
key = "Q"
|
||||||
|
mode = "Vi|~Search"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "Paste"
|
||||||
|
key = "P"
|
||||||
|
mode = "Vi|~Search"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
{{if eq .chezmoi.hostname "rosencrantz" -}}
|
||||||
|
action = "ToggleFullscreen"
|
||||||
|
{{ else -}}
|
||||||
|
action = "ToggleMaximized"
|
||||||
|
{{ end }}
|
||||||
|
key = "Return"
|
||||||
|
mods = "Alt"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ToggleSimpleFullscreen"
|
||||||
|
key = "Return"
|
||||||
|
mods = "Command"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
chars = "\u001B."
|
||||||
|
key = "Period"
|
||||||
|
mods = "Command"
|
||||||
|
|
||||||
|
[scrolling]
|
||||||
|
history = 10000
|
||||||
|
multiplier = 3
|
||||||
|
|
||||||
|
[window]
|
||||||
|
opacity = 0.88
|
||||||
|
startup_mode = "Windowed"
|
||||||
|
option_as_alt = "Both"
|
||||||
|
#decorations = "None"
|
||||||
|
|
||||||
|
[window.dimensions]
|
||||||
|
columns = 106
|
||||||
|
lines = 24
|
||||||
|
|
||||||
|
[window.padding]
|
||||||
|
x = 3
|
||||||
|
y = 3
|
||||||
|
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 262 KiB |
|
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 967 B |
|
Before Width: | Height: | Size: 997 B After Width: | Height: | Size: 997 B |
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 395 B |
|
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 153 B |
|
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 153 B |
|
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
|
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
|
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 165 B |
|
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 172 B |
|
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
|
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 168 B |
|
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 370 B |
|
Before Width: | Height: | Size: 86 B After Width: | Height: | Size: 86 B |
|
Before Width: | Height: | Size: 92 B After Width: | Height: | Size: 92 B |
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 345 B |
|
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
|
Before Width: | Height: | Size: 619 B After Width: | Height: | Size: 619 B |
|
Before Width: | Height: | Size: 658 B After Width: | Height: | Size: 658 B |
|
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 550 B |
|
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 667 B |
|
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 541 B |
|
Before Width: | Height: | Size: 953 B After Width: | Height: | Size: 953 B |
|
Before Width: | Height: | Size: 720 B After Width: | Height: | Size: 720 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 722 B |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 715 B |
|
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 655 B |