Note: replace $KEYBOARD
and $KEYMAP
to yours.
- left hand
sudo MAKEFLAGS="EXTRAFLAGS=-DMASTER_LEFT" ./util/docker_build.sh crkbd:n:avrdude
- right hand
// Prints refresh rates of displays. | |
func debugPrintDisplayRefreshRates() { | |
var displayCount: UInt32 = 0 | |
var result = CGGetActiveDisplayList(0, nil, &displayCount) | |
let allocated = Int(displayCount) | |
let activeDisplays = UnsafeMutablePointer<CGDirectDisplayID>.allocate(capacity: allocated) | |
defer { activeDisplays.deallocate() } |
func moveWindow(_ appRef: AXUIElement, _ velocity: CGPoint) { | |
do { | |
var windowRef: AnyObject? | |
try appRef.copyAttributeValue(kAXFocusedWindowAttribute, &windowRef) | |
let windowElement: AXUIElement = windowRef as! AXUIElement | |
var positionRef: CFTypeRef? | |
try windowElement.copyAttributeValue(kAXPositionAttribute, &positionRef) | |
var position = CGPoint() |
I hereby claim:
To claim this, I am signing this object:
# NOTE: Assuming you have already installed keybase and logged in | |
# This is only for WSL. see: https://github.com/microsoft/WSL/issues/4029 | |
export GPG_TTY=$(tty) | |
# import your public/private keys from keybase | |
keybase pgp export | gpg --import | |
keybase pgp export --secret | gpg --allow-secret-key --import --batch | |
# show your imported keys |
# /etc/environment | |
CLUTTER_DEFAULT_FPS=144 | |
__GL_SYNC_DISPLAY_DEVICE=DP-2 |
# add "processor.max_cstate=1 pcie_aspm=off" options to GRUB_CMDLINE_LINUX like the following | |
GRUB_CMDLINE_LINUX="processor.max_cstate=1 pcie_aspm=off" |
GTK_IM_MODULE=fcitx | |
QT_IM_MODULE=fcitx | |
XMODIFIERS=@im=fcitx |
# custom IntelliJ IDEA properties | |
# NOTE: specify the following property to use windows keys as meta keys. see https://youtrack.jetbrains.com/issue/IDEA-144702 | |
keymap.windows.as.meta=true |