Update localconf.lua.template, minor documentation

This commit is contained in:
crater2150 2014-03-18 13:17:16 +01:00
parent 9a43fbf203
commit ebcf91bfa7
2 changed files with 31 additions and 8 deletions

View file

@ -1,3 +1,28 @@
terminal = "urxvtc -e tmux"
modkey = "Mod4"
rule_screen=1
local conf = {}
local awful = awful
-- modkey to use for most bindings
conf.modkey = "Mod4"
-- screen number, on which rules will put clients by default
conf.rule_screen=1
-- should mpd prompt clear playlist before adding matched songs
conf.mpd_prompt_clear_before = true
-- default programs (for keybindings)
conf.cmd = {}
conf.cmd.terminal = "g.zsh" -- Mod-t
conf.cmd.browser = "webbrowser" -- Mod-c f
conf.cmd.im_client = "im-client" -- Mod-c i
conf.cmd.irc_client = "sweechat" -- Mod-c I
conf.cmd.mail_client = "gmutt" -- Mod-c m
conf.cmd.mpd_client = "gmpc" -- Mod-m g
conf.cmd.editor = {}
conf.cmd.editor.terminal = conf.cmd.terminal .. " -e vim"
conf.cmd.editor.gui = "gvim"
-- Mod-r binding for running programs
conf.cmd.run = function() awful.util.spawn("dmenu_run -l 10 -y 350") end
return conf

View file

@ -1,10 +1,12 @@
-- MPD control and playlist editing
-- prompts require dmpc script
local M = {}
local conf = conf
local awful = awful
local log = log
-- local functions
local dmenu, mpc_play_search, notify, mpc
local dmenu, notify, mpc
local defaults = {}
local settings = {}
@ -82,10 +84,6 @@ M.prompt.toggle_replace_on_search = function()
).. " the playlist")
end
function mpc_play_search(s)
notify("Found " .. (s) .. " matches");
end
-- }}}
-- {{{ notify wrapper