feat(lint): added my linting configs

This commit is contained in:
2023-09-27 14:25:53 +03:00
parent 2415dff0e2
commit 1d056988f4
35 changed files with 3479 additions and 524 deletions

3
.commitlintrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["@ivuorinen/commitlint-config"]
}

3
.eslintrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["@ivuorinen"]
}

2
.gitattributes vendored
View File

@@ -13,7 +13,7 @@
## Handle line endings automatically for files detected as ## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched. ## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below. ## This will handle all files NOT defined below.
* text=auto * text=auto oel=lf
# Source code # Source code
*.bash text eol=lf *.bash text eol=lf

View File

@@ -1,7 +1,7 @@
version: 2 version: 2
updates: updates:
# Maintain dependencies for GitHub Actions # Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions" - package-ecosystem: 'github-actions'
directory: "/" directory: '/'
schedule: schedule:
interval: "weekly" interval: 'weekly'

View File

@@ -1,6 +1,4 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["local>ivuorinen/.github:renovate-config"]
"local>ivuorinen/.github:renovate-config"
]
} }

View File

@@ -16,11 +16,11 @@ module.exports = {
excludeTypes: [], excludeTypes: [],
renderTypeSection: function (label, commits) { renderTypeSection: function (label, commits) {
let text = `\n## ${ label }\n\n` let text = `\n## ${label}\n\n`
commits.forEach((commit) => { commits.forEach(commit => {
const scope = commit.scope ? `**${ commit.scope }:** ` : '' const scope = commit.scope ? `**${commit.scope}:** ` : ''
text += `- ${ scope }${ commit.subject }\n` text += `- ${scope}${commit.subject}\n`
}) })
return text return text
@@ -28,8 +28,8 @@ module.exports = {
renderChangelog: function (release, changes) { renderChangelog: function (release, changes) {
const now = new Date() const now = new Date()
const d = now.toISOString().substring(0, 10); const d = now.toISOString().substring(0, 10)
const header = `# ${ release } - ${ d }\n`; const header = `# ${release} - ${d}\n`
return header + changes + '\n\n' return header + changes + '\n\n'
}, },
} }

View File

@@ -12,7 +12,7 @@ jobs:
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/tag-changelog-config.js config_file: .github/tag-changelog-config.js
- name: "Echo results" - name: 'Echo results'
id: output-changelog id: output-changelog
run: | run: |
echo "${{ steps.changelog.outputs.changes }}" echo "${{ steps.changelog.outputs.changes }}"

View File

@@ -2,7 +2,7 @@ name: Release Daily State # Workflow name displayed on GitHub
on: on:
workflow_dispatch: # Trigger manually workflow_dispatch: # Trigger manually
schedule: schedule:
- cron: "30 20 * * *" # UTC is 2-3 hours behind Europe/Helsinki, my timezone - cron: '30 20 * * *' # UTC is 2-3 hours behind Europe/Helsinki, my timezone
permissions: permissions:
contents: write contents: write
jobs: jobs:

View File

@@ -1,6 +1,6 @@
name: Update submodules name: Update submodules
on: on:
schedule: [{cron: 0 3 * * *}] schedule: [{ cron: 0 3 * * * }]
workflow_dispatch: workflow_dispatch:
permissions: permissions:
contents: write contents: write

1
.gitignore vendored
View File

@@ -14,4 +14,5 @@ ssh/local.d/*
!.gitkeep !.gitkeep
.env .env
local/share/fonts/NerdFonts local/share/fonts/NerdFonts
node_modules

View File

@@ -3,4 +3,4 @@ config/cheat/cheatsheets/community/**
tools/dotbot/** tools/dotbot/**
tools/dotbot-brew/** tools/dotbot-brew/**
tools/dotbot-include/** tools/dotbot-include/**
node_modules

View File

@@ -1,5 +1,5 @@
{ {
"extends": "markdownlint/style/prettier", "extends": "@ivuorinen/markdownlint-config",
"code-block-style": { "code-block-style": {
"style": "fenced" "style": "fenced"
}, },

6
.markdownlintignore Normal file
View File

@@ -0,0 +1,6 @@
# only care about files that are under our control
config/cheat/cheatsheets/community/*
config/tmux/plugins/*
tools/*
node_modules/*

8
.prettierignore Normal file
View File

@@ -0,0 +1,8 @@
.mypy_cache/*
tools/dotbot*
local/bin/antigen.zsh
config/cheat/cheatsheets/community
config/tmux/plugins/*
lazy-lock.json
Brewfile.lock.json

14
.prettierrc.js Normal file
View File

@@ -0,0 +1,14 @@
module.exports = {
...require('@ivuorinen/prettier-config'),
trailingComma: 'all',
// Add custom options below:
overrides: [
{
files: '*.md',
options: {
printWidth: 120,
proseWrap: 'preserve',
},
},
],
}

View File

@@ -1,21 +0,0 @@
formatter:
type: basic
indent: 2
retain_line_breaks: false
disallow_anchors: false
max_line_length: 0
scan_folded_as_literal: false
indentless_arrays: false
doublestar: true
extensions:
- yaml
- yml
include:
- ./*.{yml,yaml}
- ./**/*.{yml,yaml}
exclude:
- ./tools/**

View File

@@ -1,2 +0,0 @@
# .yamlignore

View File

@@ -78,82 +78,82 @@ debug.render_timer: false
# https://github.com/catppuccin/alacritty # https://github.com/catppuccin/alacritty
colors: colors:
primary: primary:
background: "#1E1E2E" # base background: '#1E1E2E' # base
foreground: "#CDD6F4" # text foreground: '#CDD6F4' # text
# Bright and dim foreground colors # Bright and dim foreground colors
dim_foreground: "#CDD6F4" # text dim_foreground: '#CDD6F4' # text
bright_foreground: "#CDD6F4" # text bright_foreground: '#CDD6F4' # text
# Cursor colors # Cursor colors
cursor: cursor:
text: "#1E1E2E" # base text: '#1E1E2E' # base
cursor: "#F5E0DC" # rosewater cursor: '#F5E0DC' # rosewater
vi_mode_cursor: vi_mode_cursor:
text: "#1E1E2E" # base text: '#1E1E2E' # base
cursor: "#B4BEFE" # lavender cursor: '#B4BEFE' # lavender
# Search colors # Search colors
search: search:
matches: matches:
foreground: "#1E1E2E" # base foreground: '#1E1E2E' # base
background: "#A6ADC8" # subtext0 background: '#A6ADC8' # subtext0
focused_match: focused_match:
foreground: "#1E1E2E" # base foreground: '#1E1E2E' # base
background: "#A6E3A1" # green background: '#A6E3A1' # green
footer_bar: footer_bar:
foreground: "#1E1E2E" # base foreground: '#1E1E2E' # base
background: "#A6ADC8" # subtext0 background: '#A6ADC8' # subtext0
# Keyboard regex hints # Keyboard regex hints
hints: hints:
start: start:
foreground: "#1E1E2E" # base foreground: '#1E1E2E' # base
background: "#F9E2AF" # yellow background: '#F9E2AF' # yellow
end: end:
foreground: "#1E1E2E" # base foreground: '#1E1E2E' # base
background: "#A6ADC8" # subtext0 background: '#A6ADC8' # subtext0
# Selection colors # Selection colors
selection: selection:
text: "#1E1E2E" # base text: '#1E1E2E' # base
background: "#F5E0DC" # rosewater background: '#F5E0DC' # rosewater
# Normal colors # Normal colors
normal: normal:
black: "#45475A" # surface1 black: '#45475A' # surface1
red: "#F38BA8" # red red: '#F38BA8' # red
green: "#A6E3A1" # green green: '#A6E3A1' # green
yellow: "#F9E2AF" # yellow yellow: '#F9E2AF' # yellow
blue: "#89B4FA" # blue blue: '#89B4FA' # blue
magenta: "#F5C2E7" # pink magenta: '#F5C2E7' # pink
cyan: "#94E2D5" # teal cyan: '#94E2D5' # teal
white: "#BAC2DE" # subtext1 white: '#BAC2DE' # subtext1
# Bright colors # Bright colors
bright: bright:
black: "#585B70" # surface2 black: '#585B70' # surface2
red: "#F38BA8" # red red: '#F38BA8' # red
green: "#A6E3A1" # green green: '#A6E3A1' # green
yellow: "#F9E2AF" # yellow yellow: '#F9E2AF' # yellow
blue: "#89B4FA" # blue blue: '#89B4FA' # blue
magenta: "#F5C2E7" # pink magenta: '#F5C2E7' # pink
cyan: "#94E2D5" # teal cyan: '#94E2D5' # teal
white: "#A6ADC8" # subtext0 white: '#A6ADC8' # subtext0
# Dim colors # Dim colors
dim: dim:
black: "#45475A" # surface1 black: '#45475A' # surface1
red: "#F38BA8" # red red: '#F38BA8' # red
green: "#A6E3A1" # green green: '#A6E3A1' # green
yellow: "#F9E2AF" # yellow yellow: '#F9E2AF' # yellow
blue: "#89B4FA" # blue blue: '#89B4FA' # blue
magenta: "#F5C2E7" # pink magenta: '#F5C2E7' # pink
cyan: "#94E2D5" # teal cyan: '#94E2D5' # teal
white: "#BAC2DE" # subtext1 white: '#BAC2DE' # subtext1
indexed_colors: indexed_colors:
- { index: 16, color: "#FAB387" } - { index: 16, color: '#FAB387' }
- { index: 17, color: "#F5E0DC" } - { index: 17, color: '#F5E0DC' }
# Visual Bell # Visual Bell
# #
@@ -262,7 +262,7 @@ key_bindings:
- { key: F10, chars: "\e[21~" } - { key: F10, chars: "\e[21~" }
- { key: F11, chars: "\e[23~" } - { key: F11, chars: "\e[23~" }
- { key: F12, chars: "\e[24~" } - { key: F12, chars: "\e[24~" }
- { key: Back, chars: "" } - { key: Back, chars: '' }
- { key: Back, mods: Alt, chars: "\e" } - { key: Back, mods: Alt, chars: "\e" }
- { key: Insert, chars: "\e[2~" } - { key: Insert, chars: "\e[2~" }
- { key: Delete, chars: "\e[3~" } - { key: Delete, chars: "\e[3~" }

View File

@@ -6,7 +6,7 @@ colorize: true
# Which 'chroma' colorscheme should be applied to the output? # Which 'chroma' colorscheme should be applied to the output?
# Options are available here: # Options are available here:
# https://github.com/alecthomas/chroma/tree/master/styles # https://github.com/alecthomas/chroma/tree/master/styles
style: "catppuccin" style: 'catppuccin'
# Which 'chroma' "formatter" should be applied? # Which 'chroma' "formatter" should be applied?
# One of: "terminal", "terminal256", "terminal16m" # One of: "terminal", "terminal256", "terminal16m"
formatter: terminal256 formatter: terminal256
@@ -74,7 +74,6 @@ cheatpaths:
path: ~/.dotfiles/config/cheat/cheatsheets/tldr path: ~/.dotfiles/config/cheat/cheatsheets/tldr
tags: [tldr] tags: [tldr]
readonly: true readonly: true
# While it requires no configuration here, it's also worth noting that # While it requires no configuration here, it's also worth noting that
# cheat will automatically append directories named '.cheat' within the # cheat will automatically append directories named '.cheat' within the
# current working directory to the 'cheatpath'. This can be very useful if # current working directory to the 'cheatpath'. This can be very useful if

View File

@@ -1,19 +1,19 @@
check_for_updates: true check_for_updates: true
excluded_labels: excluded_labels:
- maintenance - maintenance
- dependencies - dependencies
file_name: CHANGELOG.md file_name: CHANGELOG.md
logger: spinner logger: spinner
no_color: false no_color: false
sections: sections:
added: added:
- feature - feature
- enhancement - enhancement
changed: changed:
- backwards-incompatible - backwards-incompatible
fixed: fixed:
- bug - bug
- bugfix - bugfix
- documentation - documentation
show_unreleased: true show_unreleased: true
skip_entries_without_label: false skip_entries_without_label: false

View File

@@ -1,17 +1,17 @@
prSections: prSections:
- title: My Pull Requests - title: My Pull Requests
filters: is:open author:@me filters: is:open author:@me
- title: Needs My Review - title: Needs My Review
filters: is:open review-requested:@me filters: is:open review-requested:@me
- title: Involved - title: Involved
filters: is:open involves:@me -author:@me filters: is:open involves:@me -author:@me
issuesSections: issuesSections:
- title: My Issues - title: My Issues
filters: is:open author:@me filters: is:open author:@me
- title: Assigned - title: Assigned
filters: is:open assignee:@me filters: is:open assignee:@me
- title: Involved - title: Involved
filters: is:open involves:@me -author:@me filters: is:open involves:@me -author:@me
defaults: defaults:
preview: preview:
open: true open: true
@@ -51,4 +51,4 @@ keybindings:
prs: [] prs: []
repoPaths: {} repoPaths: {}
pager: pager:
diff: "" diff: ''

View File

@@ -1,3 +1,3 @@
github.com: github.com:
user: ivuorinen user: ivuorinen
git_protocol: https git_protocol: https

View File

@@ -1,417 +1,410 @@
{ {
"Badge Text" : "", "Badge Text": "",
"Working Directory" : "\/Users\/ivuorinen\/Code", "Working Directory": "/Users/ivuorinen/Code",
"Prompt Before Closing 2" : false, "Prompt Before Closing 2": false,
"Selected Text Color" : { "Selected Text Color": {
"Red Component" : 0.80392156862745101, "Red Component": 0.80392156862745101,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.95686274509803926, "Blue Component": 0.95686274509803926,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.83921568627450982 "Green Component": 0.83921568627450982
}, },
"Rows" : 25, "Rows": 25,
"Ansi 11 Color" : { "Ansi 11 Color": {
"Red Component" : 0.97647058823529409, "Red Component": 0.97647058823529409,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.68627450980392157, "Blue Component": 0.68627450980392157,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.88627450980392153 "Green Component": 0.88627450980392153
}, },
"Use Italic Font" : true, "Use Italic Font": true,
"Foreground Color" : { "Foreground Color": {
"Red Component" : 0.80392156862745101, "Red Component": 0.80392156862745101,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.95686274509803926, "Blue Component": 0.95686274509803926,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.83921568627450982 "Green Component": 0.83921568627450982
}, },
"Right Option Key Sends" : 0, "Right Option Key Sends": 0,
"Character Encoding" : 4, "Character Encoding": 4,
"Selection Color" : { "Selection Color": {
"Red Component" : 0.34509803921568627, "Red Component": 0.34509803921568627,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.4392156862745098, "Blue Component": 0.4392156862745098,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.35686274509803922 "Green Component": 0.35686274509803922
}, },
"Blend" : 0.24709154211956524, "Blend": 0.24709154211956524,
"Mouse Reporting" : true, "Mouse Reporting": true,
"Cursor Boost" : 0, "Cursor Boost": 0,
"Ansi 4 Color" : { "Ansi 4 Color": {
"Red Component" : 0.53725490196078429, "Red Component": 0.53725490196078429,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.98039215686274506, "Blue Component": 0.98039215686274506,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.70588235294117652 "Green Component": 0.70588235294117652
}, },
"Non-ASCII Anti Aliased" : true, "Non-ASCII Anti Aliased": true,
"Sync Title" : false, "Sync Title": false,
"Badge Font" : "JetBrainsMonoNerdFontCompleteM-Bold", "Badge Font": "JetBrainsMonoNerdFontCompleteM-Bold",
"Disable Window Resizing" : true, "Disable Window Resizing": true,
"Description" : "Default", "Description": "Default",
"Close Sessions On End" : true, "Close Sessions On End": true,
"Jobs to Ignore" : [ "Jobs to Ignore": ["rlogin", "ssh", "slogin", "telnet"],
"rlogin", "Scrollback Lines": 0,
"ssh", "Draw Powerline Glyphs": true,
"slogin", "Flashing Bell": true,
"telnet" "Cursor Guide Color": {
], "Red Component": 0.80392156862745101,
"Scrollback Lines" : 0, "Color Space": "sRGB",
"Draw Powerline Glyphs" : true, "Blue Component": 0.95686274509803926,
"Flashing Bell" : true, "Alpha Component": 0.070000000000000007,
"Cursor Guide Color" : { "Green Component": 0.83921568627450982
"Red Component" : 0.80392156862745101,
"Color Space" : "sRGB",
"Blue Component" : 0.95686274509803926,
"Alpha Component" : 0.070000000000000007,
"Green Component" : 0.83921568627450982
}, },
"BM Growl" : true, "BM Growl": true,
"Ansi 3 Color" : { "Ansi 3 Color": {
"Red Component" : 0.97647058823529409, "Red Component": 0.97647058823529409,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.68627450980392157, "Blue Component": 0.68627450980392157,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.88627450980392153 "Green Component": 0.88627450980392153
}, },
"Icon" : 1, "Icon": 1,
"Use Non-ASCII Font" : false, "Use Non-ASCII Font": false,
"Link Color" : { "Link Color": {
"Red Component" : 0.53725490196078429, "Red Component": 0.53725490196078429,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.92156862745098034, "Blue Component": 0.92156862745098034,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.86274509803921573 "Green Component": 0.86274509803921573
}, },
"Shortcut" : "", "Shortcut": "",
"Background Image Location" : "", "Background Image Location": "",
"Bold Color" : { "Bold Color": {
"Red Component" : 0.80392156862745101, "Red Component": 0.80392156862745101,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.95686274509803926, "Blue Component": 0.95686274509803926,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.83921568627450982 "Green Component": 0.83921568627450982
}, },
"Use Cursor Guide" : false, "Use Cursor Guide": false,
"Unlimited Scrollback" : true, "Unlimited Scrollback": true,
"Custom Command" : "No", "Custom Command": "No",
"Title Components" : 512, "Title Components": 512,
"Keyboard Map" : { "Keyboard Map": {
"0xf700-0x260000" : { "0xf700-0x260000": {
"Action" : 10, "Action": 10,
"Text" : "[1;6A" "Text": "[1;6A"
}, },
"0x37-0x40000" : { "0x37-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x1f" "Text": "0x1f"
}, },
"0x32-0x40000" : { "0x32-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x00" "Text": "0x00"
}, },
"0xf709-0x20000" : { "0xf709-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[17;2~" "Text": "[17;2~"
}, },
"0xf70c-0x20000" : { "0xf70c-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[20;2~" "Text": "[20;2~"
}, },
"0xf729-0x20000" : { "0xf729-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2H" "Text": "[1;2H"
}, },
"0xf72b-0x40000" : { "0xf72b-0x40000": {
"Action" : 10, "Action": 10,
"Text" : "[1;5F" "Text": "[1;5F"
}, },
"0xf705-0x20000" : { "0xf705-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2Q" "Text": "[1;2Q"
}, },
"0xf703-0x260000" : { "0xf703-0x260000": {
"Action" : 10, "Action": 10,
"Text" : "[1;6C" "Text": "[1;6C"
}, },
"0xf700-0x220000" : { "0xf700-0x220000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2A" "Text": "[1;2A"
}, },
"0xf701-0x280000" : { "0xf701-0x280000": {
"Action" : 11, "Action": 11,
"Text" : "0x1b 0x1b 0x5b 0x42" "Text": "0x1b 0x1b 0x5b 0x42"
}, },
"0x38-0x40000" : { "0x38-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x7f" "Text": "0x7f"
}, },
"0x33-0x40000" : { "0x33-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x1b" "Text": "0x1b"
}, },
"0xf703-0x220000" : { "0xf703-0x220000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2C" "Text": "[1;2C"
}, },
"0xf701-0x240000" : { "0xf701-0x240000": {
"Action" : 10, "Action": 10,
"Text" : "[1;5B" "Text": "[1;5B"
}, },
"0xf70d-0x20000" : { "0xf70d-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[21;2~" "Text": "[21;2~"
}, },
"0xf702-0x260000" : { "0xf702-0x260000": {
"Action" : 10, "Action": 10,
"Text" : "[1;6D" "Text": "[1;6D"
}, },
"0xf729-0x40000" : { "0xf729-0x40000": {
"Action" : 10, "Action": 10,
"Text" : "[1;5H" "Text": "[1;5H"
}, },
"0xf706-0x20000" : { "0xf706-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2R" "Text": "[1;2R"
}, },
"0x34-0x40000" : { "0x34-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x1c" "Text": "0x1c"
}, },
"0xf700-0x280000" : { "0xf700-0x280000": {
"Action" : 11, "Action": 11,
"Text" : "0x1b 0x1b 0x5b 0x41" "Text": "0x1b 0x1b 0x5b 0x41"
}, },
"0x2d-0x40000" : { "0x2d-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x1f" "Text": "0x1f"
}, },
"0xf70e-0x20000" : { "0xf70e-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[23;2~" "Text": "[23;2~"
}, },
"0xf702-0x220000" : { "0xf702-0x220000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2D" "Text": "[1;2D"
}, },
"0xf703-0x280000" : { "0xf703-0x280000": {
"Action" : 11, "Action": 11,
"Text" : "0x1b 0x1b 0x5b 0x43" "Text": "0x1b 0x1b 0x5b 0x43"
}, },
"0xf700-0x240000" : { "0xf700-0x240000": {
"Action" : 10, "Action": 10,
"Text" : "[1;5A" "Text": "[1;5A"
}, },
"0xf707-0x20000" : { "0xf707-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2S" "Text": "[1;2S"
}, },
"0xf70a-0x20000" : { "0xf70a-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[18;2~" "Text": "[18;2~"
}, },
"0x35-0x40000" : { "0x35-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x1d" "Text": "0x1d"
}, },
"0xf70f-0x20000" : { "0xf70f-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[24;2~" "Text": "[24;2~"
}, },
"0xf703-0x240000" : { "0xf703-0x240000": {
"Action" : 10, "Action": 10,
"Text" : "[1;5C" "Text": "[1;5C"
}, },
"0xf701-0x260000" : { "0xf701-0x260000": {
"Action" : 10, "Action": 10,
"Text" : "[1;6B" "Text": "[1;6B"
}, },
"0xf702-0x280000" : { "0xf702-0x280000": {
"Action" : 11, "Action": 11,
"Text" : "0x1b 0x1b 0x5b 0x44" "Text": "0x1b 0x1b 0x5b 0x44"
}, },
"0xf72b-0x20000" : { "0xf72b-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2F" "Text": "[1;2F"
}, },
"0x36-0x40000" : { "0x36-0x40000": {
"Action" : 11, "Action": 11,
"Text" : "0x1e" "Text": "0x1e"
}, },
"0xf708-0x20000" : { "0xf708-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[15;2~" "Text": "[15;2~"
}, },
"0xf701-0x220000" : { "0xf701-0x220000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2B" "Text": "[1;2B"
}, },
"0xf70b-0x20000" : { "0xf70b-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[19;2~" "Text": "[19;2~"
}, },
"0xf702-0x240000" : { "0xf702-0x240000": {
"Action" : 10, "Action": 10,
"Text" : "[1;5D" "Text": "[1;5D"
}, },
"0xf704-0x20000" : { "0xf704-0x20000": {
"Action" : 10, "Action": 10,
"Text" : "[1;2P" "Text": "[1;2P"
} }
}, },
"Ansi 14 Color" : { "Ansi 14 Color": {
"Red Component" : 0.58039215686274515, "Red Component": 0.58039215686274515,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.83529411764705885, "Blue Component": 0.83529411764705885,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.88627450980392153 "Green Component": 0.88627450980392153
}, },
"Ansi 2 Color" : { "Ansi 2 Color": {
"Red Component" : 0.65098039215686276, "Red Component": 0.65098039215686276,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.63137254901960782, "Blue Component": 0.63137254901960782,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.8901960784313725 "Green Component": 0.8901960784313725
}, },
"Send Code When Idle" : false, "Send Code When Idle": false,
"ASCII Anti Aliased" : true, "ASCII Anti Aliased": true,
"Tags" : [ "Tags": [],
"Ansi 9 Color": {
], "Red Component": 0.95294117647058818,
"Ansi 9 Color" : { "Color Space": "sRGB",
"Red Component" : 0.95294117647058818, "Blue Component": 0.6588235294117647,
"Color Space" : "sRGB", "Alpha Component": 1,
"Blue Component" : 0.6588235294117647, "Green Component": 0.54509803921568623
"Alpha Component" : 1,
"Green Component" : 0.54509803921568623
}, },
"Badge Right Margin" : 10, "Badge Right Margin": 10,
"Use Bold Font" : true, "Use Bold Font": true,
"Silence Bell" : false, "Silence Bell": false,
"Ansi 12 Color" : { "Ansi 12 Color": {
"Red Component" : 0.53725490196078429, "Red Component": 0.53725490196078429,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.98039215686274506, "Blue Component": 0.98039215686274506,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.70588235294117652 "Green Component": 0.70588235294117652
}, },
"Window Type" : 0, "Window Type": 0,
"Use Bright Bold" : true, "Use Bright Bold": true,
"Cursor Text Color" : { "Cursor Text Color": {
"Red Component" : 0.80392156862745101, "Red Component": 0.80392156862745101,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.95686274509803926, "Blue Component": 0.95686274509803926,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.83921568627450982 "Green Component": 0.83921568627450982
}, },
"Default Bookmark" : "No", "Default Bookmark": "No",
"Cursor Color" : { "Cursor Color": {
"Red Component" : 0.96078431372549022, "Red Component": 0.96078431372549022,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.86274509803921573, "Blue Component": 0.86274509803921573,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.8784313725490196 "Green Component": 0.8784313725490196
}, },
"Ansi 1 Color" : { "Ansi 1 Color": {
"Red Component" : 0.95294117647058818, "Red Component": 0.95294117647058818,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.6588235294117647, "Blue Component": 0.6588235294117647,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.54509803921568623 "Green Component": 0.54509803921568623
}, },
"Name" : "Default", "Name": "Default",
"Blinking Cursor" : false, "Blinking Cursor": false,
"Guid" : "82636119-EA17-4A26-9AA7-408172F4A9C8", "Guid": "82636119-EA17-4A26-9AA7-408172F4A9C8",
"Badge Max Width" : 0.45000000000000001, "Badge Max Width": 0.45000000000000001,
"Idle Code" : 0, "Idle Code": 0,
"Ansi 10 Color" : { "Ansi 10 Color": {
"Red Component" : 0.65098039215686276, "Red Component": 0.65098039215686276,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.63137254901960782, "Blue Component": 0.63137254901960782,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.8901960784313725 "Green Component": 0.8901960784313725
}, },
"Ansi 8 Color" : { "Ansi 8 Color": {
"Red Component" : 0.34509803921568627, "Red Component": 0.34509803921568627,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.4392156862745098, "Blue Component": 0.4392156862745098,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.35686274509803922 "Green Component": 0.35686274509803922
}, },
"Badge Color" : { "Badge Color": {
"Red Component" : 1, "Red Component": 1,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0, "Blue Component": 0,
"Alpha Component" : 0.5, "Alpha Component": 0.5,
"Green Component" : 0.14910030364990234 "Green Component": 0.14910030364990234
}, },
"Smart Cursor Color" : true, "Smart Cursor Color": true,
"Ambiguous Double Width" : false, "Ambiguous Double Width": false,
"Blur Radius" : 9.5927277260638313, "Blur Radius": 9.5927277260638313,
"Badge Max Height" : 0.10000000000000001, "Badge Max Height": 0.10000000000000001,
"Ansi 0 Color" : { "Ansi 0 Color": {
"Red Component" : 0.27058823529411763, "Red Component": 0.27058823529411763,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.35294117647058826, "Blue Component": 0.35294117647058826,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.27843137254901962 "Green Component": 0.27843137254901962
}, },
"Blur" : true, "Blur": true,
"Normal Font" : "JetBrainsMonoNerdFontCompleteM-Light 15", "Normal Font": "JetBrainsMonoNerdFontCompleteM-Light 15",
"Vertical Spacing" : 1, "Vertical Spacing": 1,
"Ansi 7 Color" : { "Ansi 7 Color": {
"Red Component" : 0.72941176470588232, "Red Component": 0.72941176470588232,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.87058823529411766, "Blue Component": 0.87058823529411766,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.76078431372549016 "Green Component": 0.76078431372549016
}, },
"Command" : "", "Command": "",
"Terminal Type" : "xterm-256color", "Terminal Type": "xterm-256color",
"Horizontal Spacing" : 1, "Horizontal Spacing": 1,
"Option Key Sends" : 0, "Option Key Sends": 0,
"Only The Default BG Color Uses Transparency" : true, "Only The Default BG Color Uses Transparency": true,
"Minimum Contrast" : 0.14973958333333334, "Minimum Contrast": 0.14973958333333334,
"Ansi 15 Color" : { "Ansi 15 Color": {
"Red Component" : 0.65098039215686276, "Red Component": 0.65098039215686276,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.78431372549019607, "Blue Component": 0.78431372549019607,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.67843137254901964 "Green Component": 0.67843137254901964
}, },
"Ansi 6 Color" : { "Ansi 6 Color": {
"Red Component" : 0.58039215686274515, "Red Component": 0.58039215686274515,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.83529411764705885, "Blue Component": 0.83529411764705885,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.88627450980392153 "Green Component": 0.88627450980392153
}, },
"Badge Top Margin" : 10, "Badge Top Margin": 10,
"Transparency" : 0.10293218085106381, "Transparency": 0.10293218085106381,
"Background Color" : { "Background Color": {
"Red Component" : 0.11764705882352941, "Red Component": 0.11764705882352941,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.1803921568627451, "Blue Component": 0.1803921568627451,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.11764705882352941 "Green Component": 0.11764705882352941
}, },
"Screen" : -2, "Screen": -2,
"Non Ascii Font" : "Monaco 12", "Non Ascii Font": "Monaco 12",
"Ansi 13 Color" : { "Ansi 13 Color": {
"Red Component" : 0.96078431372549022, "Red Component": 0.96078431372549022,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.90588235294117647, "Blue Component": 0.90588235294117647,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.76078431372549016 "Green Component": 0.76078431372549016
}, },
"Columns" : 120, "Columns": 120,
"Visual Bell" : true, "Visual Bell": true,
"ASCII Ligatures" : false, "ASCII Ligatures": false,
"Ansi 5 Color" : { "Ansi 5 Color": {
"Red Component" : 0.96078431372549022, "Red Component": 0.96078431372549022,
"Color Space" : "sRGB", "Color Space": "sRGB",
"Blue Component" : 0.90588235294117647, "Blue Component": 0.90588235294117647,
"Alpha Component" : 1, "Alpha Component": 1,
"Green Component" : 0.76078431372549016 "Green Component": 0.76078431372549016
}, },
"Custom Directory" : "Yes" "Custom Directory": "Yes"
} }

View File

@@ -20,62 +20,62 @@ wtf:
# that support ten line of text and one of four. # that support ten line of text and one of four.
rows: [10, 10, 10, 20, 10, 4] rows: [10, 10, 10, 20, 10, 4]
refreshInterval: 1 refreshInterval: 1
openFileUtil: "open" openFileUtil: 'open'
mods: mods:
# You can have multiple widgets of the same type. # You can have multiple widgets of the same type.
# The "key" is the name of the widget and the type is the actual # The "key" is the name of the widget and the type is the actual
# widget you want to implement. # widget you want to implement.
europe_time: europe_time:
title: "Europe" title: 'Europe'
type: clocks type: clocks
colors: colors:
rows: rows:
even: "lightblue" even: 'lightblue'
odd: "white" odd: 'white'
enabled: true enabled: true
locations: locations:
GMT: "Etc/GMT" GMT: 'Etc/GMT'
Amsterdam: "Europe/Amsterdam" Amsterdam: 'Europe/Amsterdam'
Berlin: "Europe/Berlin" Berlin: 'Europe/Berlin'
Barcelona: "Europe/Madrid" Barcelona: 'Europe/Madrid'
Copenhagen: "Europe/Copenhagen" Copenhagen: 'Europe/Copenhagen'
London: "Europe/London" London: 'Europe/London'
Rome: "Europe/Rome" Rome: 'Europe/Rome'
Stockholm: "Europe/Stockholm" Stockholm: 'Europe/Stockholm'
position: position:
top: 0 top: 0
left: 0 left: 0
height: 1 height: 1
width: 1 width: 1
refreshInterval: 15 refreshInterval: 15
sort: "alphabetical" sort: 'alphabetical'
americas_time: americas_time:
title: "Americas" title: 'Americas'
type: clocks type: clocks
colors: colors:
rows: rows:
even: "lightblue" even: 'lightblue'
odd: "white" odd: 'white'
enabled: true enabled: true
locations: locations:
UTC: "Etc/UTC" UTC: 'Etc/UTC'
Vancouver: "America/Vancouver" Vancouver: 'America/Vancouver'
New_York: "America/New_York" New_York: 'America/New_York'
Sao_Paulo: "America/Sao_Paulo" Sao_Paulo: 'America/Sao_Paulo'
Denver: "America/Denver" Denver: 'America/Denver'
Iqaluit: "America/Iqaluit" Iqaluit: 'America/Iqaluit'
Bahamas: "America/Nassau" Bahamas: 'America/Nassau'
Chicago: "America/Chicago" Chicago: 'America/Chicago'
position: position:
top: 0 top: 0
left: 1 left: 1
height: 1 height: 1
width: 1 width: 1
refreshInterval: 15 refreshInterval: 15
sort: "alphabetical" sort: 'alphabetical'
battery: battery:
type: power type: power
title: "⚡️" title: '⚡️'
enabled: true enabled: true
position: position:
top: 1 top: 1
@@ -85,14 +85,14 @@ wtf:
refreshInterval: 15 refreshInterval: 15
todolist: todolist:
type: todo type: todo
checkedIcon: "X" checkedIcon: 'X'
colors: colors:
checked: gray checked: gray
highlight: highlight:
fore: "black" fore: 'black'
back: "orange" back: 'orange'
enabled: true enabled: true
filename: "todo.yml" filename: 'todo.yml'
position: position:
top: 1 top: 1
left: 0 left: 0
@@ -101,10 +101,10 @@ wtf:
refreshInterval: 3600 refreshInterval: 3600
ip: ip:
type: ipinfo type: ipinfo
title: "My IP" title: 'My IP'
colors: colors:
name: "lightblue" name: 'lightblue'
value: "white" value: 'white'
enabled: true enabled: true
position: position:
top: 0 top: 0
@@ -114,7 +114,7 @@ wtf:
refreshInterval: 150 refreshInterval: 150
security_info: security_info:
type: security type: security
title: "Staying safe" title: 'Staying safe'
enabled: true enabled: true
position: position:
top: 1 top: 1
@@ -126,9 +126,9 @@ wtf:
type: textfile type: textfile
enabled: true enabled: true
filePaths: filePaths:
- "~/.config/wtf/config.yml" - '~/.config/wtf/config.yml'
format: true format: true
formatStyle: "monokai" formatStyle: 'monokai'
position: position:
top: 3 top: 3
left: 0 left: 0
@@ -137,7 +137,7 @@ wtf:
refreshInterval: 15 refreshInterval: 15
news: news:
type: hackernews type: hackernews
title: "HackerNews" title: 'HackerNews'
enabled: true enabled: true
numberOfStories: 10 numberOfStories: 10
position: position:
@@ -159,7 +159,7 @@ wtf:
uptime: uptime:
type: cmdrunner type: cmdrunner
args: [] args: []
cmd: "uptime" cmd: 'uptime'
enabled: true enabled: true
position: position:
top: 5 top: 5
@@ -169,8 +169,8 @@ wtf:
refreshInterval: 30 refreshInterval: 30
disks: disks:
type: cmdrunner type: cmdrunner
cmd: "df" cmd: 'df'
args: ["-h"] args: ['-h']
enabled: true enabled: true
position: position:
top: 4 top: 4

View File

@@ -1,6 +1,6 @@
# nvim keybindings # nvim keybindings
```md ```
n ! * <Cmd>lua require("which-key").show("!", {mode = "n", auto = true})<CR> n ! * <Cmd>lua require("which-key").show("!", {mode = "n", auto = true})<CR>
n ' * <Cmd>lua require("which-key").show("'", {mode = "n", auto = true})<CR> n ' * <Cmd>lua require("which-key").show("'", {mode = "n", auto = true})<CR>
n " * <Cmd>lua require("which-key").show("\"", {mode = "n", auto = true})<CR> n " * <Cmd>lua require("which-key").show("\"", {mode = "n", auto = true})<CR>

View File

@@ -1,9 +1,7 @@
# tmux keybindings # tmux keybindings
Leader: `<ctrl><space>` Leader: `<ctrl><space>`
``` ```
bind-key -T copy-mode C-Space send-keys -X begin-selection bind-key -T copy-mode C-Space send-keys -X begin-selection
bind-key -T copy-mode C-a send-keys -X start-of-line bind-key -T copy-mode C-a send-keys -X start-of-line
@@ -298,4 +296,3 @@ bind-key -T root M-Right select-pane -R
bind-key -T root C-Tab previous-window bind-key -T root C-Tab previous-window
bind-key -T root C-S-Tab next-window bind-key -T root C-S-Tab next-window
``` ```

View File

@@ -1,4 +1,4 @@
- include: "tools/dotbot-defaults.yaml" - include: 'tools/dotbot-defaults.yaml'
- shell: - shell:
- echo "Configuring air" - echo "Configuring air"
- brewfile: - brewfile:
@@ -8,7 +8,7 @@
force: true force: true
glob: true glob: true
path: hosts/air/base/** path: hosts/air/base/**
prefix: "." prefix: '.'
~/.config/: ~/.config/:
glob: true glob: true
force: true force: true

View File

@@ -1,4 +1,4 @@
- include: "tools/dotbot-defaults.yaml" - include: 'tools/dotbot-defaults.yaml'
- shell: - shell:
- echo "Configuring lakka" - echo "Configuring lakka"
- link: - link:
@@ -6,7 +6,7 @@
force: true force: true
glob: true glob: true
path: hosts/lakka/base/** path: hosts/lakka/base/**
prefix: "." prefix: '.'
~/.config/: ~/.config/:
glob: true glob: true
force: true force: true

View File

@@ -1,4 +1,4 @@
- include: "tools/dotbot-defaults.yaml" - include: 'tools/dotbot-defaults.yaml'
- shell: - shell:
- echo "Configuring tunkki" - echo "Configuring tunkki"
- link: - link:
@@ -6,8 +6,11 @@
force: true force: true
glob: true glob: true
path: hosts/tunkki/base/** path: hosts/tunkki/base/**
prefix: "." prefix: '.'
~/.config/: ~/.config/:
glob: true glob: true
force: true force: true
path: hosts/tunkki/config/** path: hosts/tunkki/config/**
- snap:
- nvim:
classic: true

View File

@@ -1,4 +1,4 @@
- include: "tools/dotbot-defaults.yaml" - include: 'tools/dotbot-defaults.yaml'
- shell: - shell:
- echo "Configuring v" - echo "Configuring v"
- link: - link:
@@ -6,7 +6,7 @@
force: true force: true
glob: true glob: true
path: hosts/v/base/** path: hosts/v/base/**
prefix: "." prefix: '.'
~/.config/: ~/.config/:
glob: true glob: true
force: true force: true

View File

@@ -1,4 +1,4 @@
- include: "tools/dotbot-defaults.yaml" - include: 'tools/dotbot-defaults.yaml'
- clean: - clean:
~/: ~/:
~/.config: ~/.config:
@@ -26,7 +26,7 @@
force: true force: true
glob: true glob: true
path: base/* path: base/*
prefix: "." prefix: '.'
~/.config/: ~/.config/:
glob: true glob: true
relink: true relink: true
@@ -65,6 +65,3 @@
platform: linux # Optional platform: linux # Optional
- time: 0 5 * * * - time: 0 5 * * *
command: task sync command: task sync
- snap:
- nvim:
classic: true

View File

@@ -13,7 +13,7 @@ Some problematic code has been fixed per `shellcheck` suggestions.
## Sourced ## Sourced
| Script | Source | | Script | Source |
|-------------------------|-------------------| | ----------------------- | ----------------- |
| `x-dupes` | skx/sysadmin-util | | `x-dupes` | skx/sysadmin-util |
| `x-foreach` | mvdan/dotfiles | | `x-foreach` | mvdan/dotfiles |
| `x-multi-ping` | skx/sysadmin-util | | `x-multi-ping` | skx/sysadmin-util |

View File

@@ -4,6 +4,7 @@
# Updates $HOME/.dotfiles/docs/tmux.md with my keybindings. # Updates $HOME/.dotfiles/docs/tmux.md with my keybindings.
# shellcheck source=./../../scripts/shared.sh # shellcheck source=./../../scripts/shared.sh
DOTFILES_SHARED_LOADED=""
source "$HOME/.dotfiles/scripts/shared.sh" source "$HOME/.dotfiles/scripts/shared.sh"
have tmux || { have tmux || {
@@ -15,7 +16,7 @@ TMUX_KEYBINDINGS_DOCS="$DOTFILES/docs/tmux-keybindings.md"
CB="\n\`\`\`\n" CB="\n\`\`\`\n"
KB=$(tmux list-keys) KB=$(tmux list-keys)
H="# tmux keybindings\n" H="# tmux keybindings\n"
L="\n\nLeader: \`<ctrl><space>\`\n\n" L="\nLeader: \`<ctrl><space>\`\n"
# Generalize expanded $HOME to "$HOME" # Generalize expanded $HOME to "$HOME"
KB="${KB//$HOME/\$HOME}" KB="${KB//$HOME/\$HOME}"

36
package.json Normal file
View File

@@ -0,0 +1,36 @@
{
"name": "ivuorinen-dotfiles",
"version": "1.0.0",
"description": "ivuorinen's dotfiles, this is for linting and formatters",
"main": "index.js",
"directories": {
"doc": "docs"
},
"scripts": {
"lint:markdown": "npx markdownlint -d .",
"fix:markdown": "npx markdownlint -df .",
"lint:prettier": "npx prettier . --check",
"fix:prettier": "npx prettier . --write",
"test": "echo \"Error: no test specified\" && exit 0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ivuorinen/dotfiles.git"
},
"keywords": [
"dotfiles",
"ivuorinen"
],
"author": "Ismo Vuorinen",
"license": "ISC",
"bugs": {
"url": "https://github.com/ivuorinen/dotfiles/issues"
},
"homepage": "https://github.com/ivuorinen/dotfiles#readme",
"devDependencies": {
"@ivuorinen/commitlint-config": "^0.1.10",
"@ivuorinen/eslint-config": "^0.2.13",
"@ivuorinen/markdownlint-config": "^0.1.6",
"@ivuorinen/prettier-config": "^0.1.1"
}
}

2919
yarn.lock Normal file

File diff suppressed because it is too large Load Diff