Hi, On Wed, Nov 17, 2010 at 10:42 PM, Stefano Zacchiroli <[email protected]> wrote: > On Wed, Nov 17, 2010 at 02:55:36PM +0100, Javier Barroso wrote: >> Two wishlist bugs: >> >> 1. Mod+r visible (like Mod+x?) (or Alt-f2 in gnome) > > In fact, I already had that in my configuration, but it was not shipped > as part of the applet. My trick for that is using "gnome-panel-control > --run-dialog", where "gnome-panel-control" is a tiny teeny utility > shipped (unfortunately) as part of openbox. I had the obvious keybinding > in my ~/.config/awesome/rc.lua. > > As most applet users will probably want something similar, I've now > moved it into gnome-applet.lua, so you can now just add the following to > your configuration file: > > awful.key({ modkey, }, "x", gnome_lua_prompt) > > It's committed in Git. > > The dependency on openbox is relaxable, by invoking the corresponding X > mechanism to request the panel to pop-up a run dialog (sorry for the > misnomer here, but I don't know the X communication technology used for > that), which is actually what gnome-panel-control does. I'll get to that > eventually; in the meantime you'll need to install openbox to get the > command-line utility. > >> 2. Adding gnome + awesome in to display managers (gdm, kdm, xdm, slim >> ...) menu (like bluetile do) > > I've no idea how to do that yet. > Investigations and pointers are welcome. I'm attaching a patch which integrate gdm at least with this applet. It adds an 'gnome + awesome' entry in its menu, with a description awesome ² window manager. I'm sure this is not most appropiate, so any suggestion is ok
I don't know if this list is the appropiate to do that, or if we would have to change to another address. Please tell me if I'm in the wrong list. This patch includes 2 news files, I'm not sure if it is fine to start awesome + gnome how I do in gnome-awesome-session file. The change in config.local I think is not necessary I didn't know if create a new directory or is ok dropping files in root of source package, so modify it like you want (if you accept this patch) Thanks !
diff --git a/Makefile.config.in b/Makefile.config.in index 6b5aabb..d06b278 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -3,3 +3,4 @@ bonobod...@bonobodir@ luad...@luadir@ pixmapsd...@pixmapsdir@ resourcesd...@resourcesdir@ +xsessionsd...@xsessionsdir@ diff --git a/Makefile.dev b/Makefile.dev index 94df307..ab13d9d 100644 --- a/Makefile.dev +++ b/Makefile.dev @@ -9,7 +9,10 @@ install: install -m 0755 -d $(DESTDIR)$(LUADIR) install -m 0755 -d $(DESTDIR)$(PIXMAPSDIR) install -m 0755 -d $(DESTDIR)$(RESOURCESDIR) + install -m 0755 -d $(DESTDIR)$(XSESSIONSDIR) install -m 0644 gnome-awesome-applet $(DESTDIR)$(BINDIR) + install -m 0644 gnome-awesome-session $(DESTDIR)$(BINDIR) + install -m 0644 gnome-awesome.desktop $(DESTDIR)$(XSESSIONSDIR) install -m 0644 AwesomeApplet.server $(DESTDIR)$(BONOBODIR) install -m 0644 images/*.png $(DESTDIR)$(PIXMAPSDIR) install -m 0644 data/* $(DESTDIR)$(RESOURCESDIR) diff --git a/awesomeapplet/config.py.in b/awesomeapplet/config.py.in index da3c0fe..5be7a2e 100644 --- a/awesomeapplet/config.py.in +++ b/awesomeapplet/config.py.in @@ -29,6 +29,7 @@ LAYOUT_DIR = '@LAYOUTDIR@' LUA_DIR = '@LUADIR@' PIXMAPS_DIR = '@PIXMAPSDIR@' RESOURCES_DIR = '@RESOURCESDIR@' +XSESSIONS_DIR = '@XSESSIONSDIR@' MENU_PATH = path.join(RESOURCES_DIR, 'AwesomeApplet.xml') GLADE_PATH = path.join(RESOURCES_DIR, 'awesome-applet.glade') diff --git a/config.local b/config.local index 8e68049..b61cf82 100755 --- a/config.local +++ b/config.local @@ -6,4 +6,5 @@ NULL="" --with-bindir=`pwd` \ --with-resourcesdir=`pwd`/data \ --with-pixmapsdir=`pwd`/images \ + --with-xsessionsdir=`pwd` \ $NULL diff --git a/configure.ac b/configure.ac index 7f25a53..e27debc 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,12 @@ AC_ARG_WITH(layoutdir, [LAYOUTDIR=/usr/share/awesome/themes/default/layouts]) AC_SUBST(LAYOUTDIR) +AC_ARG_WITH(xsessionsdir, + [where desktop files for xsessions live], + [XSESSIONSDIR=$withval], + [XSESSIONSDIR=/usr/share/xsessions]) +AC_SUBST(XSESSIONSDIR) + AC_CONFIG_FILES([ AwesomeApplet.server Makefile.config diff --git a/debian/changelog b/debian/changelog index 39e0814..90688c1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +gnome-awesome-applet (0.0.1-1~dev1.1) unstable; urgency=low + + * Non-maintainer upload. + * Added to xsessions list + + -- Javier Barroso <[email protected]> Thu, 18 Nov 2010 00:31:16 +0100 + gnome-awesome-applet (0.0.1-1~dev1) unstable; urgency=low * Initial release diff --git a/setup.py b/setup.py index 398e738..a6d6040 100644 --- a/setup.py +++ b/setup.py @@ -12,12 +12,14 @@ setup(name=config.PACKAGE, download_url='http://git.upsilon.cc/cgi-bin/gitweb.cgi?p=gnome-awesome-applet.git', license='GNU General Public License, version 3 or above', packages=['awesomeapplet'], - data_files=[(config.BIN_DIR, ['gnome-awesome-applet']), + data_files=[(config.BIN_DIR, ['gnome-awesome-applet', + 'gnome-awesome-session']), (config.BONOBO_DIR, ['AwesomeApplet.server']), (config.PIXMAPS_DIR, ['images/gnome-awesome-applet.png']), (config.RESOURCES_DIR, ['data/awesome-applet.glade', 'data/AwesomeApplet.xml']), - (config.LUA_DIR, ['lua/gnome-applet.lua']) + (config.LUA_DIR, ['lua/gnome-applet.lua']), + (config.XSESSIONS_DIR, ['gnome-awesome.desktop']) ], requires=['dbus','gtk', 'gtk.glade', 'gnomeapplet'] )
