From d9156f5126bfffadf9ed3f44230580436f534ebc Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 11 Oct 2009 00:23:16 +0200 Subject: rc.lua: enable startup notification --- rc.lua | 82 +++++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/rc.lua b/rc.lua index 3e30afb..28bd8f0 100644 --- a/rc.lua +++ b/rc.lua @@ -183,7 +183,7 @@ for _, w in pairs(fs) do awful.widget.layout.margins[w.widget] = fs.margins -- Register buttons w.widget:buttons(awful.util.table.join( - awful.button({ }, 1, function () exec("rox", false) end) + awful.button({ }, 1, function () exec("rox") end) )) end end @@ -227,7 +227,7 @@ local mboxwidget = widget({ type = "textbox", name = "mboxwidget" }) vicious.register(mboxwidget, vicious.widgets.mbox, "$1", 181, "/home/anrxc/mail/Inbox") -- Register buttons mboxwidget:buttons(awful.util.table.join( - awful.button({ }, 1, function () exec("urxvt -title Alpine -e alpine_exp", false) end) + awful.button({ }, 1, function () exec("urxvt -title Alpine -e alpine_exp") end) )) -- }}} @@ -256,8 +256,8 @@ vicious.register(orgwidget, vicious.widgets.org, 601, orgmode.files) -- Register buttons orgwidget:buttons(awful.util.table.join( - awful.button({ }, 1, function () exec("emacsclient --eval '(org-agenda-list)'", false) end), - awful.button({ }, 3, function () exec("emacsclient --eval '(make-remember-frame)'", false) end) + awful.button({ }, 1, function () exec("emacsclient --eval '(org-agenda-list)'") end), + awful.button({ }, 3, function () exec("emacsclient --eval '(make-remember-frame)'") end) )) -- }}} @@ -287,10 +287,10 @@ vicious.register(volwidget, vicious.widgets.volume, "$1%", 2, "PCM") vicious.register(volbarwidget, vicious.widgets.volume, "$1", 2, "PCM") -- Register buttons volbarwidget.widget:buttons(awful.util.table.join( - awful.button({ }, 1, function () exec("kmix", false) end), - awful.button({ }, 2, function () exec("amixer -q sset Master toggle", false) end), - awful.button({ }, 4, function () exec("amixer -q sset PCM 2dB+", false) end), - awful.button({ }, 5, function () exec("amixer -q sset PCM 2dB-", false) end) + awful.button({ }, 1, function () exec("kmix") end), + awful.button({ }, 2, function () exec("amixer -q sset Master toggle") end), + awful.button({ }, 4, function () exec("amixer -q sset PCM 2dB+") end), + awful.button({ }, 5, function () exec("amixer -q sset PCM 2dB-") end) )) volwidget:buttons( volbarwidget.widget:buttons() ) -- }}} @@ -304,7 +304,7 @@ datewidget = widget({ type = "textbox", name = "datewidget" }) vicious.register(datewidget, vicious.widgets.date, "%b %d, %R", 61) -- Register buttons datewidget:buttons(awful.util.table.join( - awful.button({ }, 1, function () exec("pylendar.py", false) end) + awful.button({ }, 1, function () exec("pylendar.py") end) )) -- }}} @@ -402,53 +402,53 @@ local clientbuttons = awful.util.table.join( -- {{{ Global keys local globalkeys = awful.util.table.join( -- {{{ Applications - awful.key({ modkey }, "e", function () exec("emacsclient -n -c", false) end), - awful.key({ modkey }, "r", function () exec("rox", false) end), - awful.key({ modkey }, "u", function () exec("utorrent", false) end), - awful.key({ modkey }, "w", function () exec("firefox", false) end), - awful.key({ altkey }, "F1", function () exec("urxvt", false) end), + awful.key({ modkey }, "e", function () exec("emacsclient -n -c") end), + awful.key({ modkey }, "r", function () exec("rox") end), + awful.key({ modkey }, "u", function () exec("utorrent") end), + awful.key({ modkey }, "w", function () exec("firefox") end), + awful.key({ altkey }, "F1", function () exec("urxvt") end), awful.key({ altkey }, "#49", function () teardrop("urxvt", "bottom") end), awful.key({ modkey }, "F2", function () teardrop("gmrun", nil, nil, nil, 0.08) end), - awful.key({ modkey }, "a", function () exec("urxvt -title Alpine -e alpine_exp", false) end), - awful.key({ modkey }, "g", function () sexec("GTK2_RC_FILES=~/.gtkrc-gajim gajim", false) end), - awful.key({ modkey }, "q", function () exec("emacsclient --eval '(make-remember-frame)'", false) end), + awful.key({ modkey }, "a", function () exec("urxvt -title Alpine -e alpine_exp") end), + awful.key({ modkey }, "g", function () sexec("GTK2_RC_FILES=~/.gtkrc-gajim gajim") end), + awful.key({ modkey }, "q", function () exec("emacsclient --eval '(make-remember-frame)'") end), -- }}} -- {{{ Multimedia keys - awful.key({}, "#160", function () exec("kscreenlocker --forcelock", false) end), - awful.key({}, "#146", function () exec("khelpcenter", false) end), - awful.key({}, "#121", function () exec("pvol.py -m", false) end), - awful.key({}, "#122", function () exec("pvol.py -p -c -2", false) end), - awful.key({}, "#123", function () exec("pvol.py -p -c 2", false) end), - awful.key({}, "#232", function () exec("plight.py -s -a", false) end), - awful.key({}, "#233", function () exec("plight.py -s -a", false) end), - awful.key({}, "#244", function () exec("sudo /usr/sbin/pm-hibernate", false) end), - awful.key({}, "#150", function () exec("sudo /usr/sbin/pm-suspend", false) end), - awful.key({}, "#156", function () exec("emacsclient -n -c", false) end), - awful.key({}, "#225", function () exec("pypres.py", false) end), - awful.key({}, "#181", function () exec("xrefresh", false) end), - awful.key({}, "#180", function () exec("firefox -browser", false) end), - awful.key({}, "#163", function () exec("urxvt -title Alpine -e alpine", false) end), - awful.key({}, "#157", function () exec("geeqie", false) end), - awful.key({}, "Print",function () exec("ksnapshot", false) end), + awful.key({}, "#160", function () exec("kscreenlocker --forcelock") end), + awful.key({}, "#146", function () exec("khelpcenter") end), + awful.key({}, "#121", function () exec("pvol.py -m") end), + awful.key({}, "#122", function () exec("pvol.py -p -c -2") end), + awful.key({}, "#123", function () exec("pvol.py -p -c 2") end), + awful.key({}, "#232", function () exec("plight.py -s -a") end), + awful.key({}, "#233", function () exec("plight.py -s -a") end), + awful.key({}, "#244", function () exec("sudo /usr/sbin/pm-hibernate") end), + awful.key({}, "#150", function () exec("sudo /usr/sbin/pm-suspend") end), + awful.key({}, "#156", function () exec("emacsclient -n -c") end), + awful.key({}, "#225", function () exec("pypres.py") end), + awful.key({}, "#181", function () exec("xrefresh") end), + awful.key({}, "#180", function () exec("firefox -browser") end), + awful.key({}, "#163", function () exec("urxvt -title Alpine -e alpine") end), + awful.key({}, "#157", function () exec("geeqie") end), + awful.key({}, "Print",function () exec("ksnapshot") end), -- }}} -- {{{ Prompt menus awful.key({ altkey }, "F2", function () awful.prompt.run({ prompt = "Run: " }, promptbox[mouse.screen].widget, - function (...) promptbox[mouse.screen].text = exec(unpack(arg), false) end, + function (...) promptbox[mouse.screen].text = exec(unpack(arg)) end, awful.completion.shell, awful.util.getdir("cache") .. "/history") end), awful.key({ altkey }, "F3", function () awful.prompt.run({ prompt = "Dictionary: " }, promptbox[mouse.screen].widget, function (words) local xmessage = "xmessage -timeout 10 -file -" - sexec("crodict " .. words .. " | " .. xmessage, false) + sexec("crodict " .. words .. " | " .. xmessage) end) end), awful.key({ altkey }, "F4", function () awful.prompt.run({ prompt = "Manual: " }, promptbox[mouse.screen].widget, - function (page) exec("urxvt -e man " .. page, false) end) + function (page) exec("urxvt -e man " .. page) end) end), awful.key({ altkey }, "F5", function () awful.prompt.run({ prompt = "Run Lua code: " }, promptbox[mouse.screen].widget, @@ -456,20 +456,20 @@ local globalkeys = awful.util.table.join( end), awful.key({ altkey }, "F10", function () awful.prompt.run({ prompt = "Connect: " }, promptbox[mouse.screen].widget, - function (host) exec("urxvt -e ssh " .. host, false) end) + function (host) exec("urxvt -e ssh " .. host) end) end), awful.key({ altkey }, "F11", function () awful.prompt.run({ prompt = "Calculate: " }, promptbox[mouse.screen].widget, function (expr) local xmessage = "xmessage -timeout 10 -file -" sexec("echo '" .. expr .. ' = ' .. - awful.util.eval("return (" .. expr .. ")") .. "' | " .. xmessage, false) + awful.util.eval("return (" .. expr .. ")") .. "' | " .. xmessage) end) end), awful.key({ altkey }, "F12", function () awful.prompt.run({ prompt = "Web search: " }, promptbox[mouse.screen].widget, function (command) - exec("firefox 'http://yubnub.org/parser/parse?command="..command.."'", false) + exec("firefox 'http://yubnub.org/parser/parse?command="..command.."'") if tags[mouse.screen][3] then awful.tag.viewonly(tags[mouse.screen][3]) end end) end), @@ -573,8 +573,8 @@ local clientkeys = awful.util.table.join( else c.above = false; awful.titlebar.remove(c) end end), awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), - awful.key({ modkey, "Shift" }, "c", function (c) exec("kill -CONT "..c.pid, false) end), - awful.key({ modkey, "Shift" }, "s", function (c) exec("kill -STOP "..c.pid, false) end) + awful.key({ modkey, "Shift" }, "c", function (c) exec("kill -CONT "..c.pid) end), + awful.key({ modkey, "Shift" }, "s", function (c) exec("kill -STOP "..c.pid) end) ) -- }}} -- cgit v1.2.3