You are not logged in.

#1 2018-07-14 17:54:57

zw963
Member
Registered: 2018-06-18
Posts: 195

xbindkeys binding C-M to other command invalid in most app (SOLVED)

Hi, I am a newbie for Arch linux.

I always like to binding a command with xbindkeys, it work well for others distro, Slackware, Opensuse, Deepin.

But, when i switch to Arch(KDE), xbindkeys binding C-M  is not worked for most case.

following is xbindkeys script  example

```
"switch_to_terminal"
control + m
```

What I expect is in any case, I will run C-M to switch to current active terminal, then C-M, switch back previous app.

This scripts is worked well for several years,  Just for some case, e.g.  in firefox or in terminal, C-M translate to a `RET`,
to and a newline, but those never happen in other distro.

Thanks

Last edited by zw963 (2018-09-23 19:36:01)

Offline

#2 2018-07-14 18:47:03

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

Works fine here, FF doesn't do stupid things like reading directly from kernel events or so.

loginctl session-status

Offline

#3 2018-07-15 08:04:50

zw963
Member
Registered: 2018-06-18
Posts: 195

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

But, in my case, `Ctrl+M` binding to a script working in emacs, not working for terminal or FF.

Offline

#4 2018-07-15 08:19:24

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

Because those are *entirely* different things…

If you want help, please post the demanded outputs.

Offline

#5 2018-07-15 09:34:05

zw963
Member
Registered: 2018-06-18
Posts: 195

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

switch_to_terminal is just a bash shell script which work well, what i want is,
use xbindkeys, to binding Ctrl+M with run switch_to_terminal command.

What wrong is: current active app if is emacs, it worked, can switch to terminal,
But, when Press Ctrl+M again, what i expect is switch back to emacs, but not work,
just inset a new line in terminal.

Thanks

Offline

#6 2018-07-15 11:39:19

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

seth wrote:

Because those are *entirely* different things…

If you want help, please post the demanded outputs.

I'll not write that again. If you reject to provide the requested data on the *actual* condition of your system, I'll just unsubscribe and report the thread fro TGN.

Offline

#7 2018-07-16 16:07:48

zw963
Member
Registered: 2018-06-18
Posts: 195

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

> I'll not write that again. If you reject to provide the requested data on the *actual* condition of your system, I'll just unsubscribe and report the thread fro TGN.

Sorry for don't know what means about  `requested data` and `TGN`, anyway, thanks for help, i will try to get help from other medias.

Offline

#8 2018-07-16 16:14:55

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

I've asked you to provide the session status and told you the command to execute.
The reason why it doesn't work is most likely simply because you're not running the xbindkeys daemon at all (or that your config is broken), because otherwise the event would not be handed to emacs to be handled there.

TGN means "topic going nowhere" and is a polite way to indicate the *actual* problem, which is layer 8.

Offline

#9 2018-09-16 15:16:37

zw963
Member
Registered: 2018-06-18
Posts: 195

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

Hi, this issue i resolved partially now.

after update to recent version Xorg, binding to default escaped hotkey, e.g. (Ctrl+i, Ctrl +M), all invalid. (early version can work)
so, I have to binding to another key binding, xbindkeys is working, only Xorg changed.

When say to emacs, it is specially, maybe it use some X function directly. so, Ctrl+M still work.

so, my solution is to avoid binding to those key, change to other binding.

Thanks all

Last edited by zw963 (2018-09-16 15:18:38)

Offline

#10 2018-09-16 15:21:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

zw963 wrote:

Thanks all

I assume you are thanking your alternate personalites as there is only one other person here who tried to help you, and it's a bit disengenuous to "thank" him when you completely ignored and disregarded everything he said.

But if you are satisfied with your work around, then please mark the thread as [SOLVED] (so that no one else gets roped into trying to help).

Last edited by Trilby (2018-09-16 15:23:27)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2018-09-23 19:36:52

zw963
Member
Registered: 2018-06-18
Posts: 195

Re: xbindkeys binding C-M to other command invalid in most app (SOLVED)

Trilby wrote:
zw963 wrote:

Thanks all

I assume you are thanking your alternate personalites as there is only one other person here who tried to help you, and it's a bit disengenuous to "thank" him when you completely ignored and disregarded everything he said.

But if you are satisfied with your work around, then please mark the thread as [SOLVED] (so that no one else gets roped into trying to help).

Done, seem like I misunderstood 'Resolved' and 'SOLVED'. : )

Offline

Board footer

Powered by FluxBB