[Solved] Programming function keys

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

[Solved] Programming function keys

Postby Gandalf the White on Mon Jan 21, 2013 8:47 am

How would I program a Function Key in the Cinnamon environment?

Is there a URL tutorial for programming Cinnamon Function keys?
Last edited by Gandalf the White on Sat Apr 05, 2014 8:12 pm, edited 1 time in total.
OS -LinuxMint 64-bit, Release 14, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 81
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth

Linux Mint is funded by ads and donations.
 

Re: Programming function keys

Postby xenopeek on Mon Jan 21, 2013 9:57 am

Do you perhaps mean to configure a function key as a keyboard shortcut? Open Keyboard from the menu, go to the Keyboard Shortcuts tab and have at it. Though note that some applications may use the function keys, as does for example Cinnamon itself for window management controls (Alt + various function keys).
Forum Rules | IRC Channel Rules
Image
Arch Linux / 64-bit / Gnome Shell
User avatar
xenopeek
Level 21
Level 21
 
Posts: 13711
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Programming function keys

Postby Gandalf the White on Tue Jan 22, 2013 5:00 am

xenopeek wrote:Do you perhaps mean to configure a function key as a keyboard shortcut? Open Keyboard from the menu, go to the Keyboard Shortcuts tab and have at it. Though note that some applications may use the function keys, as does for example Cinnamon itself for window management controls (Alt + various function keys).

I must be denser than I look. Could you out together an example tutorial for me.
What goes in where?

Thanks.
OS -LinuxMint 64-bit, Release 14, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 81
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth

Re: Programming function keys

Postby xenopeek on Tue Jan 22, 2013 6:22 am

Right, so I was typing how to do this and moving along with an example. But it doesn't work! Any keyboard binding I tried doesn't actually run the command I give. I think this functionality is broken, or perhaps somebody else can pipe in on this what I'm doing wrong :roll:

-----

Open your Menu, open Cinnamon Settings, open Keyboard from there. Go to the Keyboard Shortcuts tab.

Click the "Add custom shortcut" button near the bottom of the window. For Name, enter something that will help you remember what this is. As an example, I'll enter "Kill Program". For Command, enter the command that should be run. You can use the button beside it on the right to browse to a program to run, or you can manually enter the command to run. As an example, I'll enter "xkill". Click Add to complete.

You'll find your new shortcut in the Custom Shortcuts category, which you can select in the list on the left side of the window. It will show the list of keyboard shortcuts in this category in the top list on the right side of the window. You can select your new shortcut there. It will then show the keyboard bindings for your new shortcut in the list beneath that. It will display "unassigned", because you didn't set a keyboard binding yet.

Click on "unassigned" to highlight it, then click again and the text should change to "New accelerator...". You can now press the key combination you want your new shortcut. For my example I will use Ctrl+Alt+X, so I press and hold the Ctrl and Alt keys, and add the 'x' key. The text that first read "unassigned" now has changed to "Ctrl-Alt-x".

-----

I tried Ctrl+X, Alt+X, and other combinations. None worked. I used the full path to xkill, /usr/bin/xkill, but that also didn't help. I restarted Cinnamon, logged out and in again, and even rebooted as some issue on GitHub suggested, but none of it worked... So though I thought I knew how to add a keyboard shortcut, it appears either I don't or this functionality is broken in Cinnamon :(
Forum Rules | IRC Channel Rules
Image
Arch Linux / 64-bit / Gnome Shell
User avatar
xenopeek
Level 21
Level 21
 
Posts: 13711
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Programming function keys

Postby Gandalf the White on Tue Jan 22, 2013 6:29 am

Thanks, xenopeek. Seem I'm not that batty after all.
OS -LinuxMint 64-bit, Release 14, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 81
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth

Re: Programming function keys

Postby Gandalf the White on Tue Jan 22, 2013 8:19 am

I may have found a program (keytouch) for defining function keys, but my keyboard is to new and they don't have a structure for it yet.
For those with older keyboards... http://keytouch.sourceforge.net/download.php

I hope it work for you.
OS -LinuxMint 64-bit, Release 14, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 81
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth


Return to Cinnamon

Who is online

Users browsing this forum: No registered users and 9 guests