Peter John Hartman | 1 Oct 2011 16:13
Picon
Gravatar

Re: vertical patch (prototype)

Hi Rafa,

I had a free moment and I tore out the token code from dmenu tip and put it
in slmenu.  Here is the patch (ignore a couple lines thta fix the clear
screen):

diff -r 7896c4e3bf21 slmenu.c
--- a/slmenu.c	Thu Sep 29 12:45:34 2011 +0200
+++ b/slmenu.c	Sat Oct 01 10:11:29 2011 -0400
 <at>  <at>  -36,7 +36,7  <at>  <at> 
 static void   drawmenu(void);
 static char  *fstrstr(const char*, const char*);
 static void   insert(const char*, ssize_t);
-static void   match(int);
+static void   match(void); 
 static size_t nextrune(int);
 static void   readstdin(void);
 static int    run(void);
 <at>  <at>  -60,10 +60,10  <at>  <at> 

 void
 appenditem(Item *item, Item **list, Item **last) {
-	if(!*last)
+	if(*last)
+		(*last)->right = item;
+	else
 		*list = item;
-	else
-		(*last)->right = item;
 	item->left = *last;
(Continue reading)

Kiriakos at Kindstudios | 1 Oct 2011 20:55
Picon
Favicon
Gravatar

Make dmenu sensitive to user aliases ("Hello world")

Hi there,

I'm using many aliases in my terminal sessions and want to be able to use  
them with dmenu
(which I use as the default menu in all of my xmonad installations) aswell.

Is that possible? I haven't gotten a real chance to look at the code yet  
(just downloaded it).
I'm a total noob when it comes to actually modifying C sources so I  
thought that I should
fire off a request in the offchance somebody has already done that or can  
point in the right
direction.

regards,
Kiriakos

Rob | 1 Oct 2011 21:46
Picon

Re: Make dmenu sensitive to user aliases ("Hello world")

On 1 October 2011 19:55, Kiriakos at Kindstudios <kappa <at> kindstudios.gr> wrote:
> I'm using many aliases in my terminal sessions and want to be able to use
> them with dmenu

Just a guess - in dmenu_run, source the file that defines your aliases,
before doing anything else.

Rob

Ethan Grammatikidis | 2 Oct 2011 23:52

Re: Make dmenu sensitive to user aliases ("Hello world")

On Sat, 01 Oct 2011 21:55:56 +0300
"Kiriakos at Kindstudios" <kappa <at> kindstudios.gr> wrote:

> Hi there,
> 
> I'm using many aliases in my terminal sessions and want to be able to use  
> them with dmenu
> (which I use as the default menu in all of my xmonad installations) aswell.
> 
> Is that possible? I haven't gotten a real chance to look at the code yet  
> (just downloaded it).
> I'm a total noob when it comes to actually modifying C sources so I  
> thought that I should
> fire off a request in the offchance somebody has already done that or can  
> point in the right
> direction.

I'm using scripts where I once used aliases, mostly because it's far
more convenient to write or alter a script than to update an alias or
function in all my open terminals. These scripts, like aliases, are
only run interactively so there's no slowdown to be seen at all.
Obviously, they'd work natively with dmenu.

On another note entirely, would you mind not wraping your text so wide,
please? My eyes aren't too good so I use larger text, and anything
wrapped over about 75-80 columns double-wraps which is unpleasant to
read. It's not just you, there's quite a few people wrapping their
emails too wide.

(Continue reading)

Patrick Haller | 3 Oct 2011 02:05

Re: Make dmenu sensitive to user aliases ("Hello world")

On 2011-10-02 22:52, Ethan Grammatikidis wrote:
> On Sat, 01 Oct 2011 21:55:56 +0300
> "Kiriakos at Kindstudios" <kappa <at> kindstudios.gr> wrote:
>
> > Hi there,
> >
> > I'm using many aliases in my terminal sessions and want to be able to use
> > them with dmenu
> > (which I use as the default menu in all of my xmonad installations) aswell.
> >
> > Is that possible? I haven't gotten a real chance to look at the code yet
> > (just downloaded it).
> > I'm a total noob when it comes to actually modifying C sources so I
> > thought that I should
> > fire off a request in the offchance somebody has already done that or can
> > point in the right
> > direction.
>
> I'm using scripts where I once used aliases, mostly because it's far
> more convenient to write or alter a script than to update an alias or
> function in all my open terminals.

??? something like?

update_config() { [ `mtime $cfg` -gt `mtime $history` ] && . $cfg ; }
export PS1='`update_config`> '

Patrick

(Continue reading)

Ethan Grammatikidis | 3 Oct 2011 05:44

Re: Make dmenu sensitive to user aliases ("Hello world")

On Mon, 3 Oct 2011 08:05:26 +0800
Patrick Haller <201009-suckless <at> haller.ws> wrote:

> On 2011-10-02 22:52, Ethan Grammatikidis wrote:
> > On Sat, 01 Oct 2011 21:55:56 +0300
> > "Kiriakos at Kindstudios" <kappa <at> kindstudios.gr> wrote:
> >
> > > Hi there,
> > >
> > > I'm using many aliases in my terminal sessions and want to be able to use
> > > them with dmenu
> > > (which I use as the default menu in all of my xmonad installations) aswell.
> > >
> > > Is that possible? I haven't gotten a real chance to look at the code yet
> > > (just downloaded it).
> > > I'm a total noob when it comes to actually modifying C sources so I
> > > thought that I should
> > > fire off a request in the offchance somebody has already done that or can
> > > point in the right
> > > direction.
> >
> > I'm using scripts where I once used aliases, mostly because it's far
> > more convenient to write or alter a script than to update an alias or
> > function in all my open terminals.
> 
> ??? something like?
> 
> update_config() { [ `mtime $cfg` -gt `mtime $history` ] && . $cfg ; }
> export PS1='`update_config`> '

(Continue reading)

Al Gest | 3 Oct 2011 07:13
Picon
Gravatar

Re: wmpus - a new cross platform wm

> The GPL is generally my preferred license, but lets not get into that
> argument now. However, I could probably be convinced to switch to a
> permissive license for this particular program. Would the ISC license
> work for you?

Revised BSD, ISC, and MIT licenses are all suckless in my book, or as
suckless as they can be without being public domain. So to answer your
question, yes.

Yue Wu | 3 Oct 2011 09:02
Picon

Re: wmpus - a new cross platform wm

On Fri, Sep 30, 2011 at 07:23:25AM +0000, Andy Spencer wrote:
> Hello there, 
> 
> I would like to point out a project I've started on for *yet another*
> new window manager, called `wmpus' [1]. It's not actually a suckless
> project, but I thought some folks here might be interested nonetheless.
> 
> The biggest feature is that it should be portable and work well with
> different windowing systems. Besides that, it should support a variety
> of window management modes, be easy to hack, and lay golden eggs.
> 
> Until now, I've been focusing on getting it to actually manage windows,
> so many features are completely missing: There's currently no support
> for settings or configuration files, no statusbar, very minimal window
> decorations, lots of memory leaks, no `make install' rule, etc.
> 
> That being said, here's what does work:
> 
>  - Runs natively on X11 and MS Windows
>  
>  - Tiling window management similar to acme or wmii. That is, rows,
>    columns, split/stack/max modes, multi-monitor support, limited
>    support for tags
> 
>  - Support for some external statusbars such as dzen [2]
> 
> Any feedback will be appreciated. It should be easy enough to build for
> X11 and there's a windows binary linked from the wiki for anyone brave
> enough to try it out.
> 
(Continue reading)

Andy Spencer | 3 Oct 2011 11:14
Picon

Re: wmpus - a new cross platform wm

On 2011-10-03 15:01, Yue Wu wrote:
> No any doc about how to use it...

There is now a simple man page in the source repository, and a copy of
it on the wiki, hope that helps.

> And I feel some slow down when moving the window on windows 2000.

I have not tested it with windows 2000. I did notice some significant
slow downs on windows xp though, but those have hopefully been fixed.
You might try a couple different versions of the exe to see if it is an
issue with all of them.
Andy Spencer | 3 Oct 2011 11:15
Picon

Re: wmpus - a new cross platform wm

On 2011-10-03 06:13, Al Gest wrote:
> > The GPL is generally my preferred license, but lets not get into that
> > argument now. However, I could probably be convinced to switch to a
> > permissive license for this particular program. Would the ISC license
> > work for you?
> 
> Revised BSD, ISC, and MIT licenses are all suckless in my book, or as
> suckless as they can be without being public domain. So to answer your
> question, yes.

For the record, it's been changed to the ISC license.

Gmane