Skip to content

Instantly share code, notes, and snippets.

@endaaman
Last active December 28, 2018 07:40
Show Gist options
  • Save endaaman/fbe3ec1784ed6162a044e0c247f8f924 to your computer and use it in GitHub Desktop.
Save endaaman/fbe3ec1784ed6162a044e0c247f8f924 to your computer and use it in GitHub Desktop.
local tym = require('tym')
function fit()
local model = tym.get_monitor_model()
print('fitting', model)
if model == 'DVI-I-1' then
tym.set('font', 'Monospace 16')
tym.apply()
end
return true
end
tym.set_config({
font = 'Monospace 12',
})
tym.set_timeout(fit, 1000)
tym.set_keymap('<Ctrl><Shift>f', fit)
tym -u i.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment