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 Wed 24 Sep 2014, 00:44
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
gmrun - CLI Run Dialog
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Mon 31 Aug 2009, 06:57    Post subject:  gmrun - CLI Run Dialog  

Home: http://sourceforge.net/projects/gmrun/
Version: 0.9.2

Gmrun is a little run-dialog like gexec. The nice thing is, that you could run it keyboard-driven. If you want to run a command 'normal' just enter and return, if you want to run it in a terminal, enter and Ctrl+return.

Config-file is /root/.gmrunrc.

Compiled and tested in 4.21.

aragon
gmrun-0.9.2.pet
Description 
pet

 Download 
Filename  gmrun-0.9.2.pet 
Filesize  38.68 KB 
Downloaded  558 Time(s) 

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Wed 03 Nov 2010, 15:28    Post subject:  

Hi,

It was mentioned that there is an auto complete facility. If so, an explanation of what that means and how it works would help me.

My regards

The way I understand auto complete is IF firefox is the only command beginning with f then f is all I need to type (on the second occasion if they are my stored commands as opposed to system-wide commands).
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 03 Nov 2010, 16:22    Post subject:  

Sir Jasper wrote:
Hi,

It was mentioned that there is an auto complete facility. If so, an explanation of what that means and how it works would help me.

My regards

The way I understand auto complete is IF firefox is the only command beginning with f then f is all I need to type (on the second occasion if they are my stored commands as opposed to system-wide commands).

it's like the bash autocompletion: you type one or more letters type TAB and you'll get a list of all matching commands from your PATH.

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Wed 03 Nov 2010, 17:30    Post subject:  

Hi aragon,

I'm glad I asked. Thank you very much for your help.

My regards

I hope it is OK to ask another question which is, for me, unsolved. I use JWM and would like to combine and automate some shortcuts:

Win+g
wait 1 second
Win+z
wait 1 second
Ctrl+f

This puts Gnote in my tray, then opens my sole note on my desktop then adds the find option.

As I only do this once daily and it only takes a few seconds to do manually it is not important, but I would like to know how it can be done.
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 03 Nov 2010, 18:54    Post subject:  

well let's see.

1. install attached pet.

2. Copy the following to a text-editor and save it as autognote.sh in
/root/my-applications/bin

Code:
#!/bin/sh

# assuming that win+g starts gnote
xdotool key win+g

WID='xdotool getactivewindow'
xdotool key $WID win+z &
xdotool key $WID ctrl+f &


3. Make autognote.sh executable
Right-Click in rox on autognote.sh and choose File > Properties and check all under EXEC

4. Run autognote.sh
best run from console to see output.

Lets see if it works.

aragon
xdotool-2.201012.3049.pet
Description 
pet

 Download 
Filename  xdotool-2.201012.3049.pet 
Filesize  46.53 KB 
Downloaded  985 Time(s) 

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Wed 03 Nov 2010, 19:52    Post subject:  

Hi again,

Thank you. I get output as follows:

# autognote.sh
/root/my-applications/bin/autognote.sh: line4: xdotool: command not found
#/root/my-applications/bin/autognote.sh: line8: xdotool: command not found
/root/my-applications/bin/autognote.sh: line7: xdotool: command not found

In case it may matter I use the win key for my first two manual shortcuts but they are referred to as Hyper+g and <Super>z where they are recorded.

I appreciate your kindness and I am happy to stay up, but it is late for you as well and we can easily continue this tomorrow (or whenever it may suit you). From the extra downloads of your PET it looks to be of more general interest.

My regards
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Thu 04 Nov 2010, 04:54    Post subject:  

Sir Jasper wrote:
Hi again,

Thank you. I get output as follows:

# autognote.sh
/root/my-applications/bin/autognote.sh: line4: xdotool: command not found
#/root/my-applications/bin/autognote.sh: line8: xdotool: command not found
/root/my-applications/bin/autognote.sh: line7: xdotool: command not found

that indicates that the xdotool-pet is not installed.

Quote:

In case it may matter I use the win key for my first two manual shortcuts but they are referred to as Hyper+g and <Super>z where they are recorded.


i think we will sort that out later.

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Thu 04 Nov 2010, 07:41    Post subject:  

Hi aragon,

You are of course correct and I had not installed the xdotool-pet. My humble apology - I can only think that I was trying to follow too many of your instructions at once and failed to click the pet.

If I amend your first line of your uncommented code from:

"xdotool key win+g" to "xdotool key super+g"

Gnote does appear minimised in my tray (after about one second).
------------------
Although I have tried amending your code using trial and error I have failed to make any further progress with autognote.sh and I have not even managed to activate the Gnote window.
------------------
However, when using the shortcut sequence individually the Gnote window becomes active after I have used super+z.

There is no rush on my part and I am delighted to have your help - so we should proceed entirely at your convenience.

My regards
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 05 Nov 2010, 09:43    Post subject:  

the problem should be, that my code is looking for the active window whilst gnote allready seems to be minimised. if i get the chance, i will try to install gnote in luci and see if could fix this.

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Fri 05 Nov 2010, 10:25    Post subject:  

Hi aragon,

A portable version of Gnote is available from: http://portablelinuxapps.org/ [first column, well down].

Used individually the lines below work.

xdotool key super+g
xdotool key super+z
xdotool key ctrl+f

You have already been a great help to me, so please put any further advice at the bottom of your priorities.

My regards
Gnote.jpg
 Description   I chose super+z, but the Ctrl+f find is pre-set and is not the same as the wider search shortcut shown in this picture.
 Filesize   75.42 KB
 Viewed   1375 Time(s)

Gnote.jpg

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

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 10 Nov 2010, 15:57    Post subject:  

Sir Jasper,

well i tried to install gnote in luci but failed because of a missing lib. the portable doesn't run either because of the missing lib Evil or Very Mad so no luck atm with further testing.

sorry
aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Wed 10 Nov 2010, 17:41    Post subject:  

Hi aragon,

Thank you for trying.

My regards
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1125
Location: England

PostPosted: Sun 05 Dec 2010, 19:00    Post subject:  

Hi aragon,

Today, I followed your above instructions, but with minor changes to the code so that it now reads:


Code:
xdotool key super+g
sleep 2
xdotool key super+z
sleep 2
xdotool key ctrl+f

# The above puts Gnote in the tray, loads a Note and adds the Find box.



For convenience I then dragged the file to my desktop and the three individual shortcuts are now linked and when I click on that desktop icon they work in sequence.

Thank you for the xdotool pet and all your help.

My regards

Addendum:

As the bottom line of my single continuous note is always zz
and as I usually want to add a new item - and since the find
command finds automatically as I type I have now added

Code:
sleep 1
xdotool type zz
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Mon 06 Dec 2010, 17:29    Post subject:  

wonderful!

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0841s ][ Queries: 12 (0.0124s) ][ GZIP on ]