Page 30 of 44

Posted: Thu 23 Feb 2012, 18:48
by goingnuts
Aitch wrote:goingnuts/techno

I just came across a window manager called awesome

Any use for this project? it uses C and Lua, AFAIK

http://awesome.naquadah.org/

Aitch :)
Thanks for the link - I will look into that. atm I am full time on gtkdlg1...

Posted: Thu 23 Feb 2012, 23:10
by technosaurus
I wouldn't bother
128 pkg_check_modules(AWESOME_COMMON_REQUIRED REQUIRED
129 xcb>=1.6)
130
131 pkg_check_modules(AWESOME_REQUIRED REQUIRED
132 glib-2.0
133 cairo
134 x11
135 oocairo
136 oopango
137 xcb-randr
138 xcb-xtest
139 xcb-xinerama
140 xcb-util>=0.3.8
141 xcb-keysyms>=0.3.4
142 xcb-icccm>=0.3.8
143 xcb-image>=0.3.0
144 cairo-xcb
145 libstartup-notification-1.0>=0.10
146 xproto>=7.0.15
147 imlib2
148 libxdg-basedir>=1.0.0)
with dependencies like that we may as well use compiz and lots of plugins

e16 would be a much nicer (smaller/simpler) choice, it uses its own eesh instead of lua and it has a more permissive license, a lot of the tools will work with gtk1 and I even found a hack to do desktop icons with it ... best of all it can look really nice with the right themes
though it will need to be patched for static builds because it uses dlopen to try and grab calls to libX11 (doesn't seem too complicated though)

...until someone makes "fpwm" that is ... a window manager in the style of a first person shooter (i've been mulling it over for a while)

Posted: Thu 23 Feb 2012, 23:46
by Aitch
a window manager in the style of a first person shooter
sounds neat

thanks for checking the other wm - shame about that

Aitch :)

Another window manager...

Posted: Fri 24 Feb 2012, 23:38
by Keef
I found this one on Giles Orr's window manager site:
AHWM
It hasn't been touched in 10 years, but has a lot of documentation, and only relies on xlib, libc and some POSIX functions, Does not rely on any toolkit libraries.
It compiles ok, but had to make the minor alterations that Giles Orr mentions in his notes.
It is ancient, I know, but may be useful.
I'll upload the pet I made if anyone wants a dabble (best if I tested it a bit more first...)

Posted: Sat 25 Feb 2012, 16:47
by Aitch
Wow, Giles Orr's site is amazing, hadn't seen that before....

AHWM looks interesting, Keef :D

I'd never considered focus to be broken, though it may have changed since 2002?
I'm just used to windows auto focus if on top, and backgrounded windows being in bottom taskbar, unless clicked in - maybe just habits?

Aitch :)

Posted: Sat 25 Feb 2012, 17:38
by technosaurus
for the ultra-minimalist window managers, I already posted mcwm (though it is a bit outdated now), its by far the lightest when statically compiled due to using xcb instead of X11 (X11 doesn't statically link well though tinyx11 gets us a bit closer)... and it has an ISC license ... some others xcb window managers are i3, uuwm, uwm (based on jwm) there is even a composite manager called unagi

Edit:
several pages back we were trying to find a way to use a running instance of a multicall binary to run new "applets" rather than spawning a whole new instance (the way ROX-Filer does) I think we had everything except the mechanism to get new args into the running process. ---Solved (I think, see the notes on apipe).

Code: Select all

#include <stdio.h>

void argsfromstdin(void){	/* TODO accept a function pointer to run ac, av */
char s[255],  av[255][255];
unsigned char i=0, pos=0, ac=0;
enum quotes_t{QUOTED=0,UNQUOTED}quotes=UNQUOTED;

//open a file ./apipe and store its file descriptor in variable apipe
//use mkfifo /tmp/apipe to create it ... or you can use stdin
//FILE * apipe = fopen("/tmp/apipe","r");;
fgets(s,255,stdin);

while (i<strlen(s)) {
	/* '!'=33, 'ÿ'=-1, '¡'=-95 outside of these are non-printables */
	if ( quotes && ((s[i] < 33) && (s[i] > -1) || (s[i] < -95))){ 
		av[ac][pos] = '\0';
		if (av[ac][0] != '\0')	ac++;
		pos = 0;
	}else{
		if (s[i]=='"'){  /* support quoted strings */
			if (pos==0){
				quotes=QUOTED;
			}else{		/* support \" within strings */
				if (s[i-1]=='\\'){
					av[ac][pos-1] = '"';
				}else{	/* end of quoted string */
					quotes=UNQUOTED;
				}
			}
		}else{			/* printable ascii characters */
			av[ac][pos] = s[i];
			pos++;
		}
	}
	i++;
}
/* TODO accept a function pointer to run ac, av */
#ifdef DEBUG
#include <string.h>
#define write1(s) write(1, s, strlen(s))
while (ac-->0) {write1(av[ac]);write1("\n");}
#endif

}

int main(int argc, char *argv[]){
argsfromstdin();
}

Posted: Sun 04 Mar 2012, 08:43
by goingnuts
technosaurus: Had not seen your update - would be cool if it works!

The latest post about window managers reminded me that I had a static build of conky lying around.

Also found that gxine-0.2.1 is gtk1..now I only need to get a static uclibc xinelib build... :roll:

Posted: Wed 14 Mar 2012, 16:44
by PANZERKOPF
About GetGUI:
I modified somewhat, now it can recognize Dialog/Xdialog syntax and following
options:
--title
--backtitle
--ok-label
--yes-label
--cancel-label
--no-label
--no-cancel
--default-item
--password
--msgbox
--inputbox
--yesno
--menu
--menubox
--radiolist
--checklist
--combobox
--fselect
Getgui's native options are not broken (I hope). Some default values are changed for my own needs (default fonts, button color etc..).
Also, a program name is changed to "xgetgui" to avoid copiright conflicts.

Posted: Wed 14 Mar 2012, 20:49
by technosaurus
PANZERKOPF wrote:About GetGUI:
I modified somewhat, now it can recognize Dialog/Xdialog syntax and
...
Getgui's native options are not broken (I hope). Some default values are changed for my own needs (default fonts, button color etc..).
Also, a program name is changed to "xgetgui" to avoid copiright conflicts.
I went through and fixed most of the syntactical build errors, and tweaked the font and border settings so it isn't so fugly. Still needs a lot of cleanup though ... mainly how the functions and variables are declared... also made a build script.

Edit @PANZERKOPF, btw most of the fixes were not your code - just legacy stuff and from ripping chunks out of ploticus ... also I added the list of widgets to the --help (though I didn't put any order to them or descriptions or formatting)

Posted: Fri 16 Mar 2012, 19:13
by goingnuts
PANZERKOPF: Really nice! If only we could add scrolling to the menu and file select windows it would be close to perfect. I did try to contact the developer about this but never got any contact...

Posted: Sat 17 Mar 2012, 12:36
by PANZERKOPF
technosaurus wrote: I went through and fixed most of the syntactical build errors, and tweaked the font and border settings so it isn't so fugly. Still needs a lot of cleanup though ... mainly how the functions and variables are declared... also made a build script.
Edit @PANZERKOPF, btw most of the fixes were not your code - just legacy stuff and from ripping chunks out of ploticus ... also I added the list of widgets to the --help (though I didn't put any order to them or descriptions or formatting)
Thanks!
goingnuts wrote:PANZERKOPF: If only we could add scrolling to the menu and file select windows it would be close to perfect.
I agree but seems this is not possible without completely rewriting an internal toolkit.
Unfortunately I have poor experience with X toolkits :(
P.S.
Another crazy idea about GTK1:
It is possible to make it UTF compliant or that is same as reinventing a wheel?
This idea was born when I found a clone of Athena Widget: Xaw3Dxft.
It supports UTF and Xft so If someone can improve Athena, why another one can't improve gtk1?

Posted: Sat 17 Mar 2012, 19:55
by technosaurus
PANZERKOPF wrote:...
Another crazy idea about GTK1:
It is possible to make it UTF compliant or that is same as reinventing a wheel?
This idea was born when I found a clone of Athena Widget: Xaw3Dxft.
It supports UTF and Xft so If someone can improve Athena, why another one can't improve gtk1?
Gtk-xcb fits the bill (the one on sourceforge, not the one in gtk's git tree). It was forked right before the cairo dependency and uses xcb as the backend (will need updated for newer versions though). Ideally I would like to update it to work with pango-1.24.5 and latest xcb libs, and add maybe some widgets/functions.

Take a look at tinycore

Posted: Wed 04 Apr 2012, 12:03
by justauser
If you are looking for interesting ideas about a minimalist distribution take a look at tinycore


http://distro.ibiblio.org/tinycorelinux/welcome.html


[/url]

Re: Take a look at tinycore

Posted: Wed 04 Apr 2012, 13:59
by nooby
justauser wrote:If you are looking for interesting ideas about a minimalist distribution take a look at tinycore

http://distro.ibiblio.org/tinycorelinux/welcome.html
I know too little but I would be surprised if these two ahve the same goal?
Goingnuts will know though.

Re: Take a look at tinycore

Posted: Wed 04 Apr 2012, 18:35
by goingnuts
justauser wrote:If you are looking for interesting ideas about a minimalist distribution take a look at tinycore
Thanks...I haven't followed too close the development of TC since I made this special version of pUPnGO: pUPnGO_V412_080211.iso running TC as topping. TC definitely is an interesting distro...but sort of lost interests after spending a short time on their forum...

Posted: Thu 05 Apr 2012, 00:31
by technosaurus
Ditto on the toxic-caustic forum... That is what TC stands for right? I once had several hundred posts, but the constant mis-moderation convinced me it was as much of a lost cause as DSL (the main dev's former project), so I made sure to post all my relevant topics here (before removing all of my posts there). Tcl also stopped being simple a long time ago ... Puppy too, but I know puppy and like simple... so I try to make it simpler... Pupngo was already simpler, so I help out here when I can and the other more spotlight oriented devs cherry-pick from here and it slowly filters into mainline (not all, by any means... my init/xinit combo written in c is way oversimplified for a "standard" linux desktop but gets a basic gtk1 desktop in a 2mb kernel image). We test out these insane "impossible" ideas where experts would say it can't be done... It's a good thing we aren't "experts".

Re: Take a look at tinycore

Posted: Fri 06 Apr 2012, 12:57
by L18L
justauser wrote:If you are looking for interesting ideas about a minimalist distribution take a look at tinycore


http://distro.ibiblio.org/tinycorelinux/welcome.html


[/url]
Did take a look back too ... :shock:
i understand that not worth powder and shot
quoted from
http://forum.tinycorelinux.net/index.ph ... l#msg71186 :)

Posted: Sat 07 Apr 2012, 20:26
by greengeek
technosaurus wrote: other more spotlight oriented devs cherry-pick from here and it slowly filters into mainline (not all, by any means.... We test out these insane "impossible" ideas where experts would say it can't be done... It's a good thing we aren't "experts".
It is fascinating watching what you guys have been doing. I am glad you are happy to be in the engine room, and that you have stuck with Puppy. It is so annoying when some projects get overtaken by "ego", but that isn't happening here. Watching these posts is like taking a peek into the inventors back shed. Thanks.

Posted: Sun 08 Apr 2012, 08:01
by Aitch
Watching these posts is like taking a peek into the inventors back shed. Thanks.
Aye to that...my sentiments entirely....great stuff, I'm an avid reader! :D

Aitch :)

Posted: Sun 08 Apr 2012, 17:12
by goingnuts
Did take a look back too ...
:) ...They have "Hero Member"´s too - did not find any heroine there though :wink:

Ohh and that wbar - looks so cool - even began to build a static version - starting with imlib2 and then remembered why I did not succeed in the past: wbar is cc/c+ or whatever. :cry:

But found another Easter-time-killer: beaver - quite mature editor with some syntax highlight and more modern mouse response that the gtk-version of mp. Attached a static build of beaver - only had to disable a font-style-setting to avoid segfaults in the static build bin.