Downgrade is reasonable, since its obviously not widespread.

I'm running an awesome config that I assembled a long time ago, back when
its notification daemon ("naughty") was still new and rather buggy. I have
it disabled.

I run awesome from gdm. I've attached my .xsessionrc and my
.config/awesome/rc.lua. It might throw up some errors when if you use it
around setting background images, but it should still work.

Using awesome 3.4.10-1 on an up-to-date sid.


On Sat, Aug 13, 2011 at 8:35 AM, Michael Biebl <bi...@debian.org> wrote:

> Am 13.08.2011 00:02, schrieb Robert Norris:
> > Using awesome as window manager, no desktop environment as such (though
> I'm
> > sure there's bits of KDE and GNOME libs floating around to support
> various
> > apps).
> >
> >
> > On Sat, Aug 13, 2011 at 1:09 AM, Michael Biebl <bi...@debian.org> wrote:
> >
> >> Which desktop environment / window manager do you use?
> >>
>
> I can't reproduce this bug. I'm using GNOME on a up-to-date Debian sid
> system
> (i386) and gdm as login manager.
> I tried:
> 1/ Running notification-daemon in a GNOME 2 session → works fine
> 2/ Running notification-daemon in a Xfce session → works fine
> 3/ Running notification-daemon in a Openbox session → works fine
> 4/ Running notification-daemon in a awesome session → notification-daemon
> exits
> cleanly, as the org.freedesktop.Notifications D-Bus name is already taken
> by
> awesome [1] itself, i.e. it provides its own, notification implementation
> integrated into awesome.
>
> So, I'm having a hard time to reproduce this particular issue, and I'm
> inclined
> to downgrade it to important. That said, could you describe your setup in
> more
> detail. Which version, how you start your X session, custom modification
> etc.
> I'm especially curious, why you actually can start notification-daemon
> under
> awesome, as the D-Bus name is already taken in my case (note: all I did was
> an
> apt-get install awesome).
>
> Please elaborate.
>
> Michael
>
>
> [1] Version 3.4.10-1
>
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
>
>

Attachment: .xsessionrc
Description: Binary data

require("awful")
require("awful.autofocus")
require("awful.rules")
--require("naughty")
require("beautiful")

theme_path = os.getenv("HOME") .. "/.awesome/theme/theme"

terminal = "x-terminal-emulator"
browser = "chrome --enable-apps"

modkey = "Mod4"

layouts = {
    awful.layout.suit.max,
    awful.layout.suit.floating
}

beautiful.init(theme_path)

tags = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, 1)
for tagnumber = 1, 9 do 
    awful.layout.set(layouts[1], tags[tagnumber])
end

prompt = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })

taglist = awful.widget.taglist(1, awful.widget.taglist.label.all, awful.util.table.join(
            awful.button({ }, 1, awful.tag.viewonly),
            awful.button({ modkey }, 1, awful.client.movetotag),
            awful.button({ }, 3, function (tag) tag.selected = not tag.selected end),
            awful.button({ modkey }, 3, awful.client.toggletag),
            awful.button({ }, 4, awful.tag.viewnext),
            awful.button({ }, 5, awful.tag.viewprev)
          ))

tasklist = awful.widget.tasklist(function(c) return awful.widget.tasklist.label.currenttags(c, 1) end,
                                 awful.util.table.join(
                                    awful.button({ }, 1, function (c)
                                                            if not c:isvisible() then
                                                                awful.tag.viewonly(c:tags()[1])
                                                            end
                                                            client.focus = c
                                                            c:raise()
                                                         end),
                                    awful.button({ }, 3, function ()
                                                            if instance then
                                                                instance:hide()
                                                                instance = nil
                                                            else
                                                                instance = awful.menu.clients({ width=250 })
                                                            end
                                                          end),
                                    awful.button({ }, 4, function ()
                                                            awful.client.focus.byidx(1)
                                                            if client.focus then client.focus:raise() end
                                                         end),
                                    awful.button({ }, 5, function ()
                                                            awful.client.focus.byidx(-1)
                                                            if client.focus then client.focus:raise() end
                                                         end)
                                 ))

--spacerl = widget({ type = 'textbox', name = 'spacerl', align = "left" })
--spacerl.width = 1
--spacerl.bg = beautiful.fg_normal

--spacerr = widget({ type = 'textbox', name = 'spacerr', align = "right" })
--spacerr.width = 1
--spacerr.bg = beautiful.fg_normal

clock = awful.widget.textclock({ align = "left" }, " %a %d %b %Y %H:%M:%S ", 1);

systray = widget({ type = "systray" })

wibox = awful.wibox({ position = "top", screen = 1 })
wibox.widgets = {
    {
        prompt,
        taglist,
        layout = awful.widget.layout.horizontal.leftright
    },
    systray,
    clock,
    tasklist,
    layout = awful.widget.layout.horizontal.rightleft
}

globalkeys = awful.util.table.join(
    awful.key({}, "F1", function () awful.util.spawn(terminal) end),
    awful.key({}, "F2", function () awful.util.spawn(browser) end),

    awful.key({}, "F12", function () awful.util.spawn("i3lock -c 000000 -i /home/rob/.awesome/theme/background.png") end),

    awful.key({}, "Print", function () awful.util.spawn("xfce4-screenshooter -r -s /home/rob") end),

    awful.key({ modkey }, "F1", function () prompt:run() end),

    awful.key({ modkey }, "F11", function () awful.util.spawn("sudo hibernate-disk") end),
    awful.key({ modkey }, "F12", function () awful.util.spawn("sudo hibernate-ram") end),

    awful.key({ modkey }, "Right", function () awful.client.focus.byidx(1) client.focus:raise() end),
    awful.key({ modkey }, "Left", function () awful.client.focus.byidx(-1) client.focus:raise() end),

    awful.key({ modkey }, "Down", awful.tag.viewnext),
    awful.key({ modkey }, "Up", awful.tag.viewprev),

    awful.key({ modkey }, "r", awesome.restart),
    awful.key({ modkey, "Control" }, "q", awesome.quit),

    awful.key({ modkey }, "space", function () awful.layout.inc(layouts, 1) end)
)

for tagnumber = 1, 9 do
    globalkeys = awful.util.table.join(globalkeys,
        awful.key({ modkey }, tagnumber,
            function ()
                if tags[tagnumber] then
                    awful.tag.viewmore({ tags[tagnumber] }, 1)
                end
            end),
        awful.key({ modkey, "Shift" }, tagnumber,
            function ()
                if tags[tagnumber] then
                    awful.client.movetotag(tags[tagnumber])
                end
            end)
    )
end

clientkeys = awful.util.table.join(
    awful.key({ modkey,           }, "f",      function (c) c.fullscreen = not c.fullscreen  end),
    awful.key({ modkey,           }, "Escape", function (c) c:kill()                         end),
    awful.key({ modkey, "Control" }, "space",  awful.client.floating.toggle                     )
)

clientbuttons = awful.util.table.join(
    awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
    awful.button({ modkey }, 1, awful.mouse.client.move),
    awful.button({ modkey }, 3, awful.mouse.client.resize)
)

root.keys(globalkeys)

awful.rules.rules = {
    { rule = { },
      properties = { border_width = beautiful.border_width,
                     border_color = beautiful.border_normal,
                     focus = true,
                     keys = clientkeys,
                     buttons = clientbuttons } },
    { rule = { class = "Gimp" },
      properties = { floating = true } },
    { rule = { class = "Pidgin" },
      properties = { floating = true } },
    { rule = { class = "Inkscape" },
      properties = { floating = true } },
    { rule = { class = "display" },
      properties = { floating = true } },
    { rule = { class = "feh" },
      properties = { floating = true } },
    { rule = { class = "Skype" },
      properties = { floating = true } },
    { rule = { class = "Tomboy" },
      properties = { floating = true } },
    { rule = { class = "Steam.exe" },
      properties = { floating = true } },
    { rule = { class = "Dia" },
      properties = { floating = true } }
}

-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
    -- Add a titlebar
    -- awful.titlebar.add(c, { modkey = modkey })

    -- Enable sloppy focus
    c:add_signal("mouse::enter", function(c)
        if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
            and awful.client.focus.filter(c) then
            client.focus = c
        end
    end)

    if not startup then
        -- Set the windows at the slave,
        -- i.e. put it at the end of others instead of setting it master.
        -- awful.client.setslave(c)

        -- Put windows in a smart way, only if they does not set an initial position.
        if not c.size_hints.user_position and not c.size_hints.program_position then
            awful.placement.no_overlap(c)
            awful.placement.no_offscreen(c)
        end
    end
end)

client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}

Reply via email to