Cosmo UI for Puppy Linux

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

Cosmo UI for Puppy Linux

#1 Post 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...
Last edited by puppyluvr on Thu 22 Nov 2012, 18:55, edited 9 times in total.

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

Smaller resolution..

#2 Post 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) ...
Last edited by puppyluvr on Tue 20 Nov 2012, 02:47, edited 12 times in total.
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
tubeguy
Posts: 1320
Joined: Sat 29 Aug 2009, 01:04
Location: Park Ridge IL USA
Contact:

#3 Post 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.
[b]Tahr Pup 6 on desktop, Lucid 3HD on lappie[/b]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#4 Post 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
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
tubeguy
Posts: 1320
Joined: Sat 29 Aug 2009, 01:04
Location: Park Ridge IL USA
Contact:

#5 Post by tubeguy »

FWIW it's Precise 5.4 not 5.4.1.
[b]Tahr Pup 6 on desktop, Lucid 3HD on lappie[/b]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#6 Post 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..
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#7 Post by Keef »

Just ran a quick test of the 1024x768 version on Akita Beta 13 and nothing has exploded yet. Restored desktop properly.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#8 Post 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
Puppy Linux Blog - contact me for access

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#9 Post 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

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#10 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#11 Post 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)
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
mikeybaby72
Posts: 27
Joined: Wed 10 Sep 2008, 12:52
Location: Sheffield, UK
Contact:

#12 Post 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:
Adopt a Puppy TODAY - they are Man's best friend! :D

Currently researching "Linux on Android project" - wanting to compile a Puppy to run in my hand on my Droid ... This has always been a dream of mine. ;-)

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#13 Post 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....
Attachments
Pwidgetsfix.pet
(509 Bytes) Downloaded 1334 times
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#14 Post 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...
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#15 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#16 Post 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...
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

kros54
Posts: 96
Joined: Sun 17 May 2009, 08:43
Location: member of Hungarian Puppy Linux Community
Contact:

#17 Post by kros54 »

A similar but a little different, MetroPuppy
http://www.murga-linux.com/puppy/viewtopic.php?t=77351

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#18 Post 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
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

flamehazeshana13
Posts: 6
Joined: Sat 12 Jan 2013, 00:04

Cool

#19 Post 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

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#20 Post 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???
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

Post Reply