This file contains hidden or 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
| knu = require("knu") -- https://github.com/knu/hs-knu | |
| -- Switch between Karabiner-Elements profiles as Barrier enters a different host | |
| do | |
| -- Configure Barrier (https://github.com/debauchee/barrier) to output log to ~/Library/Logs/barrier.log | |
| local logFile = os.getenv("HOME") .. "/Library/Logs/barrier.log" | |
| local lineNo = 1 | |
| local host = nil | |
| local defaultProfile = "Vidur's Profile" | |
| local profileForHost = function (host) |
This file contains hidden or 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
| /** | |
| * fontloader.js | |
| Helps you avoid FOIT and progressively load in multiple | |
| sets of webfonts as asynchronous non-blocking resources. | |
| Apply them on the page when the fonts are ready, like so: | |
| .title-type { font-family: serif; } | |
| .prose-type { font-family: sans-serif; } | |