Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to set a keybind? #29

Open
ninrod opened this issue Jul 20, 2017 · 6 comments · May be fixed by #122
Open

is there a way to set a keybind? #29

ninrod opened this issue Jul 20, 2017 · 6 comments · May be fixed by #122

Comments

@ninrod
Copy link

ninrod commented Jul 20, 2017

I have a script that sets the font size (using kill -USR1 and xrdb to live reload the changes made to .Xresources).

I want that when I hit shift + mousewheel-up, this script gets executed.

Is there a way to achieve that in xst?

thanks for the project @neeasade!

@tmplt
Copy link

tmplt commented Jul 21, 2017

I'm guessing a bit here (Button4 is bound to kscrollup), but I think this can be done by appending

{ Button4,      ShiftMask,      externalpipe,      {.v = "<your command here>" } },

to mkeys[], alike how ALT + u is bound in shortcuts[].

@ninrod
Copy link
Author

ninrod commented Jul 21, 2017

hummm. thanks, will try that!

@ghost
Copy link

ghost commented Aug 24, 2017

Since there has been no movement on this, I'll close it. Feel free to reopen if you do have a followup.

@ghost ghost closed this as completed Aug 24, 2017
@ninrod
Copy link
Author

ninrod commented Aug 24, 2017

yes, it worked. I wish there was a way to set this externally though, without having to recompile.

@ghost
Copy link

ghost commented Aug 24, 2017

neeasade and I are talking about a long-ish term plan to add this functionality (along with a client-server model). I'll try and keep this issue updated when work on that happens.

@neeasade
Copy link
Member

opening this to mention there's some steps towards xresources shortcuts in this branch: https://github.com/gnotclub/xst/tree/xresources_shortcuts

@neeasade neeasade reopened this Jul 13, 2020
@actionless actionless linked a pull request Nov 20, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants