Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   trouble with custom keyboard shortcuts in gnome 3.4 (http://www.linux-archive.org/gentoo-user/707674-trouble-custom-keyboard-shortcuts-gnome-3-4-a.html)

Allan Gottlieb 09-26-2012 10:21 PM

trouble with custom keyboard shortcuts in gnome 3.4
 
My new install is gnome 3.4, which is running pretty well.
I am having trouble with an (important-to-me) custom keyboard shortcut.

I am an emacs user so changed many of the shortcuts to use the "Windows
key", i.e. super. This works Super+Up moves to the workspace above,
etc.

However, I have had 2 custom keyboards with previous gnome's

Super+T gnome-terminal
Super+E emacs

This does not work. Pressing Super+T gives t, Super+E gives e.

However if I set the shortcuts to be
alt+T gnome-terminal
alt+e emacs
it works fine. However, I can't give up alt+T and alt+e as they are
used in emacs.

thanks,
allan

Canek Peláez Valdés 09-27-2012 02:11 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Wed, Sep 26, 2012 at 5:21 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
> My new install is gnome 3.4, which is running pretty well.
> I am having trouble with an (important-to-me) custom keyboard shortcut.
>
> I am an emacs user so changed many of the shortcuts to use the "Windows
> key", i.e. super. This works Super+Up moves to the workspace above,
> etc.

Be aware that Super+Up, Super+Left, and Super+Right work for maximize,
mazimize to the left, and maximize to the right.

> However, I have had 2 custom keyboards with previous gnome's
>
> Super+T gnome-terminal
> Super+E emacs
>
> This does not work. Pressing Super+T gives t, Super+E gives e.
>
> However if I set the shortcuts to be
> alt+T gnome-terminal
> alt+e emacs
> it works fine. However, I can't give up alt+T and alt+e as they are
> used in emacs.

Known bug:

https://bugzilla.gnome.org/show_bug.cgi?id=659899
https://bugzilla.gnome.org/show_bug.cgi?id=655615

Basically, GNOME Shell treats the Super key as special, and sometimes
shortcuts binded to it fail. It is a bug, however, and devs are
discussing how to handle it. In the mean time, may I recommend trying:

Ctrl+Alt+e -> Emacs
Ctrl+Alt+t -> Terminal

It is not optimal, and the bug should be fixed. But it has a workaround.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Canek Peláez Valdés 09-27-2012 02:14 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Wed, Sep 26, 2012 at 9:11 PM, Canek Peláez Valdés <caneko@gmail.com> wrote:
> On Wed, Sep 26, 2012 at 5:21 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>> My new install is gnome 3.4, which is running pretty well.
>> I am having trouble with an (important-to-me) custom keyboard shortcut.
>>
>> I am an emacs user so changed many of the shortcuts to use the "Windows
>> key", i.e. super. This works Super+Up moves to the workspace above,
>> etc.
>
> Be aware that Super+Up, Super+Left, and Super+Right work for maximize,
> mazimize to the left, and maximize to the right.
>
>> However, I have had 2 custom keyboards with previous gnome's
>>
>> Super+T gnome-terminal
>> Super+E emacs
>>
>> This does not work. Pressing Super+T gives t, Super+E gives e.
>>
>> However if I set the shortcuts to be
>> alt+T gnome-terminal
>> alt+e emacs
>> it works fine. However, I can't give up alt+T and alt+e as they are
>> used in emacs.
>
> Known bug:
>
> https://bugzilla.gnome.org/show_bug.cgi?id=659899
> https://bugzilla.gnome.org/show_bug.cgi?id=655615
>
> Basically, GNOME Shell treats the Super key as special, and sometimes
> shortcuts binded to it fail. It is a bug, however, and devs are
> discussing how to handle it. In the mean time, may I recommend trying:
>
> Ctrl+Alt+e -> Emacs
> Ctrl+Alt+t -> Terminal
>
> It is not optimal, and the bug should be fixed. But it has a workaround.
>
> Regards.

BTW, it can be done with an extension (according to the bug) using
global.display.add_keybinding(). I haven't wrote any GNOME Shell
extension, but I've heard it's not difficult.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Allan Gottlieb 09-28-2012 12:29 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Wed, Sep 26 2012, Canek Peláez Valdés wrote:

> On Wed, Sep 26, 2012 at 5:21 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>> My new install is gnome 3.4, which is running pretty well.
>> I am having trouble with an (important-to-me) custom keyboard shortcut.
>>
>> I am an emacs user so changed many of the shortcuts to use the "Windows
>> key", i.e. super. This works Super+Up moves to the workspace above,
>> etc.
>
> Be aware that Super+Up, Super+Left, and Super+Right work for maximize,
> mazimize to the left, and maximize to the right.

I remap those to window above/below

>> However, I have had 2 custom keyboards with previous gnome's
>>
>> Super+T gnome-terminal
>> Super+E emacs
>>
>> This does not work. Pressing Super+T gives t, Super+E gives e.
>
> Known bug:
>
> https://bugzilla.gnome.org/show_bug.cgi?id=659899
> https://bugzilla.gnome.org/show_bug.cgi?id=655615

Thanks. I just added myself to the CC list for both.

> In the mean time, may I recommend trying:
>
> Ctrl+Alt+e -> Emacs
> Ctrl+Alt+t -> Terminal
>
> It is not optimal, and the bug should be fixed. But it has a workaround.

Both those keys are mapped to standard (useful) emacs commands.

Also in emacs Ctrl+Alt+Shift+e is translated into Ctrl+Alt+e
and the same for t.

I might ask on the emacs list if messing with the translate table is
advisable for competent-but-not-wizard emacs users. I hesitate since
Ctrl+Alt+Shift+e is not so easy to type and it might be easier to just
hit super (activities view) and then select emacs/gnome-terminal from
the favorites list.

thanks again,
allan

Canek Peláez Valdés 09-28-2012 01:06 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Thu, Sep 27, 2012 at 7:29 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
> On Wed, Sep 26 2012, Canek Peláez Valdés wrote:
>
>> On Wed, Sep 26, 2012 at 5:21 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>>> My new install is gnome 3.4, which is running pretty well.
>>> I am having trouble with an (important-to-me) custom keyboard shortcut.
>>>
>>> I am an emacs user so changed many of the shortcuts to use the "Windows
>>> key", i.e. super. This works Super+Up moves to the workspace above,
>>> etc.
>>
>> Be aware that Super+Up, Super+Left, and Super+Right work for maximize,
>> mazimize to the left, and maximize to the right.
>
> I remap those to window above/below
>
>>> However, I have had 2 custom keyboards with previous gnome's
>>>
>>> Super+T gnome-terminal
>>> Super+E emacs
>>>
>>> This does not work. Pressing Super+T gives t, Super+E gives e.
>>
>> Known bug:
>>
>> https://bugzilla.gnome.org/show_bug.cgi?id=659899
>> https://bugzilla.gnome.org/show_bug.cgi?id=655615
>
> Thanks. I just added myself to the CC list for both.
>
>> In the mean time, may I recommend trying:
>>
>> Ctrl+Alt+e -> Emacs
>> Ctrl+Alt+t -> Terminal
>>
>> It is not optimal, and the bug should be fixed. But it has a workaround.
>
> Both those keys are mapped to standard (useful) emacs commands.

Custom, I suppose? I've been using Emacs since 1996, and I certainly
don't have C-M-e nor C-M-t defined.

> Also in emacs Ctrl+Alt+Shift+e is translated into Ctrl+Alt+e
> and the same for t.
>
> I might ask on the emacs list if messing with the translate table is
> advisable for competent-but-not-wizard emacs users. I hesitate since
> Ctrl+Alt+Shift+e is not so easy to type and it might be easier to just
> hit super (activities view) and then select emacs/gnome-terminal from
> the favorites list.

I usually launch from the activities view. It's fast enough to do
Super -> e -> m (and Emacs jump to the first selected item). I believe
if you have a program in your favorites, it jumps faster (I just now
realized that Super -> e brings me Emacs right away).

Anyway, with some luck the bug will be closes soon enough.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Allan Gottlieb 09-28-2012 01:33 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Thu, Sep 27 2012, Canek Peláez Valdés wrote:

> On Thu, Sep 27, 2012 at 7:29 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>> On Wed, Sep 26 2012, Canek Peláez Valdés wrote:
>>
>>> In the mean time, may I recommend trying:
>>>
>>> Ctrl+Alt+e -> Emacs
>>> Ctrl+Alt+t -> Terminal
>>>
>>> It is not optimal, and the bug should be fixed. But it has a workaround.
>>
>> Both those keys are mapped to standard (useful) emacs commands.
>
> Custom, I suppose? I've been using Emacs since 1996,

1985 for me.

> and I certainly don't have C-M-e nor C-M-t defined.

I would think that you do. Type C-h k C-M-e and you will get

C-M-e runs the command end-of-defun, which is an interactive compiled
Lisp function in `lisp.el'.

It is bound to <C-M-end>, C-M-e, ESC <C-end>.

(end-of-defun &optional ARG)

Move forward to next end of defun.
With argument, do it that many times.
Negative argument -N means move back to Nth preceding end of defun.

An end of a defun occurs right after the close-parenthesis that
matches the open-parenthesis that starts a defun; see function
`beginning-of-defun'.

If variable `end-of-defun-function' is non-nil, its value
is called as a function to find the defun's end.

>> I might ask on the emacs list if messing with the translate table is
>> advisable for competent-but-not-wizard emacs users. I hesitate since
>> Ctrl+Alt+Shift+e is not so easy to type and it might be easier to just
>> hit super (activities view) and then select emacs/gnome-terminal from
>> the favorites list.
>
> I usually launch from the activities view. It's fast enough to do
> Super -> e -> m (and Emacs jump to the first selected item). I believe
> if you have a program in your favorites, it jumps faster (I just now
> realized that Super -> e brings me Emacs right away).

Yes this is my current plan.

> Anyway, with some luck the bug will be closes soon enough.

Agreed.

allan

Canek Peláez Valdés 09-28-2012 03:58 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Thu, Sep 27, 2012 at 8:33 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
> On Thu, Sep 27 2012, Canek Peláez Valdés wrote:
>
>> On Thu, Sep 27, 2012 at 7:29 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>>> On Wed, Sep 26 2012, Canek Peláez Valdés wrote:
>>>
>>>> In the mean time, may I recommend trying:
>>>>
>>>> Ctrl+Alt+e -> Emacs
>>>> Ctrl+Alt+t -> Terminal
>>>>
>>>> It is not optimal, and the bug should be fixed. But it has a workaround.
>>>
>>> Both those keys are mapped to standard (useful) emacs commands.
>>
>> Custom, I suppose? I've been using Emacs since 1996,
>
> 1985 for me.
>
>> and I certainly don't have C-M-e nor C-M-t defined.
>
> I would think that you do. Type C-h k C-M-e and you will get
>
> C-M-e runs the command end-of-defun, which is an interactive compiled
> Lisp function in `lisp.el'.

You are right. I didn't knew that one.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Allan Gottlieb 09-28-2012 04:44 AM

trouble with custom keyboard shortcuts in gnome 3.4
 
On Thu, Sep 27 2012, Canek Peláez Valdés wrote:

> On Thu, Sep 27, 2012 at 8:33 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>>
>> C-M-e runs the command end-of-defun, which is an interactive compiled
>> Lisp function in `lisp.el'.
>
> You are right. I didn't knew that one.

It is actually quite useful and, despite the name is not limited to
lisp. Same with C-M-t.

allan


All times are GMT. The time now is 12:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.