gnotclub / xst

st fork that uses Xresources and some pretty good patches
MIT License
534 stars 74 forks source link

is there a way to set a keybind? #29

Open ninrod opened 6 years ago

ninrod commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

hummm. thanks, will try that!

ghost commented 6 years ago

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

ninrod commented 6 years ago

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

ghost commented 6 years ago

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 commented 4 years ago

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