[Nottingham] Scripting question

Barry Drake b.drake at ntlworld.com
Thu Mar 2 21:33:04 UTC 2017


On 19/02/17 13:06, Fay Knight via Nottingham wrote:

> I've been getting my feet wet with scripting recently, and I was
> wondering whether there's an easy way to set a custom keyboard shortcut
> to trigger a simple script?  Since I couldn't find a simple answer by
> Googling I suspect this is going to be more complicated than I first
> imagined, but I'll put the question out there in case anyone has done this.

Hi Fay 		I've attached some screenshots,  These show the procedure on my 
computer. I use Ubuntu Linux. Scripting is very different on different 
operating systems.  On Microsoft Windows, batch files are really 
primitive.  I don't use Windows, but there must be a way of executing a 
file from a batch command.  If not, you could use "command+your script". 
  I can't try it.  the Unix 'bash' shell is really versatile.  It will 
be much slower than bash, so allow for that if timing is an issue.  I 
seem to remember that you can run a terminal as a window. dos commands 
are something you would have to study.  I'm sure Google will point you 
to a dos command manual.  There is a program that can run Ubuntu on top 
of Windows.  Again, Windows will slow it down.

The latest version of, 16.10 looks and feels like Windows.  If you 
resize your Windows partition it give 120 GiB+ 8Gib for the swap 
partition. Make the new partition 130GIB to be safe.  Download the 
latest release version; that is 16.04, burn it to a DVD blank disk, (it 
won't fit on a CD).  Boot your machine, and install.  If you install 
that downloaded ISO, you don't have to resize.  Boot from the DVD, and 
you will get the option to install alongside Widows.  Ubuntu will then 
resize the Windows partition automatically for you.  Either way, back up 
all your data before doing anything.  Back it up to a cloud, or to a 
disk.  You are very unlikely to need the backup, but if anything goes 
wrong .....

Any questions, get back to me.  Not on the list. I'm at: 
b.drake at ntlworld.com

-- 
http://www.barrydrake.tk/
-------------- next part --------------
#/bin/bash
music123 -z -D /home/barry/xmas/./bleak.mp3    # command to kill is 'killall music123 pulseaudio' # assuming mp3 files - others use different player
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Keyboard settings.png
Type: image/png
Size: 14988 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20170302/f8ae2935/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom settings example.png
Type: image/png
Size: 15839 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20170302/f8ae2935/attachment-0003.png>


More information about the Nottingham mailing list