Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
193
views
Why does xbindkeys not get the thumbwheel mouse buttons of Logitech MX Master anymore?
The action I configured for the thumbwheel is applied when I enter `xbindkeys -k` and turn the wheel inside the window. However, when I turn that mouse wheel anywhere else, nothing happens. I restart xbindkeys by runnings `xbindkeys` after `killall xbindkeys`. I think recently it had some problems b...
The action I configured for the thumbwheel is applied when I enter
xbindkeys -k
and turn the wheel inside the window.
However, when I turn that mouse wheel anywhere else, nothing happens. I restart xbindkeys by runnings xbindkeys
after killall xbindkeys
.
I think recently it had some problems but usually turning the thumbwheel worked. When quitting that process and running xbindkeys -n
there is no error message. Turning the thumbwheel anywhere while one xbindkey process is running according to the System Monitor does not have an effect. It does not make a difference whether solaar is running or not. I also tried restarting the plasmashell. xbindkeys -k
does not show anything when entering the thumbwheel (only when entering a keyboard key) but that is probably normal.
How to get this to work, what else could I try to make xbindkeys get the mousewheel turning input again?
**It works when xbindkeys-config is running and the mouse is inside it** after pressing Apply but not anywhere else. Under Edit -> View generated rc file the file matches exactly the default config file at /home/username/.xbindkeysrc it still does not work after quitting xbindkeys-config or after running killall -HUP xbindkeys
. I then did run xbindkeys --file /home/username/.xbindkeysrc -v
and it showed the below error too even after running the killall command a few times it doesn't show that error and **shows the correct config that's in .xbindkeysrc**. It still doesn't work.
-----
Previously, I had the problem that xbindkeys-config did not start anymore and xbindkeys -n
returned
*** Warning ***
Please verify that there is not another program running
which captures one of the keys captured by xbindkeys.
It seems that there is a conflict, and xbindkeys can't
grab all the keys defined in its configuration file.
I solved problem 1 by opening up /home/username/.xbindkeysrc in a text editor and commenting out everything and then recreating that file by loading one of the saved profiles in xbindkeys-config but changing its settings by entering the configured key again (turning the thumbwheel) which now seems to be a bit different than before. Maybe that is because of some upgrade.
I solved problem 2 with sudo killall xbindkeys
. Maybe reconnecting with solaar helped.
mYnDstrEAm
(4708 rep)
Oct 6, 2024, 10:00 PM
• Last activity: Oct 31, 2024, 05:03 AM
0
votes
0
answers
20
views
remap NumLock to Right click Menu
6.10.5-arch1-1 MATE desktop (1.28.2-1) I want to open the right-click menu under the mouse cursor using a key. My keyboard has a menu key but that does not raise the menu at the point of the mouse cursor. I have tried `xbindkeys` and `xautomation` with this `~/xbindkeysrc` "xte 'key Menu'" Num_Lock...
6.10.5-arch1-1
MATE desktop (1.28.2-1)
I want to open the right-click menu under the mouse cursor using a key.
My keyboard has a menu key but that does not raise the menu at the point of the mouse cursor.
I have tried
xbindkeys
and xautomation
with this ~/xbindkeysrc
"xte 'key Menu'"
Num_Lock
I have cleared all running instances of xbindkeys using pkill xbindkeys
then run xbindkeys&
But it is not working.
Stephen Boston
(2526 rep)
Aug 19, 2024, 05:27 PM
2
votes
2
answers
131
views
What are c: and m: in xbindkeys configuration?
In the default example configuration for xbindkeys, there is an example of specifying keycodes directly: > ``` > # set directly keycode (here control + f with my keyboard) > #"xterm" > # c:41 + m:0x4 > ``` What do the `c:` and `m:` mean? The documentation for xbindkeys does not shed any light on thi...
In the default example configuration for xbindkeys, there is an example of specifying keycodes directly:
>
> # set directly keycode (here control + f with my keyboard)
> #"xterm"
> # c:41 + m:0x4
>
What do the c:
and m:
mean? The documentation for xbindkeys does not shed any light on this.
Also, I know you can use xbindkeys -k
to find the codes for a key. If that does not work (for one of the nonstandard fn keys, the command does not respond to the keypress and it instead does its normal action), does that mean that xbindkeys
cannot handle that key? Even if I know the keycode from showkey -k
(217 in my case)?
nog642
(133 rep)
Mar 13, 2024, 03:24 AM
• Last activity: May 6, 2024, 01:31 AM
0
votes
1
answers
644
views
How to program a Koolertron macropad?
I bought [this macropad](https://www.amazon.com/Koolertron-Single-Handed-Programmable-Mechanical-Keyboard/dp/B076LRJ528/ref=asc_df_B076LRJ528/?tag=hyprod-20&linkCode=df0&hvadid=312181276443&hvpos=&hvnetw=g&hvrand=4333784923832821142&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9003619...
I bought [this macropad](https://www.amazon.com/Koolertron-Single-Handed-Programmable-Mechanical-Keyboard/dp/B076LRJ528/ref=asc_df_B076LRJ528/?tag=hyprod-20&linkCode=df0&hvadid=312181276443&hvpos=&hvnetw=g&hvrand=4333784923832821142&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9003619&hvtargid=pla-571192155057&psc=1) awhile ago but I haven't been able to figure out how to program it. Right now it types keys like a normal keyboard but I want to beable to run commands when I press the buttons. What would be the best way to make that happen?
Edit: forgot to mention that I'm using Manjaro
Dan
(111 rep)
Feb 28, 2023, 05:04 PM
• Last activity: Oct 14, 2023, 02:47 AM
1
votes
1
answers
389
views
prevent xbindkeys from overriding mouse click when used for mouse button chording
I am trying to set up some mouse button chording, inspired by the Acme text editor: http://acme.cat-v.org/mouse On Windows and Mac, I was able to set up the following using AutoHotKey and Hammerspoon respectively: ``` Left+Middle = Cut (Ctrl+x) Left+Right = Paste (Ctrl+v) Middle+Left = Return Middle...
I am trying to set up some mouse button chording, inspired by the Acme text editor: http://acme.cat-v.org/mouse
On Windows and Mac, I was able to set up the following using AutoHotKey and Hammerspoon respectively:
Left+Middle = Cut (Ctrl+x)
Left+Right = Paste (Ctrl+v)
Middle+Left = Return
Middle+Right = Space
Right+Left = Undo (Ctrl+z)
Right+Middle = Redo (Ctrl+Y / Ctrl+Shift+z)
Middle+Scroll = Switch window
Having moved from Windows to Linux for my main computer, I'm trying to set up the same on Linux. I am running OpenSUSE Tumbleweed with X11 and XFCE.
For simplicity, I'll focus only on cut (Left+Middle = Ctrl+x
) for the following code examples.
---
Using xev
I've found that while the left mouse button is down, the state
variable is set to 0x100
.
So a simple configuration for cut would be:
"xdotool key ctrl+x"
m:0x100 + b:2
This does not work, and I get the infamous warning of conflicting program:
*** Warning ***
Please verify that there is not another program running
which captures one of the keys captured by xbindkeys.
It seems that there is a conflict, and xbindkeys can't
grab all the keys defined in its configuration file.
m:0x4 + b:2
does work (0x4 being Ctrl), so I'm not sure what the problem is.
**Is there a way to get this to work?**
---
Searching around I've found some setups for mouse chording, which I was able to adapt to my needs. These requires guile-support in xbindkeys though.
.xbindkeysrc.scm
(define actionperformed 0)
(define (first-binding)
"First binding"
(xbindkey-function '("b:1") b1-second-binding) ;; Left Mouse Button
)
(define (reset-first-binding)
"Reset first binding"
(ungrab-all-keys)
(remove-all-keys)
(set! actionperformed 0)
(first-binding)
(grab-all-keys)
)
(define (b1-second-binding)
"Left Mouse Button"
(remove-all-keys)
(ungrab-all-keys)
(run-command "xdotool mousedown 1 &") ;; <--- THIS DOES NOT WORK!
;; Left+Middle
(xbindkey-function '("b:2")
(lambda ()
;; Copy
(run-command "xdotool key ctrl+x&")
(run-command "xdotool mouseup 1&")
(set! actionperformed 1)
)
)
;; Release left
(xbindkey-function '(release "b:1")
(lambda ()
(unless actionperformed (begin
(run-command "xdotool mouseup 1&")))
(reset-first-binding)
)
)
(grab-all-keys)
)
(first-binding)
This does make Left+Middle perform a cut operation.
The problem is that the Left click is overridden, and I can therefore not make a simple left click or a text selection.
I added xdotool mousedown 1
to fix this, but it doesn't work.
xdotool
seems to not be able to trigger a mouse-event while the same mouse event is active.
**Is there any way to prevent xbindkeys from overriding the normal action of buttons?**
---
I have another mouse with a button 9, using this I can at least set up something.
Since all the button chords must start with the same button I can only really get 3 chords (+ scrolling), which is half of what I want.
Pressing the buttons is also very awkward, and I can't consider this a permanent solution:
(define (first-binding)
(xbindkey-function '("b:9") second-binding)
)
(define (second-binding)
(remove-all-keys)
(ungrab-all-keys)
(xbindkey-function '("b:2") (lambda () (run-command "xdotool key ctrl+x")))
(xbindkey-function '(Release "b:9") reset-first-binding)
)
(define (reset-first-binding)
(ungrab-all-keys)
(remove-all-keys)
(first-binding)
(grab-all-keys)
)
(first-binding)
**Any ideas on ways to solve this?**
Levi
(61 rep)
Jul 18, 2023, 01:40 PM
• Last activity: Aug 10, 2023, 09:38 PM
0
votes
0
answers
321
views
Xbindkeys to make CTRL + ALT act like ALT GR
I've been able to get CTRL + ALT working (mostly) with `xbindkeys` and `xvkbd`. However for it to work I initially have to press it twice. After that it works smoothly. __Also this doesn't work in some programs such as xed and gnome-terminal and I was wondering why and how to fix this?__ This is my...
I've been able to get CTRL + ALT working (mostly) with
xbindkeys
and xvkbd
.
However for it to work I initially have to press it twice. After that it works smoothly.
__Also this doesn't work in some programs such as xed and gnome-terminal and I was wondering why and how to fix this?__
This is my .xbindkeysrc config:
xvkbd -xsendevent -text '{'"
m:0x1c + c:18
Control+Alt+Mod2 + ccedilla
"xvkbd -xsendevent -text '}'"
m:0x1c + c:19
Control+Alt+Mod2 + agrave
"xvkbd -xsendevent -text '@'"
m:0x1c + c:11
Control+Alt+Mod2 + eacute
"xvkbd -xsendevent -text '#'"
m:0x1c + c:12
Control+Alt+Mod2 + quotedbl
"xvkbd -xsendevent -text '['"
m:0x1c + c:34
Control+Alt+Mod2 + dead_circumflex
"xvkbd -xsendevent -text ']'"
m:0x1c + c:35
Control+Alt+Mod2 + dollar
Why does this not work in xed or gnome-terminal?
Thanks in advance!
RoseannePeeters
(1 rep)
Jul 7, 2023, 10:46 PM
• Last activity: Jul 7, 2023, 10:48 PM
0
votes
1
answers
252
views
xbindkeys, xvkbd, and Firefox
I'm trying to map `alt+j` to the down key and it's working everywhere but Firefox. In `~/.xbindkeysrc`: ``` "xvkbd -xsendevent -text "\[Down]"" alt + j ``` then with `xbindkeys` running, `alt+j` has various effects in Firefox depending on the context. In the address bar, where pressing the down key...
I'm trying to map
alt+j
to the down key and it's working everywhere but Firefox.
In ~/.xbindkeysrc
:
"xvkbd -xsendevent -text "\[Down]""
alt + j
then with xbindkeys
running, alt+j
has various effects in Firefox depending on the context. In the address bar, where pressing the down key would select the next auto-complete option, the address bar flashes and the cursor goes to the end. On most pages it scrolls down as normal. In text boxes it goes to the next line down. In Google Docs the page scrolls down instead of the cursor going to the next line. According to https://www.toptal.com/developers/keycode the down key is being received in JS but with the shift key briefly pressed first.
Any suggestions on how to debug the issue or ideas for alternative ways to remap key combinations that works in all applications would be appreciated.
Andrew
(101 rep)
Oct 23, 2022, 07:53 PM
• Last activity: May 21, 2023, 09:56 PM
0
votes
1
answers
116
views
How to assign various commands to a mouse button, time dependent in xbindkeys?
I need to execute differents commands respect at the time I keep pressed a mouse key. I was looking for an alternative to XMBC in linux, I'm using xbindkeys from a time to now but what I miss from my old config is executing various commands assigned to a button respect to different delays each one....
I need to execute differents commands respect at the time I keep pressed a mouse key.
I was looking for an alternative to XMBC in linux, I'm using xbindkeys from a time to now but what I miss from my old config is executing various commands assigned to a button respect to different delays each one.
I found the scripts in xbindkeys doubleclick useful but those don't acomplish my goal.
My choices then were working with bash or with guile I go with bash I left my answer below.
More answers are welcomed
ltapia
(1 rep)
Apr 18, 2023, 04:24 AM
• Last activity: May 17, 2023, 04:20 PM
9
votes
1
answers
1074
views
Using CapsLock as left mouse button; mostly works but fails with a few things
Linux System Info: OS: GNU/Linux x86_64 Kernel: 3.13.0-24-generic Distro: Linux Mint 17 Qiana, Cinnamon 64-bit 2.2.16 [Based On: Ubuntu 14.04.5 LTS, Trusty Tahr] Due to a disability (spinal injury) which includes finger impairment, I have made some alterations so that I can use my keyboard's CapsLoc...
Linux System Info:
OS: GNU/Linux x86_64
Kernel: 3.13.0-24-generic
Distro: Linux Mint 17 Qiana, Cinnamon 64-bit 2.2.16
[Based On: Ubuntu 14.04.5 LTS, Trusty Tahr]
Due to a disability (spinal injury) which includes finger impairment, I have made some alterations so that I can use my keyboard's CapsLock key as my left mouse button. NumLock is remapped to function as CapsLock.
Almost everything works fine when using CapsLock as a left-click and left-double-click but a few things, listed below, do not...
**EDIT 2019-01-10**
The rest of a long post has been deleted - see my answer below for how to set up the CapsLock key to act as a left mouse button with NumLock remapped to function as CapsLock.
mattst
(525 rep)
Feb 27, 2018, 06:38 PM
• Last activity: Apr 18, 2023, 12:41 PM
0
votes
1
answers
245
views
Is there any way to make xbindkeys intercept hotkeys for certain programs only?
Let's say I have two programs: Program A and Program B. I want to use some hotkey to trigger certain action in Program A. So, I add corresponding lines in `xbindkeysrc` (telling the daemon what to do and what the hotkey is). It works just fine with Program A. The problem is that the same hotkey is u...
Let's say I have two programs: Program A and Program B. I want to use some hotkey to trigger certain action in Program A. So, I add corresponding lines in
xbindkeysrc
(telling the daemon what to do and what the hotkey is). It works just fine with Program A. The problem is that the same hotkey is used in Program B to do something as well (which I am totally happy with). But Program B does not trigger that action anymore because xbindkeys
intercepts the hotkey now.
Is it possible make xbindkeys
to intercept hotkeys for certain programs only or should I take a look at another tool (if so, which one)?
S. N.
(317 rep)
Jan 13, 2023, 03:49 PM
• Last activity: Jan 13, 2023, 10:54 PM
3
votes
1
answers
990
views
How to Bind Alt+Scroll for Zooming (Screen Magnifier) in Awesome Window Manager
In Awesome Window Manager, how can I bind alt+Scroll for zooming? For example, in KDE Plasma, it is done this way: 1) sudo apt install xbindkeys 2) Save the text below into ~/.xbindkeysrc : "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut view_zoom_in" alt + b:4 "qdbus org.kde.kglobalaccel...
In Awesome Window Manager, how can I bind alt+Scroll for zooming?
For example, in KDE Plasma, it is done this way:
1) sudo apt install xbindkeys
2) Save the text below into ~/.xbindkeysrc :
"qdbus org.kde.kglobalaccel /component/kwin invokeShortcut view_zoom_in"
alt + b:4
"qdbus org.kde.kglobalaccel /component/kwin invokeShortcut view_zoom_out"
alt + b:5
3) run: xbindkeys (it will automatically run each reboot, but this will run it now)
Ideally, I'd love to discover an X level solution for this feature. This way I can bind zooming to the mouse scroll wheel in a manner that works in any window manager or desktop environment that is X based.
Lonnie Best
(5415 rep)
Jan 7, 2022, 10:03 AM
• Last activity: Dec 22, 2022, 12:41 PM
2
votes
1
answers
447
views
xbindkeys and messed up outputs
I am trying to set some key bindings inside a virtual machine. So I did `xbindkeys -mk` and started testing keys. The result was somehow not what I expected: Left wind key ===> `m:0x50 + c:115 Mod2+Mod4 + Super_L` x ===> `Mod2+x` ctrl+left-win+x ===> `m:0x54 + c:53 Control+Mod2+Mod4 + x` First, what...
I am trying to set some key bindings inside a virtual machine. So I did
xbindkeys -mk
and started testing keys. The result was somehow not what I expected:
Left wind key ===> m:0x50 + c:115 Mod2+Mod4 + Super_L
x ===> Mod2+x
ctrl+left-win+x ===> m:0x54 + c:53 Control+Mod2+Mod4 + x
First, what should I put in the xbindkeyrc
and second, why do I get this output?
r004
(3549 rep)
Apr 21, 2014, 09:58 AM
• Last activity: Oct 13, 2022, 11:39 AM
0
votes
1
answers
205
views
xbindkeys bind cursor move to right or left key press
I would like to program my mouse such that whenever the cursor is shifted right or left, the OS interprets this as a right key press or left key press. Which mouse events correspond to cursor right and left, and what would be the syntax to use in xbindkeys (as this seems like the right tool for it)....
I would like to program my mouse such that whenever the cursor is shifted right or left, the OS interprets this as a right key press or left key press.
Which mouse events correspond to cursor right and left, and what would be the syntax to use in xbindkeys (as this seems like the right tool for it).
Using
xev -event mouse
I see the cursor move gives MotionNotify events - can somehow cause the reception of this event to cause a right/left key press?
Cheetaiean
(372 rep)
Jul 22, 2022, 10:00 PM
• Last activity: Jul 23, 2022, 12:32 AM
6
votes
1
answers
2951
views
Control+Shift + Mouse Wheel with xbindkeys shortcuts propagate
My `.xbindkeysrc` file includes: "amixer sset -q 'Master' 10%+" control + shift + b:4 "amixer sset -q 'Master' 10%-" control + shift + b:5 Which allows me to control sound volume with Ctrl + Shift + **Mouse Wheel**. This worked perfectly fine until a recent upgrade. Currently this works, but it also...
My
.xbindkeysrc
file includes:
"amixer sset -q 'Master' 10%+"
control + shift + b:4
"amixer sset -q 'Master' 10%-"
control + shift + b:5
Which allows me to control sound volume with Ctrl + Shift + **Mouse Wheel**.
This worked perfectly fine until a recent upgrade.
Currently this works, but it also passes Ctrl + **Wheel** to the underlying window - which usually results in zoom in/out (for example in the browser or in terminator).
**How can I change the volume without zooming? :-)**
I am using arch linux, and gnome with xorg.
- gnome 41.3
- X.Org X Server 21.1.3
Update: the same happens also when using [sxhkd](https://wiki.archlinux.org/index.php/Sxhkd) .
(2022-02, Updated versions, problem persists)
Udi
(193 rep)
Jan 13, 2017, 07:01 PM
• Last activity: Feb 16, 2022, 09:03 PM
5
votes
1
answers
1462
views
xbindkeys (xvkbd): stuck CTRL with Debian Stretch
I am using `xbindkeys` with `xvkbd` to add some magic to additional buttons on my mouse which I can press with my thumb. For this, I have `xbindkeys` in my `~/.xsessionrc` and the following lines in `~/.xbindkeysrc`: "xvkbd -text "\[Control]\[Prior]"" m:0x0 + b:15 "xvkbd -text "\[Control]\[Next]"" m...
I am using
xbindkeys
with xvkbd
to add some magic to additional buttons on my mouse which I can press with my thumb. For this, I have xbindkeys
in my ~/.xsessionrc
and the following lines in ~/.xbindkeysrc
:
"xvkbd -text "\[Control]\[Prior]""
m:0x0 + b:15
"xvkbd -text "\[Control]\[Next]""
m:0x0 + b:13
"xvkbd -text "\[Control]t""
m:0x0 + b:17
This setup was working perfectly for the past two years. After the upgrade from Debian Jessie to Debian Stretch I noticed that the control key sometimes appears to be still pressed after using the mouse button once. As a result, every key action x
behaves as Ctrl+x
. This also causes the mouse buttons to not work as expected.
- Debian 9 Stretch, amd64
- xbindkeys 1.8.6-1+b1
- xvkbd 3.3-1+b1
- Mate + xmonad
C-Otto
(427 rep)
Jun 25, 2017, 09:36 PM
• Last activity: Nov 26, 2021, 01:48 AM
1
votes
1
answers
147
views
Can I stop NetworkManager from using my media key?
I am on a Thinkpad 460S. There is a media key on the keyboard to cut the wifi via Rfkill (F8). NetworkManager is grabbing the key and everytime it is pressed, disable or reenable the rfkill switch. I dont want this to happen and I'd rather use this key in xbindkeys (not usable atm since it is grabbe...
I am on a Thinkpad 460S. There is a media key on the keyboard to cut the wifi via Rfkill (F8).
NetworkManager is grabbing the key and everytime it is pressed, disable or reenable the rfkill switch.
I dont want this to happen and I'd rather use this key in xbindkeys (not usable atm since it is grabbed by NetworkManager).
Is there a way to stop NetworkManager from doing that?
Samuel-Zacharie Faure
(121 rep)
Jul 28, 2021, 03:05 PM
• Last activity: Jul 28, 2021, 08:34 PM
7
votes
2
answers
5290
views
How to remap keys only for a particular keyboard in Linux?
I have a numpad connected via USB and my goal is to be able to remap keys on that numpad so they can run custom commands or be mapped to other key combinations. I have this in my `.xbindkeysrc` file: ~ $ cat .xbindkeysrc "xte 'keydown Super_L' 'key Left' 'keyup Super_L'" m:0x10 + c:79 + Release Mod2...
I have a numpad connected via USB and my goal is to be able to remap keys on that numpad so they can run custom commands or be mapped to other key combinations.
I have this in my
.xbindkeysrc
file:
~ $ cat .xbindkeysrc
"xte 'keydown Super_L' 'key Left' 'keyup Super_L'"
m:0x10 + c:79 + Release
Mod2 + KP_Home
This remaps the NUM 7 key (which normally prints 7) to Super_L + Left Arrow
. That's great and it works, BUT FOR ALL KEYBOARDS, while my goal is to make it work only for the numpad.
Been searching how to do it, but the closest I got was to use xinput set-button-map
. Unfortunately, this seems to only work for devices like mouses. I like tried fetching what the button map is for the numpad with xinput get-button-map [device id]
but it just prints numbers from 1 to 7 and I definitely have more buttons on my keypad, so it doesn't necessarily make sense.
Any advice?
orion3
(211 rep)
Aug 16, 2019, 08:17 AM
• Last activity: Jul 25, 2021, 06:19 PM
1
votes
0
answers
135
views
bind held key without blocking typing
I have a foot pedal that I would like to toggle a file's contents when pressed and released. I have got the foot pedal acting like a normal key with a keycode and disabled it from repeating with `xset -r `. But when I bind it to a command with sxhkd/xbindkeys they block me from typing while it is pr...
I have a foot pedal that I would like to toggle a file's contents when pressed and released.
I have got the foot pedal acting like a normal key with a keycode and disabled it from repeating with
xset -r
.
But when I bind it to a command with sxhkd/xbindkeys they block me from typing while it is pressed. I need to be able to type while it is pressed.
sxhkd:
F25
echo dictate > ~/mode
@F25
echo command > ~/mode
utamdekq
(21 rep)
Apr 30, 2021, 02:28 PM
• Last activity: Apr 30, 2021, 02:53 PM
2
votes
0
answers
1209
views
xbindkeys claims there is a conflict with another program, which makes it unable to grab all the defined keys
I installed `xbindkeys` to catch my custom key shortcuts, and `xte` in order to emulate the key presses i want to execute. This **does** work, but with a lot of issues. I have to press my key combination very many times in order to get it to work once in a while, the success rate on that being about...
I installed
xbindkeys
to catch my custom key shortcuts, and xte
in order to emulate the key presses i want to execute. This **does** work, but with a lot of issues.
I have to press my key combination very many times in order to get it to work once in a while, the success rate on that being about 15% or so. So as recommended by the archwiki , i ran xbindkeys -n
to see if any errors are encountered, which gave me the following output:
> *** Warning ***\
> Please verify that there is not another program running\
> which captures one of the keys captured by xbindkeys.\
> It seems that there is a conflict, and xbindkeys can't\
> grab all the keys defined in its configuration file.
To my knowledge, i haven't installed any software that should conflict with catching pressed keys (at least not on purpose). I am running Xubuntu 20.40, and i don't know if any such software comes with it...
If it makes any difference, the keys are all defined with the Super modifier. I did remove all the default shortcuts from XFCE that implement the Super key, from the Keyboard > Application shortcuts, and from the Window Manager > Keyboard entries.
How would i check to see what is causing the conflict, and then go about resolving it?
Digital Ninja
(235 rep)
Jan 18, 2021, 12:28 PM
2
votes
1
answers
4109
views
How to use xbindkeys?
I am trying to run Chromium when "Ctrl + shift + Alt + p" is pressed. I Install xbindkeys and xbindkey-config. Next, creating a file at home directory (`touch ~/.xbindkeysrc`), then set it as default (`xbindkeys --defaults > /home/pi/xbindkeysrc`). Then added this code to the file: "chromium" F8 | m...
I am trying to run Chromium when "Ctrl + shift + Alt + p" is pressed. I Install xbindkeys and xbindkey-config. Next, creating a file at home directory (
touch ~/.xbindkeysrc
), then set it as default (xbindkeys --defaults > /home/pi/xbindkeysrc
). Then added this code to the file:
"chromium"
F8 | m:OxO + c:74
Following [Archlinux's tutorial](https://wiki.archlinux.org/index.php/Xbindkeys) , I used xbindkeys --poll-rc
to reload the configuration file and apply the changes. Finally killed and reload the xbindkeys(killall xbindkeys; xbindkeys
).
But, when F8 is pressed, Chromium does not launch on the Raspberry Pi
Daeshaun Morrison
(21 rep)
Mar 22, 2020, 08:32 PM
• Last activity: Jan 6, 2021, 06:20 AM
Showing page 1 of 20 total questions