Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Apr 2015, 15:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Desktop drive icons rendered using wbar, BoxPup style
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Tue 13 Jan 2015, 21:07    Post_subject:  Desktop drive icons rendered using wbar, BoxPup style
Sub_title: Version 0.0.8 Jan 23 2015, it now uses udevd
 

(Both taken on a 24" monitor)
screencap of desktop drive icons rendered using both rox and wbar (version 0.0.8 )
screencap of desktop drive icons rendered using only wbar (version 0.0.3)

note: Version 0.0.3 (supporting just wbar) works in Precise 5.7.1 but you must first install libimlib2 from PPM. Not sure yet why 0.0.8 (wbar + rox) doesn't work in Precise.

UPDATES:

UPDATE 2015-01-23: Version 0.0.8 incorporates the current-day style of hotplugging using udevd, rather than the old hotplug2stdout+shellscript-frontend_d way that I used up to version 0.0.7.

If no glaring errors appear, then starting with version 0.0.9 I will begin to add user settings to /usr/sbin/eventmanager, for usb-icons-to-the-right, volume labels, et cetera. Also, in order to understand this tangled code base, while learning my way through it I had to strip out many credits from these early versions, to condense it for maximum legibility. In version 0.0.9 I'll try to restore credit in the source code where credit is due.

If you want just wbar icons, Version 0.0.3 is probably better. Version 0.0.3 will work just fine provided you get rid of your Rox pinboard icons. If you keep them they will still work, but the status (mounted or not) will not update on them. It will however update on the wbar drive icons.

Choose Version 0.0.8 if you want both Rox pinboard icons and vbar (vertical wbar) icons. They peacefully coexist under 0.0.8.

Study resources:

new pup_event_frontend:
http://bkhome.org/blog2/?viewDetailed=00281
Puppy's InterProcess Communication, a description included with Quirky Unicorn at:
/usr/local/pup_event/pup_event_ipc-README.htm
Rewriting pup_event in C:
http://murga-linux.com/puppy/viewtopic.php?t=77398
pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6:
http://www.murga-linux.com/puppy/viewtopic.php?t=78881

***
VERSIONS HISTORY

--version 0.0.8, 2015-01-23
--1. upgraded to current Puppy / Quirky architectural framework using udevd.

--version 0.0.7, 2015-01-21
--1. fixed bug where boot indicator went missing from boot drive (I uploaded a version 0.0.6 with the fix strangely missing, uploaded version 0.0.7 a few hours later).
--2. fixed bug where usb drives were not getting usb icon.
--3. starting to examine the old code more closely now--correcting obsolete syntax, hunting for redundant code, et cetera.

--version 0.0.5, 2015-01-19.
--1. reverted to the Lupu-520 shellscripts as the basis of it all.
--2. Good synchronization between Rox icons and vbar (wbar) icons.
--3. skipped over version 0.0.4 (that was the first udevd-based attempt, it didn't pan out).

***
--version 0.0.3, 2015-01-17:
--1. Corrected line 350 of pup_event_frontend_d, to killall hotplug2stdout_notimeout instead of hotplug2stdout (which is never used).
--2. Added the ability to recognize f2fs partitions.

***
--version 0.0.2, 2015-01-13 19:40 PST:
--1. Added a line in /root/Startup/vstart to force rox to (re)load the pinboard before starting vbar. Changed the name of vstart to vbar-start.
--2. Added a startup program for wbar to go alongside vbar-start, in /root/Startup, in the case where you want to add wbar to an existing Puppy which also uses vbar. To do so, install wbar and then make the startup program executeable.

***
(original post:)

See http://murga-linux.com/puppy/viewtopic.php?p=820767#820767 and the next few posts after it, for screencaps.

This is my first .pet offering. Be nice.

This is an update of the slick feature offered in the various versions of BoxPup which appeared around the same time as Puppy 4, several years ago. This .pet changes the source from which Puppy renders the desktop drive icons, so that instead of rendering them from the Rox pinboard Puppy renders them instead using wbar from a wbar configuration file.

One big advantage of using wbar rather than the Rox pinboard to render the drive icons is neatness--the icons line up in a precise, neat row, and they stay put. Another advantage is the coolness factor of jump animation. Another advantage is, you can use smaller icons for the drives than for the rest of the desktop.

The .pet is about twice as big as it needs to be, because I have included both the Boxpup-421-retro and the Quirky Unicorn 6.21 versions of the scripts and other files which implement desktop drive icons. This is so that if something does not work right you can inspect the scripts side-by-side to see how things differ from the conventional way.

Most of the credit for this must go to mighty Puppy Forum member Gray, the originator of BoxPup, and to BarryK the founder of Puppy who wrote all these scripts in the first place. I'm just a fan here.

Alpha software, best effort but no responsibility, et cetera. Tested in unicornpup under jwm and in Quirky Unicorn under openbox. Under openbox, Obconf --> Windows --> Make new windows appear under the mouse pointer, works splendidly well with these vbar partition icons. The Rox window opens in exactly the place I wish it to.

Before you install this .pet, I recommend you back up your entire partition or psubdir to somewhere else, and have another Puppy ready to boot if things go awry.

Then, drag'n'drop all desktop icons you now have near the left edge of the screen, to someplace more than an inch away from the left side. It is OK to leave your existing drive icons on the screen, they can co-exist with the wbar icons. However, they might not update...hmm, I'll need to work on /etc/rc.d/functions4puppy4 to make that happen...

Then, install the .pet in the usual way (left-click on it) and then, after it's done installing, reboot (you must reboot, not merely restart X, so that the new functions4puppy4 file in /etc/rc.d gets properly installed).

Attaboys are welcome and criticisms will not necessarily draw snapping jaws!
unicorn-drive-icons-by-wbar-0.0.8.pet
Description  unicorn-drive-icons-by-wbar-0.0.8.pet (now uses udevd)
pet

 Download 
Filename  unicorn-drive-icons-by-wbar-0.0.8.pet 
Filesize  111.37 KB 
Downloaded  90 Time(s) 
unicorn-drive-icons-by-wbar-0.0.3.pet
Description  unicorn-drive-icons-by-wbar-0.0.3.pet (2nd try)
pet

 Download 
Filename  unicorn-drive-icons-by-wbar-0.0.3.pet 
Filesize  182.33 KB 
Downloaded  105 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Tue 13 Jan 2015, 23:45    Post_subject: unicorn-drive-icons-by-wbar version update to 0.0.2
Sub_title: This one forces the pinboard to be up before loading vbar
 

Version update to 0.0.2, see first post in this thread.
Back to top
View user's profile Send_private_message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Thu 15 Jan 2015, 06:33    Post_subject: a required edit to version 0.0.2 of my wbar-drive-icons .pet  

If you are using version 0.0.2, I recommend you edit /sbin/pup_event_frontend_d line 350, change
Code:
killall hotplug2stdout #pup_event_backend_d #no module/firmware hotplug support.

to
Code:
killall hotplug2stdout_notimeout #pup_event_backend_d #no module/firmware hotplug support.

This error was in the original boxpup script, I only just now spotted it. hotplug2stdout_notimeout is started by line 137 of /sbin/pup_event_backend_d. hotplug2stdout is not used at all.

Also, if you want to do away with the traybar, so you have just the drive icons, change line 75 of /sbin/pup_event_frontend_d from
Code:
header='# The Bar && Font\ni: /usr/share/wbar/wbar.icons/osxbarback.png\nt: /usr/share/wbar/wbar.icons/VeraBd/8\nc:'

to
Code:
header='# The Bar && Font\ni: /usr/share/wbar/wbar.icons/invisible.png\nt: /usr/share/wbar/wbar.icons/VeraBd/8\nc:'

and restart X.

Edited_time_total
Back to top
View user's profile Send_private_message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Sat 17 Jan 2015, 14:17    Post_subject: Desktop drive icons rendered using wbar --version 0.0.3  

Download version 0.0.3 from the first post, version 0.0.3 corrects one coding error in the original boxpup scripts (see post above) and adds the ability to recognize f2fs partitions.
Back to top
View user's profile Send_private_message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Sat 17 Jan 2015, 20:05    Post_subject: error in first upload of unicorn-drive-icons-by-wbar-0.0.3.p  

My apologies to whoever downloaded the previous version of version 0.0.3; the drive I developed it on had not been fsck'ed in 228 mounts, and the .pet got garbled in the upload. Try the revised version in the first post above.
Back to top
View user's profile Send_private_message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Mon 19 Jan 2015, 09:13    Post_subject: Desktop drive icons rendered using wbar, version 0.0.5  

Version 0.0.5 is now out. I tried making it work with udevd but couldn't get it to run with acceptable speed. So for Version 0.0.5 I built it around the Lucid Puppy 5.20 shell scripts and hotplug2stdout_notimeout.

The Rox icons and the vbar (wbar) icons synchronize now.

If you want to use both Rox icons and wbar icons, I recommend Version 0.0.5 (***edit: as of January 21 2015, I recommend 0.0.6***).

If you want just wbar icons, Version 0.0.3 is probably better, mainly because faster.

Edited_time_total
Back to top
View user's profile Send_private_message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Mon 19 Jan 2015, 09:49    Post_subject: (error in 0.0.5, withdrawn temporarily)  

Durn -burn it. Something not quite right with the 0.0.5 I uploaded. Withdrawn temporarily til I figure out what went wrong.

--aha. If you downloaded the version of 0.0.5 I uploaded a little while ago, go into /etc/rc.d, edit functions4puppy4 as text, and remove that #!/bin/sh line I absent-mindedly stuck at the top. Now the rox and wbar icons synchronize.

New 0.0.5 .pet is up now.
Back to top
View user's profile Send_private_message 
stemsee

Joined: 27 Jun 2013
Posts: 1053
Location: Accepted back into the Matrics

PostPosted: Mon 19 Jan 2015, 20:19    Post_subject:  

It works nicely along with my nicons icon management system. wbar has a small bug, it doesn't update background until right clicked upon.
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1053
Location: Accepted back into the Matrics

PostPosted: Tue 20 Jan 2015, 06:33    Post_subject:  

in vbar script the ccommented out lines DO work fine. You should use the latest desktop drives icon manager to work with, perhaps.

Code:
vbar -config /etc/hotbar/hdbar -vbar -pos top -zoomf 1.2 -balfa 0 -nanim 1 -isize 36 -idist 6 >/dev/null &
vbar -config /etc/hotbar/hdbar -above-desk -jumpf 1.0 -pos top -offset 10 -zoomf 1.8 -idist 6 -isize 32 -bpress -balfa 0 -falfa 100  >/dev/null &
vbar -config /etc/hotbar/hdbar -above-desk -vbar -jumpf 1.0 -pos left >/dev/null 2>&1 &


Wink
capture29882.jpg
 Description   
 Filesize   6.68 KB
 Viewed   482 Time(s)

capture29882.jpg

Back to top
View user's profile Send_private_message MSNM 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Wed 21 Jan 2015, 07:21    Post_subject: drive icons by wbar + rox version 0.0.6 announcement  

Version 0.0.6 is out. Killed the bug where the boot partition was not keeping its boot icon, and the other bug where usb drives were not getting a usb icon. Some speed improvements.
Back to top
View user's profile Send_private_message 
stemsee

Joined: 27 Jun 2013
Posts: 1053
Location: Accepted back into the Matrics

PostPosted: Wed 21 Jan 2015, 07:51    Post_subject:  

I reverted to 0.0.3 which works perfectly for me on dpup wheezy.

Is 0.0.6 a suitable update also from 0.0.3?

I am using only the vbar script and deleting the wbar script.....actually I don't fully understand the differnce, except that wbar seems to put icons in both wbar and desktop....is that right??
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1053
Location: Accepted back into the Matrics

PostPosted: Wed 21 Jan 2015, 08:42    Post_subject:  

Because my set up has puppypin per desktop (x4) when switching desktops the background of the wbar with drive icons retains previous background, is there a command to update it automatically, otherwise I have to right-click on it, or setup xdotool to right-click on it.

Cheers

EDIT: one last thing; how to exclude lock screen icon from vbar management? As it is included in my shapes management.
Back to top
View user's profile Send_private_message MSNM 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Wed 21 Jan 2015, 14:53    Post_subject: version 0.0.7 is out
Sub_title: small bugfix
 

There was one silly error in 0.0.6. 0.0.7 corrects it.

@stemsee: just a minute, gotta unload some cars...
Back to top
View user's profile Send_private_message 
stemsee

Joined: 27 Jun 2013
Posts: 1053
Location: Accepted back into the Matrics

PostPosted: Wed 21 Jan 2015, 15:32    Post_subject:  

Can you do two wbars, one on the left for internal drives and partitions and one on the right for usb drives?
Back to top
View user's profile Send_private_message MSNM 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Wed 21 Jan 2015, 16:21    Post_subject: wbar+rox (layering error?) (two vbars one left one right)  

stemsee wrote:
Can you do two wbars, one on the left for internal drives and partitions and one on the right for usb drives?


Yes, that's do-able, but first there needs to be resolved an issue with either me making the same mistake three times in a row, or with the layering in either Geany or Quirky, see http://murga-linux.com/puppy/viewtopic.php?p=822876#822876.

As far as I know, wbar does not affect any icons other than its own ones in its launcher tray, and there is no command I can issue from within the .pet to have vbar and/or wbar automatically refresh when the background changes. As you say, xdotool.

I do have some code in my .pets which writes to the pinboard indirectly, by feeding pinboard-change instructions to rox itself, so if I were somehow mis-handling these writes then it is conceivable that the lock icon would be affected. However, the code I am feeding rox does not appear to differ in any material way from what earlier problem-free versions of both pup_event_frontend_d and functions4puppy4 have been feeding to rox. And I see no obvious errors in /root/Choices/ROX-Filer/PuppyPin after rox (at my command) writes to it which could cause the lock icon to misbehave.

So I provisionally conclude that there is some kind of a subtle layering error in Quirky. It has caused the last three versions of my .pets here to carry errors in the first version of each that I uploaded while Geany was still open on the last file I edited. To issue corrected versions, I had to copy the last file I edited from disk into the .pet sourcedir and do dir2pet over again without involving Geany.

This same layering error might also be affecting other icons on the rox desktop, such as the lock error you are seeing. Can you more specifically describe the error?
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1047s ][ Queries: 12 (0.0115s) ][ GZIP on ]