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 Sun 26 Oct 2014, 00:44
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
ROX-Filer release of SELECTIONS using Script ?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
some1

Joined: 17 Jan 2013
Posts: 34

PostPosted: Mon 04 Mar 2013, 15:09    Post_subject:  ROX-Filer release of SELECTIONS using Script ?
Sub_title: Xdotool works but I'm looking for something lighter
 

Hi

I am dumping rox-selection-paths by middle-mouse to an entrybox.
The rox-selections stays sticky - after the dump - which I somewhat
consider a nuisance,but not a bug.Rox version 2.9.

On dumparrival,using xdotool to send an escape-key to the Rox-window, I can release,clear selections.
However - xdotool is "external" and somewhat heavy -bytewise- just for this .


So the question:

Is there another way,mechanism to - from a script -make ROX clear selections?

Thanks
Back to top
View user's profile Send_private_message 
some1

Joined: 17 Jan 2013
Posts: 34

PostPosted: Fri 08 Mar 2013, 20:06    Post_subject: ...why so shy?.  

Hi

...meanwhile - using xdotool::

Code:
$(xdotool search --onlyvisible --name '^[~|/]' key --window %@ "Escape")


Visible windows with titles starting with "home" or / will get an Escape key.
( Note: Also minimized windows can carry a selection )

That is somewhat of an overkill - because on receiving data - the script COULD deduct the parent-path to the directory in which the selections occurred.

However - ROX craves user-action to free selections -
and with a hectic selection activity on several windows - there may be
1) stale,dimmed selections
2) the actual last selection -which is in the clipboard

Dead selections are a nuisance,when forgotten - and f.x. a right-click in a filer-window with dead-selections might give rise to a WTF-moment.

So for now:
Sending out a spree of Escapes makes for a saner world.
The extra coding needed for a dedicated solution does not really seem worth it.

But still - xdotool has to be around - so another -,"in residence" - way would be preferable.

Cheers
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
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.0384s ][ Queries: 11 (0.0031s) ][ GZIP on ]