SliTaz SliTaz Forum

You are not logged in.

#1 2012-05-04 18:48:07

AmiNimA
Member
Registered: 2012-05-02
Posts: 5

Make Fn keys work :)

if you want to make Fn + play/pause/next/previous keys work:

1- install xbindkeys

2- make a file .xbindkeysrc in your home directory

and add something like this:

-----------------------------------------------

#Muter/UnMute

"amixer set "Master" toggle"

    m:0x00 + c:121

    XF86AudioMute

#Volume up

"amixer set "Master" 5%+"

    m:0x0 + c:123

    XF86AudioRaiseVolume

#Volume down

"amixer set "Master" 5%-"

    m:0x0 + c:122

    XF86AudioLowerVolume

#stop alsaplayer

"alsaplayer --pause"

    m:0x0 + c:172

    XF86AudioPlay

#next alsaplayer

"alsaplayer --next"

    m:0x0 + c:171

    XF86AudioNext

#previous alsaplayer"

"alsaplayer --prev"

    m:0x0 + c:173

    XF86AudioPrev

#suspend to ram

"sudo pm-suspend"

    m:0x0 + c:150

    XF86Sleep

-----------------------------------------------

Notes:

+ the last one (suspend to ram) works if you install pm-utils

+ the key codes might be different from mine (1215n Asus). to find out yours, run xbindkeys -k  and hold the keyborad keys when the grab window appears. then you should see the code in terminal.

3- save the file, and run xbindkeys in terminal.

4- run  touch ~/.xbindkeys

+ I don't know why, in alsaplayer when I unpause a media, the speed doubles!

+ you can install deadbeef and use it instead of alsaplayer. it's more functional! and has a built in plugin which can work with Fn keys.

+ now open autostart.sh and add xbindkeys to the end of it, so as Fn keys works after reboot.

+ you can add any shortcut with any command by this method. It's not only for Fn key. and abviousley with any program. for example mplayer. you should just find the commands.

--------

It would be nice if developers add this to the next releas of Slitaz

Offline

#2 2014-06-14 00:03:07

Sidini
Member
Registered: 2014-05-19
Posts: 72

Re: Make Fn keys work :)

Hi! Adding new tricks (my contribution to Slitaz)

If you use Midori as your browser, you can make your keyboard internet navigation keys work by adding the lines below to .xbindkeysrc

***Note that your key codes might be different from mine.

#Open Midori at Homepage

"midori --execute Homepage"

m:0x10 + c:180

Mod2 + XF86HomePage

#Back for previous page

"midori --execute Back"

m:0x10 + c:166

Mod2 + XF86Back

#Forward to next page

"midori --execute Forward"

m:0x10 + c:167

Mod2 + XF86Forward

#Stop loading current page

"midori --execute Stop"

m:0x10 + c:136

Mod2 + Cancel

#Reload/Refresh current page

"midori --execute Reload"

m:0x10 + c:181

Mod2 + XF86Reload

-----------------------

NOTES:

1- If you use Firefox or Google Chrome, there's no need to modify xbindkeysrc file: these browsers automatically recognize the multimedia keys.

Also, if you change from Midori to Firefox or Chrome, you must comment or delete the shortcut above. If you don't do this, it will open a Midori window when you press a navigation button.

2- After modifying xbindkeysrc file, you must close xbindkeys application and re-open it by typing on a terminal:

$ killall xbindkeys

$ xbindkeys

This will make your new modifications work.

I hope this could be useful for someone. ;D

Offline

#3 2014-06-16 07:38:38

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Make Fn keys work :)

nice tweaks - but we have a wiki - it would be nice if you post all your tricks there, it will be more easy for other users to find the information

http://doc.slitaz.org/en:guides:start

Offline

#4 2014-06-16 15:57:19

Sidini
Member
Registered: 2014-05-19
Posts: 72

Re: Make Fn keys work :)

Hi kultex!

I thought that only Slitaz-Team members could modify the guides.

How can I post these tricks there? (Sorry for my newbie-style question, but... I'm a newbie! hehehe)

Offline

#5 2014-06-16 16:45:10

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Make Fn keys work :)

you go on "show pagesource"

there you can register

and then you can play a bit in playground to see how formatting works

Offline

#6 2014-06-16 23:48:41

Sidini
Member
Registered: 2014-05-19
Posts: 72

Re: Make Fn keys work :)

@kultex

Thanks, man! big_smile

I'll register and learn about Slitaz Wiki in my free time.

Write these tweaks was the way I found to saying thanks to the members of forum that helped me. big_smile

Offline

#7 2014-06-21 15:03:18

Sidini
Member
Registered: 2014-05-19
Posts: 72

Re: Make Fn keys work :)

@kultex

I just created a wiki page about xbindkeys:

http://doc.slitaz.org/en:guides:xbindkeys

Please check it out. Feel free to suggest improvements.

(I don't know what to write on Page Review Section...)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]