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 Sat 16 Nov 2019, 16:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
ocd-Dock - a dock written for Puppy
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Thu 04 Feb 2016, 06:11    Post subject:  

@Ghost Dog,

The only change made to that section of code is where I have removed the condition where it ignores menus and similar windows.

Does the dock overlap with another window, such as a panel? That would be a cause as panels, like menus, were previously ignored and now will trigger a hide.
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Thu 04 Feb 2016, 06:12    Post subject:  

@Ghost Dog,

Ignore this - see the next post

Last edited by ProgRob on Thu 04 Feb 2016, 11:39; edited 1 time in total
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Thu 04 Feb 2016, 11:38    Post subject:  

@Ghost Dog, I have now replicated the problem (basically I was being impatient in my testing, not giving the dock long enough before it tried to hide).

I have now uploaded Beta 2.2.1 which both fixes the problem and indeed improves the detection of window overlapping.

Have a go and let me know what you think. The fix is slightly clunky and I will improve it in a later release t make it more efficient!

Best wishes,
Rob
Back to top
View user's profile Send private message 
takenp


Joined: 05 Aug 2015
Posts: 75
Location: Moskva

PostPosted: Thu 04 Feb 2016, 16:52    Post subject:  

The bullet theme is awful for me (see scrot)
I tried dockalignment = 0.0 and failed

I've got the new pet file from the first post and tried to check version - failed too (neither -v --version, nor --help worked)

anyway -- many thanks for your efforts
dockalignment.jpg
 Description   
 Filesize   64.68 KB
 Viewed   704 Time(s)

dockalignment.jpg

Back to top
View user's profile Send private message AIM Address 
Ghost Dog


Joined: 27 Jan 2012
Posts: 164

PostPosted: Thu 04 Feb 2016, 21:19    Post subject:  

Dock is perfect now, thanks. Very Happy
_________________
The Way of the Samurai
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 183

PostPosted: Mon 08 Feb 2016, 14:34    Post subject:  

Will need to look into new version first, before asking,
then - how about stuff from the system-tray?
.. it comes pretty pre-loaded with most JWM setups, and
usually I just remove most of them from the tray anyway Confused
Are these going to be as user-selectable "external widgets" ?
Plus DeadBeef and Osmo (any other.. ?) have a bad manner to hide there,
and therefore may need a way to be accessible at some point...
Most likely Retrovol will get some use, as for local install -most of other stuff
is preconfigured and left.. as-is, prior to installing dock.
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 183

PostPosted: Mon 08 Feb 2016, 14:39    Post subject:  

Some configuration notes.
I hope these are useful for someone Wink

For IceWM, to disable IceWM taskbar, in-
/root/.icewm/preferences
set the following:
ShowTaskBar=0 # 0/1
Or one can just start X with plain:
xwin icewm
- that starts only window manager, without any session-extras.

For JWM, one can edit:
/root/.jwmrc
and comment out the line (somewhere after menu items..) that says:
<Include>/root/.jwmrc-tray</Include>
so it then looks like:
<!-- Include>/root/.jwmrc-tray</Include -->

I don't really know if it is the right way of doin' it, but it worked for me.
To get a permanent setting for JWM, one will have to edit the initial template file,
as .jwmrc gets overwritten every now and then..

For w32 refugees, who "just need" a Start-button, there should be
myGtkMenu, somewhere here on the forum (at least there was.. )
that may look pretty good with the dock, as it uses the same Gtk2 theme.
And when configured to whatever it should be..
-to use it with the dock, add the following:
run "Startmenu" "myGtkMenu /root/.config/myGtkMenu/myGtkMenurc" some_icon_name.png
to the file:
/root/.config/ocd/dock/pinned
"some_icon_name.png" will not need a path, if it is placed in a common place:
/usr/share/icons
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Tue 09 Feb 2016, 12:39    Post subject:  

Earlier today I uploaded a minor update - version beta 2.2.1.

The changes are:

1. To deal with a very good point made by takenp, there is now a -v switch which, if you run ocd-Dock from a terminal, you will get the version number printed out

2. In addition, if you use the -s switch, which brings up a diagnostics window which can be used to monitor the start up process, it will also report the version number right at the start

3. A fix to an alignment problem with indicators when the dock is placed on side 3 (N).

4. A new theme, blox (see below). This one is another, like bullet, where there is no bar. It is left aligned on the screen with a small, deliberate gap before the first icon. The background of the individual icons changes according to the icon.

Enjoy!

Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Tue 09 Feb 2016, 12:42    Post subject:  

@takenp,

Try the attached dock-config file - I suggest you place in ~/.config/ocd/dock/

It uses the new blox theme, so you need to download the very latest version from the first post. It should now report version Beta 2.2.1 if you use a -v switch.

It should then work as previously reported...


Regards,
Rob

Last edited by ProgRob on Wed 10 Feb 2016, 10:30; edited 1 time in total
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 183

PostPosted: Tue 09 Feb 2016, 16:15    Post subject:  

JWM minimize to tray, when clicking the icon on the dock?
Icewm is fine, think I've seen that with bmpanel2 at some point..

will check the new version now Cool

Edit:
Any confirmation about JWM??
can be a local setup error....

Last edited by torm on Sat 13 Feb 2016, 23:41; edited 1 time in total
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 10 Feb 2016, 10:38    Post subject:  

torm wrote:
Will need to look into new version first, before asking,
then - how about stuff from the system-tray?
.. it comes pretty pre-loaded with most JWM setups, and
usually I just remove most of them from the tray anyway Confused
Are these going to be as user-selectable "external widgets" ?
Plus DeadBeef and Osmo (any other.. ?) have a bad manner to hide there,
and therefore may need a way to be accessible at some point...
Most likely Retrovol will get some use, as for local install -most of other stuff
is preconfigured and left.. as-is, prior to installing dock.


Hi Torm, my plan is to create as many widgets as possible to minimise the need for stuff inany kind of system tray. In my view items in the system tray are either useful (and so should have a widget) or useless (otherwise why are they stuffed away in the tray?). The idea is that you choose which widgets to include on the dock.
Back to top
View user's profile Send private message 
takenp


Joined: 05 Aug 2015
Posts: 75
Location: Moskva

PostPosted: Sat 13 Feb 2016, 12:42    Post subject:  

ProgRob wrote:
@takenp,

Try the attached dock-config file - I suggest you place in ~/.config/ocd/dock/

It uses the new blox theme, so you need to download the very latest version from the first post. It should now report version Beta 2.2.1 if you use a -v switch.




it works as you said, thx!
If I put "keepabove = false" I get a big shadow again
btw how should the dock disappear if it is aligned to the left in the middle of the screen ?
Back to top
View user's profile Send private message AIM Address 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Mon 15 Feb 2016, 06:32    Post subject:  

@takenp, you raise a couple of points...

1. To avoid the 'shadow' I had to set the dock window as a 'dock' as defined by the Enhanced Window Manager Hints (EWMH) standard. Compton (and presumably other compositors) know about EWMH 'docks' and avoid putting a shadow round them. Unfortunately EWMH also specifies that docks should be kept above all other windows. Therefore if you want a dock that is not kept above other windows then it cannot be marked as a dock according to EWMH.

As a result, in the current version, if the dock is set with keepabove=true, it will also be marked as a dock so that compositors can treat it correctly. If it is set at keepabove=false, it is not marked as a dock so you will have to explicitly tell the compositor not to put a shadow round it. You can do this using the dock window's name 'ocd-dock'.


2. The alignment of the dock makes no difference as to where the dock hides. The way in which the dock hides is defined by the edge on which it is placed. In the example I have set the dock as non-hiding. If you set it to hide it will disappear off the top of the screen, which looks a bit weird. This is because, to make the menus drop down I set the dock at the top edge with a huge offset that moved it into the middle of the screen. To make it disappear off the side of the screen would require additional work. Maybe in the future...

Hope that explains things,
Thanks,
Rob
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 04 May 2016, 12:26    Post subject:  

New release!! Version Beta 3.0

For this release I have completely rewritten the widgets system. It now has a extremely flexible skinning system (with its own scripting language) and at last there is support for external (user-definable) widgets.

The widgets in this release are:

    Clock - which covers all kinds of clock-based widgets including calendars

    sysmonitor - for cpu and memory monitoring

    wifi - a monitor for wifi signal strength

    battery - for monitoring battery levels

    bbcweather - the current weather and forecast for the day's weather from the BBC in the UK's RSS feed - this is an example external widget

The number of skins has been expanded considerably, especially for the clocks pulling in a number of skins from XonClock and CairoClock.

The download links are in the first post - let me know how you get on. Note that if anyone did create their own skins for the old widgets then you will have to modify them. Also, you may need to modify your pinned file to use the new widgets.

My next targets are probably desklets (put those widgets standalone on the desktop!), better integration with composition managers (if you have one running) and some internal clean up of some of the other graphics code to bring it up to the standard of the new widgets code.

Cheers,
Rob
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 11 May 2016, 04:14    Post subject:  

Unfortunately a bug was found in Beta 3.0. This meant that the default widgets were not being found. It worked correctly for widgets that were in the user's directory (~/.config/ocd/dock/widgets).

I have released a new version, 3.1, which fixes the bug.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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