diff --git a/lib/uh/wm/env.rb b/lib/uh/wm/env.rb index 86454fb..7417647 100644 --- a/lib/uh/wm/env.rb +++ b/lib/uh/wm/env.rb @@ -3,10 +3,11 @@ module Uh class Env RC_PATH = '~/.uhwmrc.rb'.freeze - MODIFIER = :mod1 - KEYBINDS = { + MODIFIER = :mod1 + KEYBINDS = { q: proc { quit } }.freeze + WORKER = :block LOGGER_LEVEL = Logger::WARN LOGGER_LEVEL_VERBOSE = Logger::INFO @@ -28,6 +29,7 @@ module Uh @rc_path = RC_PATH @modifier = MODIFIER @keybinds = KEYBINDS.dup + @worker = :block end def verbose? diff --git a/spec/uh/wm/env_spec.rb b/spec/uh/wm/env_spec.rb index 1d157dd..03336a6 100644 --- a/spec/uh/wm/env_spec.rb +++ b/spec/uh/wm/env_spec.rb @@ -29,6 +29,10 @@ module Uh expect(env.keybinds.keys).to eq %i[q] end + it 'has the blocking worker by default' do + expect(env.worker).to eq :block + end + describe '#verbose?' do context 'when verbose mode is disabled' do before { env.verbose = false }