--- This is used later as the default terminal and editor to run.
-terminal = "urxvtc"
-editor = os.getenv("EDITOR") or "vim"
-editor_cmd = terminal .. " -e " .. editor
-
--- Wallpaper {{{1
-local function set_wallpaper(s)
- -- Wallpaper
- if beautiful.wallpaper then
- local wallpaper = beautiful.wallpaper
- -- If wallpaper is a function, call it with the screen
- if type(wallpaper) == "function" then
- wallpaper = wallpaper(s)
- end
- gears.wallpaper.maximized(wallpaper, s, true)
- end
-end
-
--- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
-screen.connect_signal("property::geometry", set_wallpaper)
+-- This is used later as the default terminal to run.
+terminal = os.getenv("TERMINAL") or "xterm"
+terminal_class = (function()
+ local map = { urxvt = "URxvt"
+ , urxvtc = "URxvt"
+ , xterm = "XTerm"
+ }
+ return map[terminal] or terminal
+end)()