add slant demo.sh

This commit is contained in:
Nathan Isom 2016-02-23 21:13:44 -06:00
parent a802fb1cd1
commit cfa38a1aa7

22
slant_demo.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
#
# demonstrate slant flags and what they look like
Len=2
geom=200x20+10+10
bg='%{B#ff000000}'
sbg='%{B#ff00ff00}'
space()
{
printf %${Len}s
}
echo " \
${sbg}%{E${Len}}$(space)${bg} - \
${sbg}%{e${Len}}$(space)${bg} - \
${sbg}%{D${Len}}$(space)${bg} - \
${sbg}%{d${Len}}$(space)${bg} " \
| ./lemonbar -g $geom -p