Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roktas committed Mar 1, 2024
0 parents commit 49c80fe
Show file tree
Hide file tree
Showing 92 changed files with 5,661 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.lua]
indent_style = tab
tab_width = 8
quote_style = double
max_line_length = 140

14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install 🥁
run: sudo apt-get -y update && sudo apt-get -y install shellcheck
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Lint Shell 🔬
run: shellcheck $(find . -name '*.sh')
- name: Lint Lua 🔬
uses: lunarmodules/luacheck@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.vagrant*/
/.local/
3 changes: 3 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
std = "luajit"
globals = { "vim" }
max_line_length = 140
81 changes: 81 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
inherit_gem:
rubocop-shopify: rubocop.yml

require:
- "rubocop-md"
- "rubocop-minitest"
- "rubocop-packaging"
- "rubocop-performance"
- "rubocop-rake"

Layout/ExtraSpacing:
Exclude:
- "**/lib/sevgi/standard/**/*.rb"
- "**/test/**/*.rb"
Layout/HashAlignment:
Enabled: true
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 140
Exclude:
- "**/test/**/*.rb"
Layout/MultilineArrayLineBreaks:
Exclude:
- "**/test/**/*.rb"
Layout/MultilineMethodArgumentLineBreaks:
Exclude:
- "**/test/**/*.rb"
Layout/MultilineOperationIndentation:
Enabled: false

Metrics/BlockLength:
Exclude:
- "**/test/**/*.rb"
- "*.gemspec"
Metrics/ClassLength:
Exclude:
- "**/test/**/*.rb"
Metrics/MethodLength:
Exclude:
- "**/test/**/*.rb"

Naming/MethodName:
Enabled: false

Minitest/UselessAssertion:
Exclude:
- "**/test/test_common.rb" # TODO: to avoid a bug

Style/AsciiComments:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- "**/test/**/*.rb"
Style/Documentation:
Enabled: false
Style/LambdaCall:
Enabled: false
Style/MethodCallWithArgsParentheses:
Exclude:
- "**/test/**/*.rb"
Style/ParallelAssignment:
Enabled: false
Style/SymbolArray:
Exclude:
- "**/lib/sevgi/standard/**/*.rb"
- "**/test/**/*.rb"
Style/SymbolLiteral:
Exclude:
- "**/lib/sevgi/standard/**/*.rb"
- "**/test/**/*.rb"
Style/TrailingCommaInArguments:
Exclude:
- "**/test/**/*.rb"

AllCops:
NewCops: enable
Exclude:
- "vendor/**/*"
- "_/**/*"
- "**/_/**/*"
3 changes: 3 additions & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
disable=SC1090
disable=SC1091
disable=SC2154
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p align="center">
<img src="terminal.png"/>
<br>
Neovim on Fish on WezTerm with Nord color theme
</p>
8 changes: 8 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Vagrant.configure("2") do |config|
config.vm.box = "roktas/debian"

config.vm.provision "shell", privileged: false, inline: <<~EOF
bash /vagrant/deinstall.sh
bash /vagrant/install.sh
EOF
end
134 changes: 134 additions & 0 deletions alacritty/alacritty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
scrolling:
history: 10000
multiplier: 3

font:
normal:
family: Spleen 32x64
style: Regular
size: 16

draw_bold_text_with_bright_colors: true

selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"

cursor:
unfocused_hollow: true

live_config_reload: true

shell:
program: /usr/bin/env
args:
- "tmux"
- "-u"

mouse:
hide_when_typing: false

mouse_bindings:
- {mouse: Middle, action: PasteSelection}

key_bindings:
- {key: F11, action: ToggleFullscreen}

- {key: Left, mods: Shift, action: ResetFontSize}
- {key: Up, mods: Shift, action: IncreaseFontSize}

- {key: Down, mods: Shift, action: DecreaseFontSize}
- {key: Left, mods: Control, action: ResetFontSize}

- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}
- {key: Up, mods: Control, action: IncreaseFontSize}

- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}
- {key: Down, mods: Control, action: DecreaseFontSize}

# Copyright (c) 2017-present Arctic Ice Studio <[email protected]>
# Copyright (c) 2017-present Sven Greb <[email protected]>

# Project: Nord Alacritty
# Version: 0.1.0
# Repository: https://github.com/arcticicestudio/nord-alacritty
# License: MIT
# References:
# https://github.com/alacritty/alacritty

colors:
primary:
background: '#2e3440'
foreground: '#d8dee9'
dim_foreground: '#a5abb6'
cursor:
text: '#2e3440'
cursor: '#d8dee9'
vi_mode_cursor:
text: '#2e3440'
cursor: '#d8dee9'
selection:
text: CellForeground
background: '#4c566a'
search:
matches:
foreground: CellBackground
background: '#88c0d0'
footer_bar:
background: '#434c5e'
foreground: '#d8dee9'
normal:
black: '#3b4252'
red: '#bf616a'
green: '#a3be8c'
yellow: '#ebcb8b'
blue: '#81a1c1'
magenta: '#b48ead'
cyan: '#88c0d0'
white: '#e5e9f0'
bright:
black: '#4c566a'
red: '#bf616a'
green: '#a3be8c'
yellow: '#ebcb8b'
blue: '#81a1c1'
magenta: '#b48ead'
cyan: '#8fbcbb'
white: '#eceff4'
dim:
black: '#373e4d'
red: '#94545d'
green: '#809575'
yellow: '#b29e75'
blue: '#68809a'
magenta: '#8c738c'
cyan: '#6d96a5'
white: '#aeb3bb'

window:
dimensions:
columns: 124
lines: 40
padding:
x: 2
y: 2
# startup_mode: Fullscreen
#gtk_theme_variant: Dark

env:
WINIT_X11_SCALE_FACTOR: '1.0'
9 changes: 9 additions & 0 deletions alacritty/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail; [[ -z ${TRACE:-} ]] || set -x; cd "$(dirname "$0")"

config=${XDG_CONFIG_HOME:-$HOME/.config}/alacritty

rm -rf "$config" && install -d "$config" && {
ln -sf "$PWD"/alacritty.yml -t "$config"
}
Loading

0 comments on commit 49c80fe

Please sign in to comment.