summaryrefslogtreecommitdiff
path: root/.config/awesome/awesome.lua
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-23 10:28:57 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-23 10:28:57 +0200
commit8e47ab2d5c32459a8071da3facc0d1f096261de5 (patch)
tree513e64301398f5135f64b9f0e91a9116fade4fd6 /.config/awesome/awesome.lua
parent65989a0d67084252fc372816dcdca38d91eef283 (diff)
downloaddotfiles-8e47ab2d5c32459a8071da3facc0d1f096261de5.tar.gz
dotfiles-8e47ab2d5c32459a8071da3facc0d1f096261de5.tar.bz2
dotfiles-8e47ab2d5c32459a8071da3facc0d1f096261de5.zip
awesome: Partially update to awesome 3.4.11
Not yet hooked up is the new startup-error handling.
Diffstat (limited to '.config/awesome/awesome.lua')
-rw-r--r--.config/awesome/awesome.lua24
1 files changed, 18 insertions, 6 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua
index 5f788c2..1b8271a 100644
--- a/.config/awesome/awesome.lua
+++ b/.config/awesome/awesome.lua
@@ -112,11 +112,17 @@ mytaglist.buttons = awful.util.table.join(
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
- if not c:isvisible() then
- awful.tag.viewonly(c:tags()[1])
+ if c == client.focus then
+ c.minimized = true
+ else
+ if not c:isvisible() then
+ awful.tag.viewonly(c:tags()[1])
+ end
+ -- This will also un-minimize
+ -- the client, if needed
+ client.focus = c
+ c:raise()
end
- client.focus = c
- c:raise()
end),
awful.button({ }, 3, function ()
if instance then
@@ -220,7 +226,6 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, }, "a", function () awful.util.spawn(terminal .. " -geometry 100x25 -e pa-sink-ctl" ) end),
awful.key({ modkey, }, "w", function () awful.util.spawn("luakit") end),
awful.key({ modkey, }, "p", function () awful.util.spawn("pidgin") end),
- awful.key({ modkey, }, "n", function () awful.util.spawn(terminal .. " -e wicd-curses") end),
awful.key({ modkey, }, "i", function () awful.util.spawn(terminal .. " -geometry 100x30 -e " .. os.getenv("HOME") .. "/.scripts/start_remote_irssi.sh") end),
awful.key({ }, "Print", function () awful.util.spawn("scrot") end),
@@ -250,6 +255,8 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Shift" }, "f", function () awful.layout.set(layouts[1]) end),
+ awful.key({ modkey, "Control" }, "n", awful.client.restore),
+
-- Prompt
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
@@ -271,7 +278,12 @@ clientkeys = awful.util.table.join(
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
- -- awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end),
+ awful.key({ modkey, }, "n",
+ function (c)
+ -- The client currently has the input focus, so it cannot be
+ -- minimized, since minimized clients can't have the focus.
+ c.minimized = true
+ end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal