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

bspwm-node-flags: script, module & preview #361

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

aidenlangley
Copy link

No description provided.

@aidenlangley
Copy link
Author

aidenlangley commented Jan 18, 2022

Could somebody translate this to sh/bash so I can include a not so fishy version? :)

set name (string split ':' $flag)[1]

Edit: actually, there are a few more places that need to be made ready for sh/bash, so will take a little time.

@x70b1
Copy link
Member

x70b1 commented Jan 18, 2022

Could somebody translate this to sh/bash so I can include a not so fishy version? :)

Are you looking for | cut -d ':' - f 1 ?

@aidenlangley
Copy link
Author

Could somebody translate this to sh/bash so I can include a not so fishy version? :)

Are you looking for | cut -d ':' - f 1 ?

Awesome, yes ty. I've been spoiled by fish, the traditional stuff is not so easy. I also have to translate the string match and the iterator that follows then this one will be ready.

@aidenlangley
Copy link
Author

So I rewrote it in python for wider shell compatibility since I'm sure python is a lot more common than fish. Much less painful to write than pure sh, so I'm afraid that's the best I can do!

@x70b1
Copy link
Member

x70b1 commented Jan 19, 2022

No pressure.

Is there a way to replace the bspwn-node-flags script also with python? Or even better, combine them into one?

@aidenlangley
Copy link
Author

No pressure.

Is there a way to replace the bspwn-node-flags script also with python? Or even better, combine them into one?

Way ahead of you. :D

I agree, python was a better choice here, have included a sh script which is intended to be tailed. Could have moved the if arg.event == 'node_focus' stuff to the sh script in hindsight for a slight enhancement but I'll leave it at that. :)

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 this pull request may close these issues.

2 participants