]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/rc.lua
awesome: use TERMINAL env as much as possible
[dotfiles.git] / awesome / rc.lua
index c932e62208e37615fe71949de23670dda17fc849..74688d7ed5ccf52701965f540a6aa6412a3d95a6 100644 (file)
@@ -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