Welcome to awesome bug tracking system.

FS#969 - awsetbg with simulation mode (show what it should execute, but execute nothing)

Attached to Project: awesome
Opened by TsT (TsT) - Tuesday, 06 March 2012, 15:41 GMT
Task Type Feature Request
Category Core
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version git/master
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



I use one background per tag.
I change the background every time I switch to a new desktop/tag.

I try to reduce the background refresh delay as short as possible.
the awsetbg script is usefull, but it checks a lot of thing, it will always be slowly than using the direct command to set the background.

IMHO awsetbg is usefull because it wraps a lot of background setter.
Then it will be interresting to have a option to change the behavior :
- awsetbg will do his detection and show what the command it will usually do.
- I catch the result and put it in cache (in lua), and run the command
- The next time, I take the result directly from the cache, and run directly the command.

I already changed my awsetbg to support this.
But I also do others changes and not really thougth about compatibility outside bash ...

See the diff patch and the full file.
This task depends upon

Comment by Julien Danjou (jd) - Friday, 01 June 2012, 11:41 GMT
I'm ok with this in principle, but the patch seems to have some unrelated changes.