robm / dzen

Dzen is a general purpose messaging, notification and menuing program for X11.
MIT License
607 stars 81 forks source link

[Feature request] Border #42

Open MarcelRobitaille opened 7 years ago

MarcelRobitaille commented 7 years ago

Is it possible to add a border around the window? I am using this for notifications and right now I am making one slightly larger one to go underneath. It would be great to have a feature where you can specify a border width and a colour.

poinck commented 7 years ago

You could try something like this:

echo "^fg(#b01de1)^r(100x25)^ib(1)^pa(2;2)^fg(#010101)^r(96x21)^ib(1)^pa(4;4)^fg(#ffffff)notified" | dzen2 -p 5 -x 100 -y 25 -w 100 -h 25 -ta l

You can probably omit the first rectangle if you set the backgroundcolor of dzen2 to the border color you want. So, there should be no need to start two instances of dzen2.

Edit: corrected my example.

poinck commented 7 years ago

It should look like this:

2017-06-24-133020_100x25_scrot

MarcelRobitaille commented 7 years ago

While that does work, I ended up going with a fork of lemonbar that supports borders. Dzen would be nicer if it were ever as easy because of events though.