X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3f10064719360b31f43438bb4a3ab66af9c68fd7..66d9f3db4596e43efa55488569e06365a2125750:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 2be8687..43a843e 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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