Last active
December 28, 2018 07:40
-
-
Save endaaman/fbe3ec1784ed6162a044e0c247f8f924 to your computer and use it in GitHub Desktop.
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
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) |
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
tym -u i.lua |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment