Skip to content

Instantly share code, notes, and snippets.

@philc
philc / gist:43cbc114ac922df3b83cc0c23b6059eb
Created February 11, 2024 05:15
Karabiner Elements tab switching shortcuts
{
"description": "Tab switching: Change Cmd-j to Cmd-Alt-left",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"command"
]
@philc
philc / init.lua
Created October 13, 2017 18:43
My hammerspoon config
-----------------------------------------------------------------------
-- References:
-- https://github.com/apesic/dotfiles/blob/master/.hammerspoon/init.lua
-- https://learnxinyminutes.com/docs/lua/
-----------------------------------------------------------------------
----------------
-- Configuration
----------------
@philc
philc / gist:e849b48e6c5f32592d62
Created July 21, 2014 01:05
A script to copy Chrome's search engine settings into Vimium's settings format
#!/bin/sh
# This script lists user defined search engines in Chromium.
# It replaces {inputEncoding}, which appears in some search engine definitions, with
# UTF-8, {google:baseURL} with the Google URL, and omits other such tokens.
# Location of Chromium's 'Web Data' SQLite3 file
CHROMIUM_WEB_DATA="$HOME/.config/chromium/Default/Web Data"
# Location to create temporary copy of 'Web Data', since the database is locked while