NuckChorris / assault

A simple customizable battery indicator ported to as many WMs, docks, and platforms as possible.
MIT License
36 stars 8 forks source link

Port to Gnomie Shell #10

Open passcod opened 11 years ago

passcod commented 11 years ago

Gnome-shell, Gnome3, other-gnome-shell-based-things... I want 'em all

ghost commented 11 years ago

Holy fuck, it's GNOME, not "the gnommies".

Gnome-shell is difficult, because it's JS, and there's no native code support as far as I know (apart from GIR, but that's Gnome libraries >_>). Gnome2 is easier, but I'm sure there's not really anyone who's still using that. It's something to look into, anyway.

NuckChorris commented 11 years ago

Have you ever been to vietgnome, boy?

Anyways, I can port it to GNOME3 assuming two conditions: (1) filesystem access (2) canvas or cairo icon drawing

If either of these is missing, it's basically impossible. However, there will be a GTK3 StatusIcon app (soon) which will provide this (sans basically all size options)

ghost commented 11 years ago

There's no Cairo. Which is butts. Because GNOME3 extensions don't get actual GTK shit n_n

NuckChorris commented 11 years ago

GTK is fuckin' hard, man. I don't blame them. Anyways, there might be Canvas access or some other form of drawing system. Honestly, HTML5 canvas is just a JS clone of Cairo.

EDIT: Fixed the title. Fuckin' Gnommies.

ghost commented 11 years ago

There's St, which is some other drawing thing. I should really read the docs for that.

NuckChorris commented 11 years ago

The fuck is St? Looks like some Widget toolkit. Anyways, it has StDrawingArea which appears to just be Cairo.

ghost commented 11 years ago

Fucking knew I should read the docs. But okay, that makes things easier...

NuckChorris commented 11 years ago

Quite easier. What language does St bind to? — Sent from Mailbox for iPhone

On Sun, Jun 23, 2013 at 6:31 PM, Aki Jenkinson notifications@github.com wrote:

Fucking knew I should read the docs. But okay, that makes things easier...

Reply to this email directly or view it on GitHub: https://github.com/NuckChorris/assault/issues/10#issuecomment-19885393

ghost commented 11 years ago

St is C-bound but using GIR you can call it from in JS. Or something. All the docs are for C, as is the rest of the GNOME suite

NuckChorris commented 11 years ago

That's awful cryptic. I just hope it works.

ghost commented 11 years ago

I'll shove GNOME3 in a container when I get home and actually play with it. See whether I can call out to C libraries or whether I'm doing this entire thing in JS n_n

ghost commented 11 years ago

So, this doesn't look too bad.

NuckChorris commented 11 years ago

If you wanna do this, assign yourself, otherwise I'll add it to my work queue. (JS is one of my areas of expertise, mind you)

ghost commented 11 years ago

I'll leave it to the expert ;)