Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#if macro | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
import haxe.macro.TypeTools; | |
#end | |
@:remove // Doesn't seem to work on lua, eh | |
interface Job<TJobOpt:{}> {} | |
@:pure |
let mapleader=";" | |
" Disable F1 | |
noremap <F1> <Nop> | |
nnoremap <F1> <Nop> | |
inoremap <F1> <Nop> | |
vnoremap <F1> <Nop> | |
" Neovim configuration |
lua << EOF | |
local nvim_lsp = require('lspconfig') | |
nvim_lsp.pyright.setup{} | |
-- Use an on_attach function to only map the following keys | |
-- after the language server attaches to the current buffer | |
local on_attach = function(client, bufnr) | |
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end | |
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end |
lua << EOF | |
require'compe'.setup { | |
enabled = true; | |
autocomplete = true; | |
debug = false; | |
min_length = 1; | |
preselect = 'enable'; | |
throttle_time = 80; | |
source_timeout = 200; | |
incomplete_delay = 400; |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let g:colors_name = "k" | |
let s:palette = { | |
\ 'bg': '#111111', | |
\ 'fg': '#dedbd4', | |
\ 'dull': '#f9edce', |
# Mode: Screenshot | |
# --------------------------- | |
set $monitorGeom $(monitor-geom) | |
set $maimCopy | xclip -selection clipboard -t image/png | |
set $maimFilename ~/Pictures/Screenshots/$(date +%Y-%m-%d-%H:%M-%S-%N).png | |
set $mode_screenshot Screenshot mode: (w) Window ⋅ (x) All screens ⋅ (s) Selection ⋅ (d) Desktop ⋅ (w/x/s/d + Shift) Use clipboard | (c) Color picker | |
mode "$mode_screenshot" { | |
# Save screenshot to file | |
bindsym w exec --no-startup-id maim -i $(xdotool getactivewindow) $maimFilename, mode "default" | |
bindsym x exec --no-startup-id maim $maimFilename, mode "default" |
# Mode: Focus | |
# --------------------------- | |
set $mode_focus Focus: (Shift+1~5) Mark ⋅ (1~5) Focus ⋅ (Alt+1~5) Clear ⋅ (a) Create custom ⋅ (g) Focus custom ⋅ (c) Clear custom | |
mode "$mode_focus" { | |
# Keybindings for custom marks | |
bindsym a exec i3-input -F 'mark %s' -P 'Mark name: ' | |
bindsym g exec i3-input -F '[con_mark=%s] focus' -P 'Go to mark: ' | |
bindsym c exec i3-input -F 'unmark %s' -P 'Clear mark: ' | |
# Assign marks to keys 1-5 |
#!/bin/bash | |
MONITORS=$(xrandr | grep -o '[0-9]*x[0-9]*[+-][0-9]*[+-][0-9]*') | |
# Get the location of the mouse | |
XMOUSE=$(xdotool getmouselocation | awk -F "[: ]" '{print $2}') | |
YMOUSE=$(xdotool getmouselocation | awk -F "[: ]" '{print $4}') | |
for mon in ${MONITORS}; do | |
# Parse the geometry of the monitor |
{ | |
"user_id": 123456, | |
"contrib_id": 123456, | |
"cookie": "..." | |
} |