-- Themes define colours, icons, font and wallpapers.
beautiful.init(gears.filesystem.get_dir("config").."/themes/mlp/theme.lua")
--- This is used later as the default terminal and editor to run.
+-- This is used later as the default terminal to run.
terminal = os.getenv("TERMINAL") or "xterm"
terminal_class = (function()
local map = { urxvt = "URxvt"
return map[terminal] or terminal
end)()
-editor = os.getenv("EDITOR") or "vim"
-editor_cmd = terminal .. " -e " .. editor
-
-- Require files {{{1
require("bindings")
require("tags")
placement = awful.placement.no_overlap+awful.placement.no_offscreen } },
{ rule_any = {
class = {
- "Sensation Editor",
"MPlayer",
"pinentry",
"mpv",
{ rule = { class = terminal_class, instance = "ncmpcpp" },
properties = { tag = mediatag,
function (c) awful.client.setmaster(c) end } },
- { rule = { class = terminal_class, instance = "mopidy" },
- properties = { tag = mediatag,
- function (c) awful.client.setmaster(c) end } },
{ rule = { class = terminal_class, instance = "weechat" },
properties = { tag = imtag,
function (c) awful.client.setmaster(c) end } },