X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/5fa95d876f0802a10e0fd4db6f2a6c4bc603b87f..800d8089ce276ae1b2a3f9875a370b7e00a763db:/awesome/rc.lua diff --git a/awesome/rc.lua b/awesome/rc.lua index 93a28f0..74688d7 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -34,10 +34,18 @@ end -- Variable definitions {{{1 -- Themes define colours, icons, font and wallpapers. -beautiful.init(awful.util.getdir("config").."/themes/mlp/theme.lua") +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