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

Problem with calendar.lua in ubuntu 12.04 / 14.04 #49

Closed
nsarfati opened this issue May 27, 2014 · 3 comments
Closed

Problem with calendar.lua in ubuntu 12.04 / 14.04 #49

nsarfati opened this issue May 27, 2014 · 3 comments

Comments

@nsarfati
Copy link

Hello! I'm using the calendar.lua in ubuntu 14.04 and i have a issue when the script try to do the sed in the output of /usr/bin/cal for hightlight the current day, take a look to this images:

1

But when the day is not selected:

2

This is the sed that tries to do:

/usr/bin/cal | sed -r -e "s/(^| )(27)($| )/\1<b><span foreground=\"#000000\" background=\"#aaaaaa\">\2<\/span><\/b>\3/"

Thank you!

@nsarfati
Copy link
Author

I can fix the problem doing this sed previously:

sed -r -e "s/_\\x08//g"

@nsarfati nsarfati reopened this May 27, 2014
@lcpz
Copy link
Owner

lcpz commented May 27, 2014

You mean modifying the line like this?

/usr/bin/cal | sed -r -e "s/_\\x08//g" | sed -r -e "s/(^| )(27)($| )/\1<b><span foreground=\"#000000\" background=\"#aaaaaa\">\2<\/span><\/b>\3/"

@lcpz
Copy link
Owner

lcpz commented May 27, 2014

The widget can take custom cal calls.

Try with

lain.widgets.calendar:attach(mytextclock, {cal = '/usr/bin/cal | sed -r -e "s/_\\x08//g"'})

lcpz pushed a commit that referenced this issue Jun 2, 2014
@lcpz lcpz closed this as completed Jun 2, 2014
lcpz pushed a commit that referenced this issue Aug 5, 2015
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

No branches or pull requests

2 participants