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 bash | |
################################################################################ | |
################################################################################ | |
# Forked from: https://github.com/dln/wofi-emoji | |
# which presents a wofi menu to choose an emoji and put it into the clipboard | |
# | |
# This script: | |
# - Stores the clipboard's current top item before overwriting it with the emoji | |
# - Emulates `ctrl+v` to paste the emoji |
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
function populatePageToc() { | |
// Source: https://github.com/JorelAli/mdBook-pagetoc | |
// Modified: | |
// Un-active everything when you click it | |
Array.prototype.forEach.call(document.getElementsByClassName("pagetoc")[0].children, function (el) { | |
el.addEventHandler("click", function () { | |
Array.prototype.forEach.call(document.getElementsByClassName("pagetoc")[0].children, function (el) { | |
el.classList.remove("active"); | |
}); |
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
-------------------------- | |
-- DEFINE YOUR APP + SHORTCUT KEY COMBINATIONS | |
-------------------------- | |
shortcut_key_and_app = { | |
{ 'f', 'Firefox' }, -- "F" for "Browser" | |
{ 'e', 'Code' }, -- "E" for "Editor" | |
{ 'v', 'Finder' }, -- "V" for "Finder" | |
{ 't', 'iTerm2' }, -- "T" for "Terminal" | |
} |