X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3f10064719360b31f43438bb4a3ab66af9c68fd7..1a082181650a64efa15e235859238491833c39bc:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 2be8687..2b5b2a8 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -766,11 +766,11 @@ globalkeys = gears.table.join( awful.key({ modkey, }, "d", th.delete_tag, {description = "delete the current tag", group = "tag"}), awful.key({ modkey, "Shift", }, "a", function() - th.move_to_new_tag(nil,nil,true,true,true) + th.move_to_new_tag(nil, { layout = layouts.maximised },true,true,true) end, {description = "add a volatile tag with the focused client", group = "tag"}), awful.key({ modkey, "Shift", "Control" }, "a", function() - th.move_to_new_tag(nil,nil,false,true,true) + th.move_to_new_tag(nil, { layout = layouts.maximised },false,true,true) end, {description = "add a permanent tag with the focused client", group = "tag"}), awful.key({ modkey, "Mod1" }, "a", th.copy_tag, @@ -906,6 +906,8 @@ awful.key({ cmdkey }, "x", function () end), awful.key({ cmdkey, "Shift" }, "x", function () awful.spawn("xscreensaver-command -exit") end), +awful.key({ cmdkey }, "BackSpace", function () awful.spawn("pkill -USR1 offlineimap") end), + -- function keys awful.key(nil, "XF86ScreenSaver", function () awful.spawn("xset dpms force off") end), awful.key(nil, "XF86AudioMute", function () awful.spawn("pactl set-sink-mute @DEFAULT_SINK@ toggle") end), @@ -1016,8 +1018,17 @@ awful.rules.rules = { { rule = { class = "Thunderbird" }, callback = move_to_tag_by_name(nil, "cal"), }, + { rule = { instance = "mutt" }, + properties = { + new_tag = { + name = "mutt", + layout = awful.layout.suit.fair.horizontal, + volatile = true + }, + switchtotag = true, + }, + }, { rule_any = { class = { - "MuPDF", "Wicd-client.py", "Gxmessage", "Pinentry" @@ -1091,6 +1102,12 @@ client.connect_signal("manage", function (c) -- Set the windows at the slave, -- i.e. put it at the end of others instead of setting it master. -- if not awesome.startup then awful.client.setslave(c) end + if not awesome.startup then + local t = awful.screen.focused().selected_tag + if t.name == "xmutt" then + awful.client.setslave(c) + end + end if awesome.startup and not c.size_hints.user_position