Extract default env key bindings in a constant

This commit is contained in:
Thibault Jouan 2015-04-15 09:34:30 +00:00
parent 6ac26c370e
commit 57a7e104ce

View File

@ -4,6 +4,9 @@ module Uh
RC_PATH = '~/.uhwmrc.rb'.freeze RC_PATH = '~/.uhwmrc.rb'.freeze
MODIFIER = :mod1 MODIFIER = :mod1
KEYBINDS = {
q: proc { quit }
}.freeze
LOGGER_LEVEL = Logger::WARN LOGGER_LEVEL = Logger::WARN
LOGGER_LEVEL_VERBOSE = Logger::INFO LOGGER_LEVEL_VERBOSE = Logger::INFO
@ -22,9 +25,7 @@ module Uh
@output = output @output = output
@rc_path = RC_PATH @rc_path = RC_PATH
@modifier = MODIFIER @modifier = MODIFIER
@keybinds = { @keybinds = KEYBINDS.dup
q: proc { quit }
}
end end
def verbose? def verbose?