This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Quick notes about the kanata configuration syntax: | |
;; - the syntax is Lisp-like but totally unrelated to Lisp, so no worries :-) | |
;; - comments are prefixed by double-semicolons | |
;; - only one `defsrc` is allowed, listing all keys handled by kanata | |
;; - up to 25 `deflayer` are allowed, one per layer emulation | |
;; - the underscore symbol `_` in `deflayer` sections means "transparent", | |
;; i.e. the previous layer behaviour is used when pressing that key | |
;; `defsrc` defines the keys that will be intercepted by kanata. | |
;; The order of the keys matches with deflayer declarations and all deflayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import shutil # backups... | |
import textwrap # dedent hard-coded symbol strings | |
from lxml import etree | |
from lxml.builder import E | |
XKB = '/usr/share/X11/xkb/' | |
NAME = 'lafayette' | |
LAYOUTS = {'fr': [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DMActivity { | |
max-width: 1200px; | |
min-width: 1200px; | |
} | |
.DMActivity-header { | |
display: none; | |
} | |
.DMActivity-container { | |
height: 98vh; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// File : lafayette.xkb | |
// Project page : http://fabi1cazenave.github.com/qwerty-lafayette/ | |
// Author : Fabien Cazenave | |
// Licence : WTFPL | |
// | |
// US-QWERTY layout, French variant | |
// | |
// To apply this keymap, use: | |
// xkbcomp -w9 lafayette.xkb $DISPLAY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain(slack.com) { | |
/** | |
* A super-compact mode for Slack. | |
* Activate it with the "dense" theme in your profile preferences. | |
*/ | |
/* Messages */ | |
.dense_theme .message { | |
font-size: 0.9rem !important; | |
line-height: 1.0rem !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" auto-source this configuration file when updated | |
autocmd! BufWritePost .vimrc source ~/.vimrc | |
" Modern / standard / Notepad-like behavior: | |
source $VIMRUNTIME/mswin.vim | |
set nocompatible " required for a multi-level undo/redo stack | |
set mouse=a " enable mouse selection | |
" gVim handles Ctrl-* shortcuts a bit better than Vim | |
set guifont=Monospace\ 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* add custom keyboard shortcuts for the slideshow player */ | |
EVENTS.onSMILReady(function() { | |
var slideshow = document.getElementById("slideshow"); | |
if (!slideshow || !slideshow.timing) return; | |
EVENTS.bind(document, "keydown", function(e) { | |
if (e.altKey || e.metaKey || e.cmdKey || e.ctrlKey) | |
return; | |
switch(e.keyCode) { | |
case 36: // home key | |
EVENTS.preventDefault(e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/MacVim/MMTextViewHelper.m b/src/MacVim/MMTextViewHelper.m | |
index 4d10432..42f311b 100644 | |
--- a/src/MacVim/MMTextViewHelper.m | |
+++ b/src/MacVim/MMTextViewHelper.m | |
@@ -22,6 +22,9 @@ | |
#import "MMWindowController.h" | |
#import "Miscellaneous.h" | |
+// asymetric meta keys | |
+#define NSLeftAlternateKeyMask (0x000020 | NSAlternateKeyMask) |