[Linux question] How to disable an I3 keybinding when on an specific application? - eviltoast

So, i just started using I3 through Arcolinux, it’s working pretty nicely all things considered but i’m having one little problem, a game i play uses keys that are very close to a keybind combination that is set here and that makes me accidentally trigger it sometimes, and i wanted to know how, if possible i can make so this keybind is disabled while I’m playing this game, searching for a solution i found this thread on reddit (yeah, lack of better places, but hey I’m asking here now so it’s an opportunity to get some info on here!) That seems to be talking about pretty much what i need, buut i have no idea how to create these scripts and all that and i didn’t had much success on searching on how to do this kind of thing before so… a little help please? Is there any more efficient method, or something like that?

  • wuphysics87@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    10 months ago

    I use hyprland, but what I do may help (and open the door to all other stupid shit and ways to rice rather than work) Rather than having keybinds to focua a direction, I have it run a script that dumps info about the window or workspace it might move into. It then decides what to do based on the window. In your case, you can have it bind/unbind they key of interest.

    And remember kids. Asking questions to proprietary generative AI enshitifies everything for everyone.

    • Quills@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Seems nice, but i don’t know if i got it… How would i do that? i don’t have much of experience with all this script stuff…