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 Fri 22 Nov 2019, 12:20
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 2 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
Terry H

Joined: 29 Mar 2009
Posts: 671
Location: The Heart of Muskoka, ON Canada

PostPosted: Sun 13 Dec 2015, 17:19    Post subject:  

Just saw this thread, so downloaded to check it out.

Initial execution.

As the name of the download file is different from internal naming, it won't load with ppm. it has to be renamed to remove the '-beta'. It installed OK after renaming.

Initial ran on slacko-6.3.0 with JWM. After installing libwnck all has been OK. Configuration is well documented and so far has been easy, with a well set out config file.

I then attempted to run it while using FbBox WM in same slacko install. It failed to run, giving the following error:
Code:
 (ocd-Dock: 6069):Wnck-Warning**: Unhandled action type _OB_WM_ACTION_UNDECORATE


Over all it works well. Nice job.
Back to top
View user's profile Send private message 
Terry H

Joined: 29 Mar 2009
Posts: 671
Location: The Heart of Muskoka, ON Canada

PostPosted: Sun 13 Dec 2015, 21:48    Post subject:  

Further testing. This is done running slacko 6.3.0 with JWM, on my Dell D630 laptop.

Pinning applications using right-clicking works well. I did however have 2 instances (firefox & chromium) where pin option not displayed when right-clicked application, did not give option to pin. When tried again later, the option to pin was shown for these applications. so at present does not appear reproducible. Manual editing of pinned file, very simple and working well.

When exposedock is set to max, the dock is hidden when a window is opened within its space, as it should. When the window is closed, moved or changed size, the dock remains hidden. I would have thought the dock should be displayed when the window is changed. At present the only way I can get the dock to reappear is th change Desktops. The 'reveal' edge action, doesn't appear to work for me.

Edge actions so far seem a bit intermittent. I moved the dock to the left edge (baredge = 2). This is the values I currently have set:
Code:

edge_action_1 = none
edge_action_2 = reveal
edge_action_3 = desktop show
edge_action_4 = run htop


When I first started running ocd-Dock, I ran it from a terminal, as it is easier to restart it to get changes to take effect. When I move the cursor to the right edge, the terminal which I was running ocd in would flicker with htop. When I changed running ocd at startup, I couldn't get htop to show at all.

I had tried desktop show, which if you leave the cursor against the edge it continually toggles the desktop between hide/show windows. Initially a bit off putting, but moving cursor away from edge stops this.

At present no edge actions appear to work at all for me. I believe that my config file is OK.


Edit: I unistalled ocd-Dock and reinstalled, edge actions are working better now. Running htop with an edge action still appears strange though. If running ocd-Dock from a terminal, the terminal flickers with htop. If running ocd-Dock from startup, it does not display htop at all when the edge action is invoked.

I changed an edge to run abiword and it is OK. You have to remember to move the cursor away from the edge once the application has started, or you get lots of windows opened, because it continues to do the action.
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 183

PostPosted: Wed 16 Dec 2015, 15:08    Post subject:  

About documentation:
System-monitor widget could probably take few more lines about *.png file usage.
(if pixmap is less pixels than configured it will segfault, when randomly replaced)
And about custom shapes and sizes.. or use of opacity?

Maybe a hint about RGBA
255, 255, 255, 255
red, green, blue, opacity(transparency or alpha-channel)

"Style - 0 for a horizontal bar"- bar direction (used/available fg/bg)?
(on below screenshot -red is actually "used resource" on the right-hand-end of the bar.. )

Chapter 10.
"fixed launcher" would really make it perfect ( at least for those still missing e17 Wink )
ocd-sysmon-direction.png
 Description   
 Filesize   6.82 KB
 Viewed   843 Time(s)

ocd-sysmon-direction.png

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

Joined: 13 Feb 2013
Posts: 65

PostPosted: Thu 17 Dec 2015, 08:07    Post subject:  

Thanks again for all the feedback. To let you know that I have finally fixed the size of the images. You can still view them at full size at http://imgur.com/a/h9Z5z

I am working on a new release. So far I have implemented:
    Fixed bug in the battery widget, so it should work properly
    Fixed bug in the option to redraw the dock, so it should work properly
    Implemented 'hot corners' so that edge actions can be associated with corners
    Implemented a diagnostics window which can be used to understand what rules have been applied to match windows to desktop items - useful for diagnosing odd behaviour

I'm hoping to release this either this Friday or some point next week.

@Terry H - many thanks for your input.

The warning you note is a warning I get all the time (and so does the dock Plank) if you run it from a terminal. You get one of these warnings for every window that is open when the dock starts up or a new window is opened. However, I don't think that the warning is the problem - I think that there must be an EWMH which it doesn't support that I depend on. I'd like to make it all a lot more smart about EWMH, so at some point I might download FB and see what is the problem.

The pinning problem is interesting. The pinned option is hidden when the dock cannot link the window to a specific desktop file. The new diagnostic window might help understand why that is happening if you can reproduce the problem as Firefox and Chrome should be picked up.

I'll take a look at the exposedock max problem - doesn't sound right at all. I'll double check the reveal code as well. It may be another EWMH problem.

As for the sensitivity of the edge. I will look at implementing an additional option to stop it triggering more than one edge action. You can also reduce the sensitivity of the repeat action through the config file. Your config file looks perfect to me.

As to your htop problem. I do all my testing from a terminal window so this is something I may have overlooked. I'll test that too - I suspect the cause is the way in which I call such commands.

@Torm - looks like you've spotted that E17 was one of the influences! I agree that more work is needed on the widgets. I will see if I can reproduce something like the example you've provided.

Agree about RGBA - will consider that for a future release.

I'll sort the segfault issue. I suspect that is a missing check.

Can you expand on what you mean by 'fixed launcher'? Do you mean being able to have only a fixed number of items pinned to the dock?


Thanks everyone,
Rob
Back to top
View user's profile Send private message 
Terry H

Joined: 29 Mar 2009
Posts: 671
Location: The Heart of Muskoka, ON Canada

PostPosted: Thu 17 Dec 2015, 13:02    Post subject:  

ProgRob wrote:


@Terry H - many thanks for your input.

The pinning problem is interesting. The pinned option is hidden when the dock cannot link the window to a specific desktop file. The new diagnostic window might help understand why that is happening if you can reproduce the problem as Firefox and Chrome should be picked up.

I'll take a look at the exposedock max problem - doesn't sound right at all. I'll double check the reveal code as well. It may be another EWMH problem.

As for the sensitivity of the edge. I will look at implementing an additional option to stop it triggering more than one edge action. You can also reduce the sensitivity of the repeat action through the config file. Your config file looks perfect to me.

As to your htop problem. I do all my testing from a terminal window so this is something I may have overlooked. I'll test that too - I suspect the cause is the way in which I call such commands.

Thanks everyone,
Rob


Those results I posted were using slacko, have since installed in tahrpup, edge actions are OK.

Still not getting htop to run though, works fine to run other apps though, abiword starts fine.

I'll check further when you post new version.

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

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 23 Dec 2015, 12:24    Post subject: New Release - Beta 2  

I am pleased to announce the beta 2 release of ocd-Dock.

I have updated the first post with the download details and the documentation has been updated as well.

Here is a summary of the new release:

New features:
Enhanced window selection when there are multiple windows open associated with the same dockitem. The default is now to detect which option the mouse is over, bring that window to the top of the stack. There is an option in the config file to turn this behaviour off
Ability to associate edge actions with corners as well as edges.
Windows should now minimise towards the right icon on the dock. Note that this behaviour might get overridden if you have another panel running (e.g. lxpanel) or if the WM does not support it
Urgency alerts are now implemented and there is an option in the config file to ignore them
All boolean config and theme parameters treat the values ‘true’, ‘yes’ and ‘on’ the same and did the same for ‘false’, ‘no’,a dn ‘off’
Edges can now be called N, S, E and W instead of 3, 1, 4, and 2 respectively (though the numeric option still works)
Default colour of hint text and the background of hints are now the Gtk defaults if no colour is specified in the theme file
Diagnostics window implemented which is invoked by modifying the start-up call with -m for matcher rules and -s for startup. These are useful for diagnosing odd matching behaviour (e.g. why has the dock named the dockitem in the way it has) or to check which files are being loaded at start-up
Sysmonitor widget has two new styles (3 and 4) for bars - these go from right to left and top to bottom respectively

Changes/bug fixes:
Battery widget now works correctly
Sysmonitor widget style 0 now draws correctly
Widgets which have an error now correctly do not appear
Rebuild option on right click fixed to work correctly
Default behaviour for an unrecognised desktop edgeaction to ‘none’
Default edgeactions in config file are now all ‘none’
Edgeactions no longer repeat automatically and the edgedelay parameter has been removed from the config file
Fixed the max setting for the dock so that when hidden it will show as soon as space becomes available
fixedonly option to config file to make the dock a launcher bar only - windows from applications not in the pinned file do not cause a new dockitem to be created. By default this feature is off but can be switched on in the config file

In addition, I have investigated why htop does not appear to work as an edge action. It turns out that htop requires a terminal to work. As a result you need to tell ocd-Dock to open a terminal to run it in. The solution therefore is to set the edge action to:

run urxvt -e htop

and it all works fine!

Feedback very welcome,
Thanks,
Rob
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 183

PostPosted: Fri 08 Jan 2016, 14:53    Post subject:  

Happy.. this Year! Wink
..just in case, I think there should be a bottle stuffed away somewhere Very Happy

Beta2
Somehow I've managed to get a few "borderless" windows...
Don't actually know how to re-create this, at this point.

How about external widgets?
Maybe some kind of a example, to play around with?
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Mon 11 Jan 2016, 07:02    Post subject:  

Happy New Year!

Hi Torm, not sure how borderless windows could be created. If you can get a repeatable process do let me know.

As for external widgets - that is the one thing I am now working on. At present (part from your borderless windows) I am unaware of any bugs so the widget system is my main focus.

At present I am thinking of recoding a significant part of it to make it more re-usable and to make it easy to define external widgets. Keep watching, but this one may take a little time. The good news is that I have managed to simulate a key part of how external widgets might work, so the first rather important step has been achieved.

Thanks for your interest!
Back to top
View user's profile Send private message 
takenp


Joined: 05 Aug 2015
Posts: 83
Location: Moskva

PostPosted: Sat 16 Jan 2016, 11:10    Post subject: disabling shadows for dock  

Hi @ProgRob !

I'm using compton composing manager for drawing shadows. I got a big shadow while trying your dock. I have found the way how to remove it:

Code:
compton ... --shadow-exclude 'g:a:Dock'


where 'g' sands for "general class" and 'a' for "any"
Dock is a keyword (ocd-Dock did not work)

so I added the above string to my ~/Startup/compton.sh

My be you suggest a better way ?


many thx and regards for your job!

/take
Back to top
View user's profile Send private message AIM Address 
mavrothal


Joined: 24 Aug 2009
Posts: 3085

PostPosted: Sat 16 Jan 2016, 16:33    Post subject:  

Very nice.
But this is a binary file. Is there the source somewhere?
Is it an open source program?

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Mon 18 Jan 2016, 05:14    Post subject:  

@takenp - thanks for your feedback which is really interesting and useful. Did you get a huge shadow that went round the outside of an invisible 'box' around the dock? If so, I can see why it would happen, but I would have to do some work to see whether there is a better way than you suggest to fix it. My problem is that I have never managed to get composition working on Puppy on multiple machine. Can you tell me which version of Puppy you are using as that might also help?

@marothal - the plan is to be open source. However, I am reluctant to release the source until I move off beta. At present I am doing a mjor re-write of the widget system. Once that is complete, assuming no major bugs are found I plan to release the first live version after that change has been completed. My challenge is how to release the source code - I am currently tempted by releasing on github or somewhere similar as the code should work on many linuxes as well as puppy.
Back to top
View user's profile Send private message 
puppyluvr


Joined: 06 Jan 2008
Posts: 3503
Location: Chickasha Oklahoma

PostPosted: Mon 18 Jan 2016, 12:44    Post subject:  

Very Happy Hello,
Testing on Upup3.9.9
Other than some "minimize/restore" issues with JWM (as expected) it works good. Very configurable. Created a .desktop and jwm.rc entry to start it from the menu, and an "off" button on the dock to stop it. The "pinned" file is easy to modify to launch any .desktop file, and use its icon. The addition of "hot corners/sides" is great by itself, and could be a usefull seperate .pet option..
Good work, I'll keep playing and get back.

_________________
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...
Back to top
View user's profile Send private message Visit poster's website 
takenp


Joined: 05 Aug 2015
Posts: 83
Location: Moskva

PostPosted: Mon 18 Jan 2016, 14:02    Post subject:  

Quote:
Did you get a huge shadow that went round the outside of an invisible 'box' around the dock?
Can you tell me which version of Puppy you are using as that might also help?



I use Tahrpup 6.05 and compton from ubuntu repo
See the scrot.

I suppose you should mark your Dock as 'dock' or 'panel' -- many compositing managers dont make a shadow for them or have a special key.
capture17070.jpg
Description 
jpg

 Download 
Filename  capture17070.jpg 
Filesize  127.57 KB 
Downloaded  361 Time(s) 
Back to top
View user's profile Send private message AIM Address 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 20 Jan 2016, 14:53    Post subject:  

Thanks @takenp. I need to set the window hint type I think. I'll look into that.
Back to top
View user's profile Send private message 
Ghost Dog


Joined: 27 Jan 2012
Posts: 164

PostPosted: Wed 20 Jan 2016, 16:35    Post subject:  

I really like this dock. It's very nice, lightweight and functional.

Any possibility of getting a "menu" icon?

I'd also like to figure out how to get a shiny black version of the reflection theme.

_________________
The Way of the Samurai
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 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.2657s ][ Queries: 12 (0.0799s) ][ GZIP on ]