LinHES Forums http://forum.linhes.org/ |
|
[SOLVED]Launch and quit Chrome from mini wireless keyboard? http://forum.linhes.org/viewtopic.php?f=25&t=25582 |
Page 1 of 1 |
Author: | kd6ybr [ Tue Dec 17, 2019 4:24 am ] |
Post subject: | [SOLVED]Launch and quit Chrome from mini wireless keyboard? |
Hi, I have just done a fresh install of the latest R8 and also installed web-on-Linhes. From a normal keyboard I can launch and quit Chrome using alt-w and ctrl-w respectively. I have bought a generic "Wireless Keyboard Air Mouse Remote" and mapped some of the keys that weren't working properly in the mythtv edit keys section. My problem is that this little keyboard/remote doesn't have a ctrl or alt keys. How would I map other keys on this remote to launch and quit chrome. Because it's seen as a keyboard I don't believe it uses lirc. Thanks in advance, Greg |
Author: | mattbatt [ Tue Dec 17, 2019 9:06 pm ] |
Post subject: | Re: Launch and quit Chrome from mini wireless keyboard/remot |
Does your keyboard have any modifier keys? You can edit the shortcuts by editing " ~/.keylaunchrc " I have a Logitech k400 keyboard that is use often. |
Author: | kd6ybr [ Wed Dec 18, 2019 8:44 am ] |
Post subject: | Re: Launch and quit Chrome from mini wireless keyboard/remot |
Thanks mattbatt, I'll have a look at the .keylaunchrc file and report back, although it might be after the holidays. Greg |
Author: | kd6ybr [ Wed Dec 18, 2019 4:14 pm ] |
Post subject: | Re: Launch and quit Chrome from mini wireless keyboard/remot |
Partial success, I added these 2 lines to my " ~/.keylaunchrc " file. Code: key=...XF86WWW:/usr/bin/google-chrome --no-first-run --start-maximized ||msg_client.py --msg "Chrome is not installed." key=...XF86HomePage:/usr/bin/pkill -x google-chrome The first line launches Chrome but the second line doesn't work to kill Chrome. What should the command be to kill Chrome? The keylaunchrc file only launches Chrome, I'm not sure how ctrl-w kills Chrome. My full file is below. Code: # Copy to $HOME/.keylaunchrc
# # Format: # key=...KeyName:Command # # ... No modifier # *.. Shift # .*. Ctrl # ..* Alt key=*..Return:xterm -fn *-18-* key=..*x:/usr/LH/bin/tvterm.sh key=..*s:/usr/bin/mythtv-setup key=..*u:/usr/LH/bin/unclutter-toggle.sh key=.**u:/usr/LH/bin/unclutter-toggle.sh key=..*h:/usr/MythVantage/bin/mythinstall -H key=..*m:/usr/LH/bin/mythfrontend-start key=..*f:sudo sv restart frontend key=..*w:/usr/bin/google-chrome --no-first-run --start-maximized ||msg_client.py --msg "Chrome is not installed." key=...XF86WWW:/usr/bin/google-chrome --no-first-run --start-maximized ||msg_client.py --msg "Chrome is not installed." key=...XF86HomePage:/usr/bin/pkill -x google-chrome key=..*1:/usr/LH/bin/lh_backend_control.sh start key=..*2:/usr/LH/bin/lh_backend_control.sh stop key=..*3:/usr/LH/bin/lh_backend_control.sh restart |
Author: | kd6ybr [ Thu Dec 19, 2019 2:43 pm ] |
Post subject: | Re: Launch and quit Chrome from mini wireless keyboard/remot |
I've changed this line in my file and now I can close Chrome from my remote. ![]() ![]() Code: key=...XF86HomePage:/usr/bin/pkill -x chrome Tip: use "xev" from the terminal to identify key names on your remote. |
Author: | mattbatt [ Thu Dec 19, 2019 9:30 pm ] |
Post subject: | Re: [SOLVED]Launch and quit Chrome from mini wireless keyboa |
Glad you found a way. |
Author: | Girkers [ Fri Dec 20, 2019 4:47 am ] |
Post subject: | Re: [SOLVED]Launch and quit Chrome from mini wireless keyboa |
To launch Google Chrome I have actually added a menu item for it. I also find that this works much faster as well. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |