commit b161e696c3a072dc93530974e50133d2fd2e4bd3 Author: Matej Janežič Date: Tue May 30 22:45:28 2023 +0200 feat: initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aef55f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# ignore everything +/* + +# allowed misc files +!.gitmodules +!.gitignore + +# allow some stuff to be pushed +!tmux +!git +!alacritty +!nvim diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..25a9158 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "nvim"] + path = nvim + url = git@github.com:janezicmatej/nvim.git diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml new file mode 100644 index 0000000..312d7c2 --- /dev/null +++ b/alacritty/alacritty.yml @@ -0,0 +1,152 @@ +# https://gist.github.com/sainnhe/ad5cbc4f05c4ced83f80e54d9a75d22f +colors: + primary: + background: '0x32302f' + foreground: '0xd4be98' + normal: + black: '0x45403d' + red: '0xea6962' + green: '0xa9b665' + yellow: '0xd8a657' + blue: '0x7daea3' + magenta: '0xd3869b' + cyan: '0x89b482' + white: '0xd4be98' + bright: + black: '0x45403d' + red: '0xea6962' + green: '0xa9b665' + yellow: '0xd8a657' + blue: '0x7daea3' + magenta: '0xd3869b' + cyan: '0x89b482' + white: '0xd4be98' + +# Any items in the `env` entry below will be added as +# environment variables. Some entries may override variables +# set by alacritty itself. +env: + TERM: xterm-256color + +window: + # window dimensions + dimensions: + columns: 150 + lines: 36 + + # allow programs to dynamically change title + dynamic_title: true + +scrolling: + # Maximum number of lines in the scrollback buffer. + history: 10000 + +# https://github.com/ryanoasis/nerd-fonts +font: + size: 14 + + normal: + family: JetBrainsMonoNL Nerd Font + style: Regular + + italic: + family: JetBrainsMonoNL Nerd Font + style: Italic + + bold: + family: JetBrainsMonoNL Nerd Font + style: Bold + + bold_italic: + family: JetBrainsMonoNL Nerd Font + style: Bold Italic + +draw_bold_text_with_bright_colors: true + +cursor: + unfocused_hollow: true + style: + shape: Block + blinking: On + +key_bindings: + - { key: R, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } + - { key: PageUp, mode: ~Alt, action: ScrollPageUp } + - { key: PageDown, mode: ~Alt, action: ScrollPageDown } + # remap option to alt for mac + - { key: A, mods: Alt, chars: "\x1ba" } + - { key: B, mods: Alt, chars: "\x1bb" } + - { key: C, mods: Alt, chars: "\x1bc" } + - { key: D, mods: Alt, chars: "\x1bd" } + - { key: E, mods: Alt, chars: "\x1be" } + - { key: F, mods: Alt, chars: "\x1bf" } + - { key: G, mods: Alt, chars: "\x1bg" } + - { key: H, mods: Alt, chars: "\x1bh" } + - { key: I, mods: Alt, chars: "\x1bi" } + - { key: J, mods: Alt, chars: "\x1bj" } + - { key: K, mods: Alt, chars: "\x1bk" } + - { key: L, mods: Alt, chars: "\x1bl" } + - { key: M, mods: Alt, chars: "\x1bm" } + - { key: N, mods: Alt, chars: "\x1bn" } + - { key: O, mods: Alt, chars: "\x1bo" } + - { key: P, mods: Alt, chars: "\x1bp" } + - { key: Q, mods: Alt, chars: "\x1bq" } + - { key: R, mods: Alt, chars: "\x1br" } + - { key: S, mods: Alt, chars: "\x1bs" } + - { key: T, mods: Alt, chars: "\x1bt" } + - { key: U, mods: Alt, chars: "\x1bu" } + - { key: V, mods: Alt, chars: "\x1bv" } + - { key: W, mods: Alt, chars: "\x1bw" } + - { key: X, mods: Alt, chars: "\x1bx" } + - { key: Y, mods: Alt, chars: "\x1by" } + - { key: Z, mods: Alt, chars: "\x1bz" } + - { key: A, mods: Alt|Shift, chars: "\x1bA" } + - { key: B, mods: Alt|Shift, chars: "\x1bB" } + - { key: C, mods: Alt|Shift, chars: "\x1bC" } + - { key: D, mods: Alt|Shift, chars: "\x1bD" } + - { key: E, mods: Alt|Shift, chars: "\x1bE" } + - { key: F, mods: Alt|Shift, chars: "\x1bF" } + - { key: G, mods: Alt|Shift, chars: "\x1bG" } + - { key: H, mods: Alt|Shift, chars: "\x1bH" } + - { key: I, mods: Alt|Shift, chars: "\x1bI" } + - { key: J, mods: Alt|Shift, chars: "\x1bJ" } + - { key: K, mods: Alt|Shift, chars: "\x1bK" } + - { key: L, mods: Alt|Shift, chars: "\x1bL" } + - { key: M, mods: Alt|Shift, chars: "\x1bM" } + - { key: N, mods: Alt|Shift, chars: "\x1bN" } + - { key: O, mods: Alt|Shift, chars: "\x1bO" } + - { key: P, mods: Alt|Shift, chars: "\x1bP" } + - { key: Q, mods: Alt|Shift, chars: "\x1bQ" } + - { key: R, mods: Alt|Shift, chars: "\x1bR" } + - { key: S, mods: Alt|Shift, chars: "\x1bS" } + - { key: T, mods: Alt|Shift, chars: "\x1bT" } + - { key: U, mods: Alt|Shift, chars: "\x1bU" } + - { key: V, mods: Alt|Shift, chars: "\x1bV" } + - { key: W, mods: Alt|Shift, chars: "\x1bW" } + - { key: X, mods: Alt|Shift, chars: "\x1bX" } + - { key: Y, mods: Alt|Shift, chars: "\x1bY" } + - { key: Z, mods: Alt|Shift, chars: "\x1bZ" } + - { key: Key1, mods: Alt, chars: "\x1b1" } + - { key: Key2, mods: Alt, chars: "\x1b2" } + - { key: Key3, mods: Alt, chars: "\x1b3" } + - { key: Key4, mods: Alt, chars: "\x1b4" } + - { key: Key5, mods: Alt, chars: "\x1b5" } + - { key: Key6, mods: Alt, chars: "\x1b6" } + - { key: Key7, mods: Alt, chars: "\x1b7" } + - { key: Key8, mods: Alt, chars: "\x1b8" } + - { key: Key9, mods: Alt, chars: "\x1b9" } + - { key: Key0, mods: Alt, chars: "\x1b0" } + - { key: Space, mods: Control, chars: "\x00" } # Ctrl + Space + - { key: Grave, mods: Alt, chars: "\x1b`" } # Alt + ` + - { key: Grave, mods: Alt|Shift, chars: "\x1b~" } # Alt + ~ + - { key: Period, mods: Alt, chars: "\x1b." } # Alt + . + - { key: Key8, mods: Alt|Shift, chars: "\x1b*" } # Alt + * + - { key: Key3, mods: Alt|Shift, chars: "\x1b#" } # Alt + # + - { key: Period, mods: Alt|Shift, chars: "\x1b>" } # Alt + > + - { key: Comma, mods: Alt|Shift, chars: "\x1b<" } # Alt + < + - { key: Minus, mods: Alt|Shift, chars: "\x1b_" } # Alt + _ + - { key: Key5, mods: Alt|Shift, chars: "\x1b%" } # Alt + % + - { key: Key6, mods: Alt|Shift, chars: "\x1b^" } # Alt + ^ + - { key: Backslash, mods: Alt, chars: "\x1b\\" } # Alt + \ + - { key: Backslash, mods: Alt|Shift, chars: "\x1b|" } # Alt + | + diff --git a/git/aflabs b/git/aflabs new file mode 100644 index 0000000..2a7985e --- /dev/null +++ b/git/aflabs @@ -0,0 +1,3 @@ +[user] + name = Matej Janežič + email = matej.janezic@aflabs.si diff --git a/git/config b/git/config new file mode 100644 index 0000000..e9c8fd6 --- /dev/null +++ b/git/config @@ -0,0 +1,25 @@ +[user] + name = Matej Janežič + email = janezic.mj@gmail.com + signingkey = 4298E230ED37B2C0 +[core] + autocrlf = input + excludesfile = ~/.config/git/gitignore + editor = nvim +[includeIf "gitdir:~/Desktop/git/git.aflabs.org/"] + path = ~/.config/git/aflabs +[commit] + gpgsign = true +[gpg] + program = /opt/homebrew/bin/gpg +[init] + defaultBranch = master +[alias] + andraz = commit --amend --no-edit --author=\"Andraž Kladnik \" + petra = commit --amend --no-edit --author=\"Petra Podlogar \" + ziga = commit --amend --no-edit --author=\"Žiga Avbreht \" + laura = commit --amend --no-edit --author=\"lauraGB \" + gasper = commit --amend --no-edit --author=\"Gašper Žajdela \" + luka = commit --amend --no-edit --author=\"Luka Avbreht \" + koprivec = commit --amend --no-edit --author=\"Filip Koprivec \" + diff --git a/git/gitignore b/git/gitignore new file mode 100644 index 0000000..f775240 --- /dev/null +++ b/git/gitignore @@ -0,0 +1,20 @@ +# mac files +.DS_Store + +# i usually make test.* files for local testing +# test.* +# test + +# i don't like pushing .vscode and .idea folders, i will force add if needed +.vscode +.idea + +# pyenv +.python-version + +# i use .ignore for nvim +.ignore + +# todo files +TODO.md + diff --git a/nvim b/nvim new file mode 160000 index 0000000..47d786f --- /dev/null +++ b/nvim @@ -0,0 +1 @@ +Subproject commit 47d786ff470cd8a21154d4a80150ea1c750aa8f7 diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..8e8fd1d --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,20 @@ +set -ga terminal-overrides ",xterm-256color:Tc" +# set-option -g default-terminal "screen-256color" +set -s escape-time 0 + +unbind C-b +set-option -g prefix C-s +bind-key C-s send-prefix +set -g status-style 'bg=#333333 fg=#5eacd3' + +bind r source-file ~/.tmux.conf +set -g base-index 1 + +# vim-like pane switching +bind -r ^ last-window +bind -r k select-pane -U +bind -r j select-pane -D +bind -r h select-pane -L +bind -r l select-pane -R + +bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && nvim TODO.md || nvim ~/.dotfiles/personal/todo.md"