Giter Club home page Giter Club logo

Comments (7)

sminez avatar sminez commented on May 18, 2024

Hi @roelycooly , can you fill in the details outlined in the issue template for this? I thought I'd set that up to auto-fill when creating a new issue but maybe not.

from penrose.

 avatar commented on May 18, 2024

Alright, lol sorry I saw that and thought it was some weird filler thing I was supposed to remove that github put. I changed the comment and will do so with my other enhancement request

from penrose.

sminez avatar sminez commented on May 18, 2024

Hi @roelycooly , are you able to give some concrete examples of how you are wanting to use this? I had a go at hacking something together the other day and I wasn't able to come up with anything that felt general purpose enough to warrent being part of the macro. You iterate over &str / String elements in the vector and format them into the keybindings, and then all you can really do is use the index as a Selector in a method that takes one (not all methods do), or pass that key to a function / closure that works out the binding (which defeats the point of having a simple iteration)

from penrose.

 avatar commented on May 18, 2024

An example from something like sxhkd would be:

XF86Audio{Raise,Lower}Volume 
    pulsemixer --change-volume {+,-}5
XF86Audio{Next,Prev} 
    playerctl {next,previous}
XF86MonBrightness{Up,Down} 
    brightnessctl s 10%{+,-}

Or:

ctrl + super + {h,j,k,l} 
    bspc monitor -f {west,south,north,east}

This is pretty much the functionality that I would like implemented.

from penrose.

sminez avatar sminez commented on May 18, 2024

Ah ok, that makes more sense: you're not formatting the keys themselves into the binding, you want to map key/value pairs in a template. I'll update the issue title and description and hopefully should be able to get on this soon. I can see why you want it!

from penrose.

 avatar commented on May 18, 2024

Ya sorry, English is my first language and yet I can never put my words together properly lol, but yeah a template is what I was trying to say. Anyways I hope it wouldn't be too much trouble implementing it and thank you for updating my comment.

from penrose.

sminez avatar sminez commented on May 18, 2024

#68 provides an implementation sufficient for the simple given in the edited issue description. A full implementation of sxhkd functionality is going to be significantly more work to achieve it seems. For now I'm going to close this issue but I'll keep tinkering away with the keybinding generation macro over time and hopefully should be able to extend things further at a later date.

from penrose.

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.