shbach Man. I have done what you want todo. But I did use xbindkeys
built it from source.
I can bring you the .eopkg
file of xbindkeys
but I think it is safer (but not faster) if you build it from source.
Here are the steps:
1.
Follow this guide for compiling and packaging software in Solus : https://getsol.us/articles/packaging/
2.
Make a file called package.yml and copy and paste the following code into it:
name : xbindkeys
version : 1.8.6
release : 1
source :
- https://www.nongnu.org/xbindkeys/xbindkeys-1.8.6.tar.gz : 6c0d18be19fc19ab9b4595edf3a23c0a6946c8a5eb5c1bc395471c8f9a710d18
license : GPL-2.0-or-later # CHECK ME
component : xorg.apps
summary : xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Window.
description: |
xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Window. It links commands to keys or mouse buttons, using a configuration file. It's independant of the window manager and can capture all keyboard keys (ex: Power, Wake...).
builddeps :
- pkgconfig(x11)
setup : |
%configure --disable-guile
build : |
%make
install : |
%make_install
3.
Then, just run make
in the same directory as the package.yml
file. It will compile it in less than 1 minute if there are not updates to the solbuild image, if yes, you have to wait for updates to be installed.
After that, it will generate a .eopkg
file which you should install with sudo eopkg it xbindkeys-1.8.6-1-1-x86_64.eopkg
4.
Install xdotool
package with sudo eopkg it xdotool
and
cd
into your User folder and run this command printf "\"xdotool key \"F5\"\" \n b:10" > .xbindkeysrc
which will create a file called .xbindkeysrc
which is the configuration file for xbindkeys
.
Finally, just run xbindkeys &
and you should be able to use your extra button to simulate a F5 key.
Of course, when you logout or shutdown/restart your pc you, have to run xbindkeys &
every time in order to work. You can simply make that command autostart everytime you log in (I think you may know how to do that).