Giter VIP home page Giter VIP logo

Comments (6)

z3bra avatar z3bra commented on August 24, 2024 2

what would be the line to put into my bspwmrc or other config file to get the double border for all types of windows, from URxvt to Firefox?

There is no answer to that question because your question is incorrect.
As neasade said, chwb2 require that you pass the window ID of the window to affect in argument. For example:

 chwb2 -O 000000 -I ffff00 -i 3 -o 1 0x23

If you want to apply that to all windows, then you have to run this command one time per window you have, or script it, like this for example:

 lsw | xargs -n1 chwb2 -O 000000 -I ffff00 -i 3 -o 1

One problem you'll have is that the borders will look bad when you move the windows. This is because the internal border is drawn using absolute coordinates from you desktop. This is not a bug, just the way it works. When a window move, you have to redraw the 2-border pixmap (that is how 2bwm does it).
So to answer your question, you need to find a way to run a command whenever a window move, get its window ID (hint: use pfw/lsw) and run the chwb2 command with the window ID as the last argument.

Hope that helps, cheers

from opt.

neeasade avatar neeasade commented on August 24, 2024

The arguments following your example should be window IDs to draw on

from opt.

BillyTheMotherBoard avatar BillyTheMotherBoard commented on August 24, 2024

Thank you for your answer man! really appreciate that but I do not completely understand, what would be the line to put into my bspwmrc or other config file to get the double border for all types of windows, from URxvt to Firefox?

Thanks, sorry for being annoying

from opt.

z3bra avatar z3bra commented on August 24, 2024

Closing as it is not an issue but misuse of the tool.

from opt.

BillyTheMotherBoard avatar BillyTheMotherBoard commented on August 24, 2024

Hello, well thank you for your detailed reply, sorry for this late reply but I was studying for exams...

Well it creates borders when I run this command:
lsw | xargs -n1 chwb2 -O 000000 -I ffff00 -i 3 -o 1

but it also throws out a bunch of "errors" maybe? Also I can't increase my double borders size...


chwb2: warning: pixmap is greater than border size
chwb2: warning: pixmap is greater than border size
chwb2: warning: pixmap is greater than border size
chwb2: warning: pixmap is greater than border size
chwb2: warning: pixmap is greater than border size
chwb2: warning: pixmap is greater than border size
chwb2: warning: pixmap is greater than border size
usage: chwb2 <-I color> <-O color> <-i size> <-o size> [wid...]
usage: chwb2 <-I color> <-O color> <-i size> <-o size> [wid...]
usage: chwb2 <-I color> <-O color> <-i size> <-o size> [wid...]
usage: chwb2 <-I color> <-O color> <-i size> <-o size> [wid...]
chwb2: warning: pixmap is greater than border size
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

I'm back to you because I don't really know how to handle this output...

thanks for the high quality assistance ;)

from opt.

z3bra avatar z3bra commented on August 24, 2024

from opt.

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.