Coder Social home page Coder Social logo

Comments (8)

nikitabobko avatar nikitabobko commented on May 27, 2024

The same issue in Amethyst ianyh/Amethyst#1091

from aerospace.

wojciech-kulik avatar wojciech-kulik commented on May 27, 2024

As a workaround, you can use skhd, a single line in the config:

lalt - l : aerospace focus right

from aerospace.

GraemeARobinson avatar GraemeARobinson commented on May 27, 2024

@wojciech-kulik, neat solution. Would be good if this was included in aerospace in future though but good to have a workaround

from aerospace.

GraemeARobinson avatar GraemeARobinson commented on May 27, 2024

Unfortunately this workaround doesn't work when secure input is enabled, which is sometimes enforced by running apps 😢

from aerospace.

webskydavid avatar webskydavid commented on May 27, 2024

I also miss this feature. The only solution for me is to disable the AeroSpace when typing special letters.

from aerospace.

webskydavid avatar webskydavid commented on May 27, 2024

Someone wanted to add this keys but it seems it does not work.
image

from aerospace.

lknop avatar lknop commented on May 27, 2024

Due to this issue I stopped using Aerospace (and Mac altogether) for some time. However, I need to swtich to MacOS temporarily and having used i3 for quite some time I decided to figure out the solution. I saw the skhd workaround, though I was under the impression that Aerospace was intercepting the option key completely in that version. I haven't checked the code if anything changed in that area but in the latest version I got this to work (with a workaround) and since I am using karabiner with goku for my keyboard shortcuts, I will paste my version of the workaround.

karabiner.edn

:main [
     {:des "Change left_option to 3 modifiers combination, f17 when used alone"
         :rules [[:left_option :!COleft_control nil {:alone [:f17]}]]}
  ]

this remaps left option to alt-cmd-ctrl, which can then be used in Aerospace shortcuts, leaving right option as the default modifier for accented letters. I also had to modify other shortcuts from alt to alt-cmd-ctrl but the sample below should be enough to get started.

.aerospace.toml

alt-cmd-ctrl-1 = 'workspace 1'
alt-cmd-ctrl-2 = 'workspace 2'
alt-cmd-ctrl-3 = 'workspace 3'
alt-cmd-ctrl-4 = 'workspace 4'
alt-cmd-ctrl-5 = 'workspace 5'


alt-cmd-ctrl-shift-1 = 'move-node-to-workspace 1'
alt-cmd-ctrl-shift-2 = 'move-node-to-workspace 2'
alt-cmd-ctrl-shift-3 = 'move-node-to-workspace 3'
alt-cmd-ctrl-shift-4 = 'move-node-to-workspace 4'
alt-cmd-ctrl-shift-5 = 'move-node-to-workspace 5'

I think karabiner does not need Secure Input to be disabled. It would be awesome if Aerospace could differentiate between left and right modifier keys by itself so perhaps this issue should be left open for reference. But the workaround works well enough that my original problem is resolved.

from aerospace.

tylercecil avatar tylercecil commented on May 27, 2024

Another workaround: I have a mode in aerospace which doesn't bind any keys, allowing me to easily "pause" aerospace.

cmd-semicolon = 'mode X'

[mode.X.binding]
# A mode to just pass keys through!
cmd-semicolon = 'mode main'
esc = 'mode main'

from aerospace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.