GithubHelp home page GithubHelp logo

Comments (11)

ayushnix avatar ayushnix commented on September 22, 2024 2

Hi, I've implemented this feature in a branch called custom-keybinds. I'll use this feature for a few days before making a release. Meanwhile, anyone wants to test it, please do and report errors/bugs if any.

from tessen.

ayushnix avatar ayushnix commented on September 22, 2024 1

Interesting, can you give an example of how you are using it?

I should've documented the feature. 😅

I've mapped exit codes starting from 10 in the following order

  • 10 is mapped to the default auto type action which is usually username + password
  • 11 is mapped to auto typing the username
  • 12 is mapped to auto typing the password
  • 13 is mapped to opening the default URL
  • 14 is mapped to copying the username
  • 15 is mapped to copying the password
  • 16 is mapped to copying the URL

You can use dmenu programs like fuzzel, bemenu, and rofi to map these exit codes to whatever shortcuts you like.

It would be nice to have OTP actions mapped too.

Thanks for the suggestion, I'll map this action to exit code 17.

from tessen.

ayushnix avatar ayushnix commented on September 22, 2024

Hi @pengux

Unfortunately, I don't think I'll work on this feature at this moment because

  • native wayland support for rofi hasn't been merged upstream
  • only rofi supports customizable keyboard shortcuts, no other wayland native dmenu program does this at the moment

I'd be willing to work on this feature if rofi ever gets upstream native wayland support. It doesn't look like this is going to happen anytime soon.

from tessen.

pengux avatar pengux commented on September 22, 2024

@ayushnix thanks for the reply. Currently, as I understand it, rofi does work with Wayland as I was using it with Sway. And the fork which supports Wayland natively fixes some issues such as clipboard access for me and it seems to be up-to-date with upstream. But even if Wayland support is missing, there are some keybindings that can still be implemented such as copy_name and copy_pass for example as it doesn't require xdotool or ydotool. I've also noticed that tools such as rofi-rbw is using wtype to accomplish autotype in wayland so perhaps that is an option?

from tessen.

ayushnix avatar ayushnix commented on September 22, 2024

rofi does work with Wayland as I was using it with Sway. And the fork which supports Wayland

That's what I meant, the upstream rofi software doesn't support wayland, a fork made by lbonn does.

I've also noticed that tools such as rofi-rbw is using wtype to accomplish autotype in wayland so perhaps that is an option?

tessen uses wtype to perform autotype operations on sway.

I noticed that wofi also supports custom keybindings. Considering wofi is a wayland native dmenu program, I'm now inclined to support custom keybindings in tessen.

Thanks, I'll try to implement this feature. Meanwhile, if you want to submit a pull request, that'd be welcome as well. Please see the CONTRIBUTING.md if you're interested.

from tessen.

pengux avatar pengux commented on September 22, 2024

Thanks, I'll try to implement this feature. Meanwhile, if you want to submit a pull request, that'd be welcome as well. Please see the CONTRIBUTING.md if you're interested.

That's great! My knowledge of shell scripts is not good enough for a PR but I'll help test things out if you need it.

from tessen.

fbergroth avatar fbergroth commented on September 22, 2024

Hi, I've implemented this feature in a branch called custom-keybinds.

Interesting, can you give an example of how you are using it? It would be nice to have OTP actions mapped too.

from tessen.

fbergroth avatar fbergroth commented on September 22, 2024

Thanks, I was using tofi, and wasn't aware that the others had that functionality.

from tessen.

ayushnix avatar ayushnix commented on September 22, 2024

The next stable release will promote fuzzel as the default dmenu backend for tessen.

from tessen.

ayushnix avatar ayushnix commented on September 22, 2024

I've mapped autotyping and copying OTP to custom exit codes as well. The v2.2.0 release should probably be out tomorrow.

from tessen.

ayushnix avatar ayushnix commented on September 22, 2024

This feature has now been added in version 2.2.0. Let me know if anyone has any questions or issues using it.

from tessen.

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.