(Cinnamon 17.1) Cannot set F6+F8 as keyboard shortcuts

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ericramos1990

(Cinnamon 17.1) Cannot set F6+F8 as keyboard shortcuts

Post by ericramos1990 »

Hello all!

I just upgraded to 17.1, however I encountered a very small problem using Cinnamon

I cannot set buttons F6 or F8 as custom keyboard shortcuts. I was able to set basically every other F-button, except those 2!

I'm assuming Cinnamon is accepting the input of those 2 as something

Please let me know if there is a fix to this, otherwise I will have to use an xmodmap workaround :P
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
yerc

Re: (Cinnamon 17.1) Cannot set F6+F8 as keyboard shortcuts

Post by yerc »

In Linux Mint Cinnamon 17, I was able to set F6 as keyboard shortcut.
The same with F8.

I also found that the upgrade to 17.1 does not allow setting those keys as keyboard shortcuts.

Does anyone have a fix for this?
ericramos1990

Re: (Cinnamon 17.1) Cannot set F6+F8 as keyboard shortcuts

Post by ericramos1990 »

Hey there yerc,

I have suffered from the same problem, but I made a workaround :)

Using xmodmap (you have it installed already), I made f6 and f8 change into different buttons:

Code: Select all

xmodmap -e "keycode 72 = XF86Launch6 NoSymbol XF86Launch6"
xmodmap -e "keycode 74 = XF86Launch8 NoSymbol XF86Launch8"
Since we probably have different keyboards, your keycodes may be different (72 and 74)

Go to a terminal, and type "xev" (you have it installed already too)

And then simply press F6 and F8, (look for the keycodes for each button) it should be on the 3rd to last line.

Then just switch the keycodes with mine.

Then you can use your F6 and F8 for keyboard shortcuts like you were able to before.


You are going to have to run

Code: Select all

xmodmap -e "keycode 72 = XF86Launch6 NoSymbol XF86Launch6"
xmodmap -e "keycode 74 = XF86Launch8 NoSymbol XF86Launch8"
every time for it to work, let me know if you need help with having it run everytime you boot

Feel free to let me know if you still need help :)
yerc

Re: (Cinnamon 17.1) Cannot set F6+F8 as keyboard shortcuts

Post by yerc »

ericramos1990 wrote:Hey there yerc,
You are going to have to run

Code: Select all

xmodmap -e "keycode 72 = XF86Launch6 NoSymbol XF86Launch6"
xmodmap -e "keycode 74 = XF86Launch8 NoSymbol XF86Launch8"
every time for it to work, let me know if you need help with having it run everytime you boot

Feel free to let me know if you still need help :)
Worked for me ericramos1990.

So how do you run it at boot time?

Edit 17 Dec 2014
: I added the commands to Startup Applications and restarted. Voila all good.

Thanks eric
ericramos1990

Re: (Cinnamon 17.1) Cannot set F6+F8 as keyboard shortcuts

Post by ericramos1990 »

No problem yerc, sorry about taking so long to reply.

I was actually going to suggest a more advanced version using the "cron" command, but that works nicely too :)

Let me know if you ever want to learn cron!

Have fun man!
Locked

Return to “Cinnamon”