Comments (7)
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.
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.
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.
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.
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.
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.
#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)
- Look into supporting re-rendering the built in status bar without requiring an XEvent HOT 1
- Holding onto destroyed client Xids in a state extension breaks NamedScratchpad behaviour HOT 5
- toggle full screeen example HOT 1
- Add a BSP manual tiling layout HOT 1
- Find an alternative to pango/cairo for penrose_ui HOT 3
- Question: Are you sure file redirection can be used in `Exec=` of `Desktop Entry` HOT 1
- weird behavior caused by reload HOT 6
- Escape key not functional HOT 4
- Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) HOT 1
- penrose crashes due to unknown client and using expect. prefer if let HOT 2
- Ability to cycle to next/previous tag HOT 6
- Allow the use of other bars e.g. polybar HOT 5
- penrose_ui: Setting background color of status bar to black (0x000000 or 0x000000ff) results in crash HOT 1
- Question: Use xmodmap-pke-umberwm? HOT 4
- ActiveWindowName won't respect max_chars HOT 4
- Support Wayland as a backend HOT 4
- switching between two different scratchpads on the same screen
- SpawnOnStartup - 'then' method cannot be invoked on a trait object
- Adding AltGr as a modifier HOT 1
- Add the ability to combine `Query`s into composite Queries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from penrose.