Page 1 of 2

Cosmo UI for Puppy Linux

Posted: Mon 19 Nov 2012, 00:23
by puppyluvr
:D Hello,
Introducing CosmoUI for Puppy.
1366x768
Image
800x600
Image
"Metro" Style interface for Puppy Linux.
Uses Gtk and Conky and acpi for info..
The pet is 473k ~ 980k installed.
( I like to keep things below 1mb :wink: )
The gtk buttons call default puppy programs..
Uses desktop-restore to return the setup to what it was before when closed...
Also installs a Win-8-black background.
After installing the pet, click the "Cosmo" icon in /root :arrow:
Ssee second post for pets as I build them...

Setups for various resolutions.
At too low a resolution, the display goes off the right side of the screen, leaving
no "Exit" button.. Simply go to /root and right click the "Cosmo" icon, choose "look inside", and click "kill"
to reset your desktop. More resolutions coming..
Also for conky to work, Puppy must have glibc-2.7 or better, so 3 series is a no go.
I have not tried 214x yet, but IIRC it has glibc-2.8 so should work.

Testers wanted...
Tested on:
Lupu/Precise/Squeeze/Puppy/ bases..

So far my testing finds Carolina and some other xfce pups dont co-operate.. :?
Also PupControl only works if you have it.
Also, the second "messaging icon is supposed to be "weather" .. :oops:
Just a testing run to expand its "generic-ness"
Will dial in the interface cosmetics along the way, IE the 5 conky windows, maybe a 4th row...
Eventually a "User Installed" area..
Alpha only.. Just for testers... 8)

@ these are only alpha tests for resolution, the finished CosmoUI will be 1.0 and will include a GUI to select resolutions, programs, icons, etc.. These do not link into the path, and hence run as basically "orphaned" unkillable processes.. Purely for testing ATM.. Much unfinished work to do on the scripts, etc..The final will run properly, and die properly.. :roll:
If you want,

Code: Select all

ln /root/Cosmo/Cosmo /root/my-applications/bin/Cosmo
and

Code: Select all

ln /root/Cosmo/Cosmo2 /root/my-applications/bin/Cosmo2
to link it into the path, like it eventually will be...

Smaller resolution..

Posted: Mon 19 Nov 2012, 00:27
by puppyluvr
ore to come...:D Hello,
Introducing "CosmoUI-small".
Setup for 1024x768..
Testers wanted...
If you have already installed the "large" version, uninstall it or delete /root/conky before installing the "small" version..

Also "Cosmo-1440x900" For that resolution...
Still working on 1280x and the x600 ones..
Every resolution requires a complete rebuild, as it is not scalable...

Edit... The first 1440x900 pet was missing a directory.. :oops:
Fixed, and added an 800x600... :arrow:
Edit2 Fixed 800x600 and re U/L.. LOL..
As I edit the various sizes, they will move to the top of the list... 8) ...

Posted: Mon 19 Nov 2012, 01:31
by tubeguy
I like what the Facebook link does. :D

Installed on my Precise setup:

before
after

Exiting caused x-server to restart and everything was reset as promised. It doesn't look like yours but my resolution is 1280x1024.

Posted: Mon 19 Nov 2012, 01:37
by puppyluvr
:D Hello,
No, I think gtkdialog.. I`m using offsets to place the buttons, and on your Precise, it stayed at "0"
But good to know it reset properly.. That was a big issue for me.. Will D/L the latest Precise, and see why.. Thank you.. :D

Posted: Mon 19 Nov 2012, 01:39
by tubeguy
FWIW it's Precise 5.4 not 5.4.1.

Posted: Mon 19 Nov 2012, 09:07
by puppyluvr
:D Hello,
@Tubeguy,
Tested it on a fresh Precise 5.4 and worked perfectly at 1366.
At 1280 the icons go off screen to the right, but were located properly.
Still testing..

Posted: Mon 19 Nov 2012, 20:36
by Keef
Just ran a quick test of the 1024x768 version on Akita Beta 13 and nothing has exploded yet. Restored desktop properly.

Posted: Mon 19 Nov 2012, 21:01
by 01micko
Jay

For transparency you may want to take a look here. akash_rawal's app works well. Woops.. :oops: .. you've already been there.. did you try it?


Cheers

Posted: Tue 20 Nov 2012, 15:50
by oldyeller
Hi puppyluvr,

downloaded last night and looks good.

Have you thought about doing a config file so that people can change the background and apps?

Cheers

Posted: Tue 20 Nov 2012, 17:33
by SFR
puppyluvr wrote:Testers wanted...
Slacko-5.3.3-4g, CosmoUI-1366x768.pet, so far so good, really like it!

Small issues:
1.Calendar button points to /root/noob/files/calen
2.conky.conf.6:
In the eth0 part there are two (font... instead of {font... what causes wrong display.
3. I don't know if it's just me, but wallpaper doesn't appear.
I have to do it manually via xli -onroot -fillscreen /usr/share/backgrounds/black_windows_8.png

It was very good idea to create and link "Computer" icon with Pmount, now our dear Windoze refugees (I'm one of them, actually) will feel more like home. :wink:

Suggestion:
How about keeping all buttons beneath regular windows, on Conky level?
I just compiled wmctrl (only 74K) and

Code: Select all

wmctrl -r "window_name" -b add,below
will send and keep the window down below.
http://tomas.styblo.name/wmctrl/#download

BTW, thanks for:
skip_taskbar_hint="true"
I was looking for this once!

Keep it up &
Greetings!

Posted: Wed 21 Nov 2012, 03:50
by puppyluvr
:D Hello,
@oldyeller,
Yes, a config for apps is in the works..
Remember, this calls defaults, so whatever you set with the "default chooser" will launch..
So for example, to assign the "messaging" button to launch Skype, set Skype as "default chat".. :wink:
Background is set by WM IE this doesnt set the BG, cause it looks cool over different BG`s and I didnt want to force any one..
Eventually, a resolution config will allow "1 pet for all" but since scaling is out, it will take a bit of scripting variables..

@01micko,
Still playing with that.. Looks promising, but aint got it working for me properly yet...

@SFR,
Calendar button points to /root/noob/files/calen
:oops:
Forgot that one....
In the eth0 part there are two (font... instead of {font... what causes wrong display.
:oops:
Will fix that asap...
wallpaper doesn't appear.
I have to do it manually via xli -onroot -fillscreen /usr/share/backgrounds/black_windows_8.png
It isnt supposed to set it... Didnt want to force it to just the one, when so many look so cool with it... 8)
It was very good idea to create and link "Computer" icon with Pmount, now our dear Windoze refugees (I'm one of them, actually) will feel more like home
Thank you, that was the exact intention.. "My Computer" etc...
How about keeping all buttons beneath regular windows, on Conky level?
Good point, hadnt considered that.. Will check out your link..
But may just try

Code: Select all

gtk_window_set_keep_below
for that...
BTW, thanks for:
skip_taskbar_hint="true"
I was looking for this once!
You`re welcome, it was necessary, as otherwise it showed 2 tasks when it ran..
Hard part was locating the buttons...
These two do the magic, took a bit to figure out...

Code: Select all

RIGHT=25 DOWN=210= WIDTH=1290 HEIGHT=128 # define location variables 
 gtkdialog3 --program Cosmo -G ${1-${WIDTH}x${HEIGHT}+${RIGHT}+${DOWN}}
Thank you for the detailed feedback, it is incredibly helpful..
Stare at some code for hours on end, and it gets easy to miss things like those above...
BTW I couldnt get "xli -onroot -fillscreen /usr/share/backgrounds/black_windows_8.png[" to work for me..
Could use that on another project...
Updates/improvements in the works...
Still working on the "slideshow" in a button effect..

Thanks for testing... :D

@tubeguy,
before
after

Yep, it was the offsets, different resolutions are picky about it.. Try the 1024x768 for me, if you can..
I cant force 1280 on this box, but will fire up a few others and see if I can get that res on one..
I have to configure it in the resolution in question, for the button/conky spacing to work out right...
Height matters as well, because gtk and conky are offset differently.. However, I just discovered that I may be able to make gtk offset the same as conky, which would require a total rewrite, but would make the gtk and conky elements line up properly regardless of WM height...

Again, thanks guys!! :)
More to come... Also a lcars based "Star Trek" UI is still coming along, or will when I get back to it..
It uses conky/gtk/espeak and even talks... 8)

Posted: Wed 21 Nov 2012, 18:10
by mikeybaby72
Been watching this project with great interest - just tried it on my PortaPup 5.2.5 USB stick install and it looks pretty good to me!

I'm not at home right now so can't mess around with hardware so much right now.

It seems to have left a problem with my install of Pwidgets - they are still there but now have Conky boxes round them!!! :!:

How do I restore them to what they where and BTW I'll do my next lot of testing running in 'live' mode!!!! :oops:

Posted: Wed 21 Nov 2012, 22:24
by puppyluvr
:D Hello,
Exiting Cosmo should restore your desktop to its previous state..
But starting it again would do the same thing..
Umm.. Pwidgets... Shoulda thought of that..
Cosmo by default kills conky and restarts it...
The attached pet switches the AppRun script to one that doesnt..
It should leave Pwidgets alone, but will also leave your icons on screen..
Give it a try and let me know, as I have to install Pwidgets to test it, and aint got time ATM..
THX... Jay....

Posted: Sun 25 Nov 2012, 04:35
by puppyluvr
:D Hello,
Well, I cot sidetracked with the slideshow thing, but got it figured out.
Well, sort of.. I was able to get w gtk widget to refresh to a random image, but it was to much bs so I went back to conky, and it runs a slideshow great...
Next I am looking @ "hot corners" in jwm...

Posted: Sun 25 Nov 2012, 05:39
by musher0
Hi, gang.

Yikes! I can appreciate puppyluvr's technical feat, but you'll still have to pry me off my right-click menu with a BIG, huge, even colossal tire iron before I will even start considering to install "that" on my machine. :lol:

BFN.

Posted: Sun 25 Nov 2012, 19:31
by puppyluvr
:D Hello,
@musher0,
Cosmo doesnt do anything to your right click menu, your taskbar, or WM menu..
It just replaces, or adds to, your desktop icons.. Its just gtkdialog and conky...

Posted: Tue 27 Nov 2012, 05:40
by kros54
A similar but a little different, MetroPuppy
http://www.murga-linux.com/puppy/viewtopic.php?t=77351

Posted: Fri 07 Dec 2012, 02:15
by puppyluvr
:D Hello,
Yes, that is what inspired me...
But I wasnt happy with just a conky display, it had to be interactive, to be "clickable", and it had to have the slideshow function... 8)
BTW, this isnt finished by a long way, I just had to deal with "life", that stuff that interrupts our fun time...
The slideshow is done :D , the resolution adjuster is almost done.. :oops:
Still testing various WM`s and DE`s like xfce and compiz and enlightenment etc..
Many offshoots from this will appear, like a really cool Star Trek thing I have going, and a slideshow widget...
If only there were 12 days in a week, or 36 hr days... LOL

Cool

Posted: Sat 12 Jan 2013, 00:21
by flamehazeshana13
Looks good combined with Win8 Cursor Theme, XFWM Theme and GTK Theme..

Modified the script a little bit to change the applications like ROX to Thunar and btw I found a weird bug concerning the XFCE window manager
w/ compositing enabled. When I quit CosmoUI the screen gets filled with a solid color and I need to restart XFWM4 so the screen gets redrawn.
I don't know if others experience the same. I'm on Slacko 5.4 and Slacko 5.3.3

Anyways, Thanks :D

Posted: Sat 12 Jan 2013, 05:22
by puppyluvr
:D Hello,
Ironically, I`m running it ATM in Xfce4.
Image

Now I`m scared to shut it off.. :shock:
:D Naw, but I`m in Compiz so I wonder if that affects it, cause it dies fine for me.. Before I shut it off this time, I will enable everything I can think of, but Cairo-dock controls my composite stuff, so I will try changing it to Xfce and Compiz, and see if I can get it to happen..

When 'real life' allows, I have an update which allow the slideshow in the center above... But there is a Lua based Conky which allows 'clicks'.. :shock:
I have not got it to work for me yet, but have had little Puppy Time of late.. :cry:
But when I get it working, oh man, the possibilities......

I know our Forum Master, he who makes all this possible, is well versed in Lua... Maybe he could have a look???