View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Dec 17, 2019 4:24 am 
Offline
Joined: Sun Feb 05, 2006 3:16 pm
Posts: 4
Location: Scotland
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


Last edited by kd6ybr on Thu Dec 19, 2019 2:45 pm, edited 1 time in total.


Top
 Profile  
 
PostPosted: Tue Dec 17, 2019 9:06 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
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.

_________________
My System


Top
 Profile  
 
PostPosted: Wed Dec 18, 2019 8:44 am 
Offline
Joined: Sun Feb 05, 2006 3:16 pm
Posts: 4
Location: Scotland
Thanks mattbatt, I'll have a look at the .keylaunchrc file and report back, although it might be after the holidays.

Greg


Top
 Profile  
 
PostPosted: Wed Dec 18, 2019 4:14 pm 
Offline
Joined: Sun Feb 05, 2006 3:16 pm
Posts: 4
Location: Scotland
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


Top
 Profile  
 
PostPosted: Thu Dec 19, 2019 2:43 pm 
Offline
Joined: Sun Feb 05, 2006 3:16 pm
Posts: 4
Location: Scotland
I've changed this line in my file and now I can close Chrome from my remote. :D :D

Code:
key=...XF86HomePage:/usr/bin/pkill -x chrome


Tip: use "xev" from the terminal to identify key names on your remote.


Top
 Profile  
 
PostPosted: Thu Dec 19, 2019 9:30 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Glad you found a way.

_________________
My System


Top
 Profile  
 
PostPosted: Fri Dec 20, 2019 4:47 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
To launch Google Chrome I have actually added a menu item for it. I also find that this works much faster as well.

_________________
Girkers


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu