LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2017, 03:58 AM   #1
SimonWh
Member
 
Registered: May 2017
Posts: 46

Rep: Reputation: Disabled
Replacement for Hotkeys


Hi,
I am switching my wife to Linux, I have been using it for the last 3 months. Reasons are very simply we are both fed up with Windows updates!!
She uses hotkeys, that I have programed for her.
The sequence is ctrl Y gives [youtube][/youtube] she uses this very often, as you can see, it is a pain to type every time.
Is there a way to set this up in Linux? It is not important what the key sequence is to do it. It can be an F number or any other command.
Thanks all for your help
Simon
 
Old 07-22-2017, 11:33 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Yes indeed! You use the Super key: the one with the Windows logo. It depends on the desktop you're using, but there may be something in the menu for "keyboard shortcuts". If you have KDE, use the menu editor, select the program you want, right-click, and select "properties". If you have Gnome, Mate, or Cinnamon, then you need to run the configuration editor and define both a keybinding and a command. There's a lot of documentation about, or you can ask for more help.

For example, I have
Super-w for gnome-terminal -e "units"
Super-q for wine "/home/david/.wine/drive_c/Program Files/QemuLator/QemuLator.exe"
 
Old 07-22-2017, 12:11 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
xfce4 and perhaps others as well but I am in xfce4 right now and am downloading so I cannot log out and into a different WM/DT to affirm this.

Code:
firefox www.youtube.com
in the keyboard shortcuts app they got then assign it to whatever keys one wants. the format should be similar for other means to apply KB short cuts.

Last edited by BW-userx; 07-22-2017 at 12:13 PM.
 
Old 07-22-2017, 03:10 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
gnome-control-center allows to assign global keyboard shortcuts.
 
Old 07-22-2017, 08:46 PM   #5
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
For CLI (maybe GUI too, Idk): bind (Readline & inputrc: learning FUN for me Thanks!)
 
Old 07-23-2017, 02:11 AM   #6
SimonWh
Member
 
Registered: May 2017
Posts: 46

Original Poster
Rep: Reputation: Disabled
Hi,
Thanks for those replies.
I am using Cinammon 18.1, I am not sure I fully understood exactly what I should do, but I will look for some documentation
Thanks again
Simon
 
Old 07-23-2017, 06:31 AM   #7
SimonWh
Member
 
Registered: May 2017
Posts: 46

Original Poster
Rep: Reputation: Disabled
Hello Again,
I feel I have not fully explained what I am trying to do.
I am not looking to launch a program by the hotkey, I want some text to be applied when I click the hotkey.
It will be used within Mozilla
Thanks once again
Simon
 
Old 07-23-2017, 10:48 AM   #8
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Bookmarks? SpeedDial?
http://www.getspeedial.com/
 
Old 07-23-2017, 12:09 PM   #9
SimonWh
Member
 
Registered: May 2017
Posts: 46

Original Poster
Rep: Reputation: Disabled
Sorry,
She repeatedly has to type type the following command [youtube][/youtube] when posting, as you can see it is a bit difficult to type, so in Windows I just created a hotkey that when she pressed ctrl y it typed out the you tube thing.
I should have explained in more detail.
Thanks for your help
Simon
 
Old 07-23-2017, 01:13 PM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
that little special web key is a hardware thing I do not think it will be useful anymore in Linux just like the "fn" on keyboards. They do not register in the system as a keyboard key because they are not.

you can google about the fn key and you will see all kinds of people asking why there fn key does not work. that special web key for windows I would bet is the same way. it is a 'hardware' key therefore, to set it up to get youtube with only one push of a key you can use a Function key which is do-able . if she does not want to use two keys or more to fire up a web browser and have it go straight to youtube.

How To Change The Linux Mint Cinnamon Keyboard Shortcuts
https://www.lifewire.com/how-to-chan...rtcuts-4064754

if it has an area to type the command just add what I showed in my other post. assign a key or two or three to it then save it. then test it.

Last edited by BW-userx; 07-23-2017 at 01:19 PM.
 
Old 07-24-2017, 02:36 AM   #11
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Talking Make Ubuntu Great Again

More positive toward Linux usability 'UI/UX', (very sorry that I don't 'do' GUI),
both/all are just 'machine code', so IF Win can, Linux can! (I think/HOPE!)

I tried searches like this: linux define hotkey browser "insert text"
&found autokey: https://www.howtogeek.com/howto/2691...x-application/ and https://askubuntu.com/questions/2806...redefined-text

I think I now understand that, in Firebox (like I click on LQ's quote/code/link etc.)
OP wants something like Ctrl+y (or other key, like F9 or 'Win'+y or most anything)
to insert: [youtube][/youtube] into the browser text window, in which they're typing.

Best wishes, for getting Linux to 'work for users'! (Let us know the solution!)

Last edited by Jjanel; 07-24-2017 at 02:41 AM.
 
Old 07-24-2017, 05:05 AM   #12
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
This needs to open a terminal:
alias you='firefox http://www.youtube.com/'

So just type: you to open youtube (not tested not sure if it will work)

Or try xbindkeys
https://linux.die.net/man/1/xbindkeys

Last edited by JJJCR; 07-24-2017 at 04:55 PM. Reason: edit
 
Old 07-24-2017, 08:25 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Jjanel View Post
More positive toward Linux usability 'UI/UX', (very sorry that I don't 'do' GUI),
both/all are just 'machine code', so IF Win can, Linux can! (I think/HOPE!)

I tried searches like this: linux define hotkey browser "insert text"
&found autokey: https://www.howtogeek.com/howto/2691...x-application/ and https://askubuntu.com/questions/2806...redefined-text

I think I now understand that, in Firebox (like I click on LQ's quote/code/link etc.)
OP wants something like Ctrl+y (or other key, like F9 or 'Win'+y or most anything)
to insert: [youtube][/youtube] into the browser text window, in which they're typing.

Best wishes, for getting Linux to 'work for users'! (Let us know the solution!)
I gave up looking -- maybe someone should e mail Linus Torvalds about it.
 
Old 07-24-2017, 01:02 PM   #14
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
more clarification

To see what OP (apparently) means, do this:
in LQ's 'Reply' msg box, click on the icon for Quote
( [QUOTE][/QUOTE] gets inserted).

The question is: how to setup some 'keystroke' to do like this,
on other websites, like mail/blog/etc.

[youtube][/youtube] would be inserted, and user can then type/paste in between the tags
(like Ab1x99Z or whatever).
 
Old 07-25-2017, 11:07 AM   #15
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
This seems to be the answer!
http://code.google.com/archive/p/autokey/

It is odd that this feature is not built-in. Thirty years ago with my Sinclair QL I could just enter the shell command altkey 'a','whatever'.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Hotkeys in gnumeric. Creating gnumeric/system hotkeys Alex McGregor Linux - Newbie 1 08-30-2014 12:20 PM
[SOLVED] Hotkeys in gnumeric. Creating gnumeric/system hotkeys Alex McGregor Linux - Software 2 08-30-2014 12:14 PM
Hotkeys kcpaige89 Linux - General 2 12-18-2006 08:57 AM
Hotkeys Thray Linux - General 4 04-05-2004 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration