Skip to content

Instantly share code, notes, and snippets.

View karlc1's full-sized avatar

Karl Casserfelt karlc1

  • Stockholm, Sweden
View GitHub Profile
@ctaylo21
ctaylo21 / init.vim
Last active May 5, 2022 10:02
Neovim example of using winhighlight to dim inactive windows
" Background colors for active vs inactive windows
hi ActiveWindow guibg=#17252c
hi InactiveWindow guibg=#0D1B22
" Call method on window enter
augroup WindowManagement
autocmd!
autocmd WinEnter * call Handle_Win_Enter()
augroup END
@itspngu
itspngu / keymap.c
Last active January 21, 2023 21:38
keymap.c file for DZ60 PCB / Including code to facilitate sending nonstandard keys such as those used in some European languages from ANSI boards using "Alt Codes" which would usually be entered through the numpad.
#include "dz60.h"
#define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
enum custom_keycodes {
KX_UMLAUT_A = SAFE_RANGE,
KX_UMLAUT_O,
KX_UMLAUT_U,
KX_UMLAUT_S,