X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/2981382fce99a91fd64161c3f5590ea2cf3a77b3..800d8089ce276ae1b2a3f9875a370b7e00a763db:/awesome/rc.lua diff --git a/awesome/rc.lua b/awesome/rc.lua index c932e62..74688d7 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -37,7 +37,15 @@ end beautiful.init(gears.filesystem.get_dir("config").."/themes/mlp/theme.lua") -- This is used later as the default terminal and editor to run. -terminal = "urxvtc" +terminal = os.getenv("TERMINAL") or "xterm" +terminal_class = (function() + local map = { urxvt = "URxvt" + , urxvtc = "URxvt" + , xterm = "XTerm" + } + return map[terminal] or terminal +end)() + editor = os.getenv("EDITOR") or "vim" editor_cmd = terminal .. " -e " .. editor