Coder Social home page Coder Social logo

Comments (4)

russelg avatar russelg commented on May 26, 2024

You could just make a cron script, that changes your wallpaper with feh
or something, that runs every 4 hours or whatever. I don't think you
need to try do it in Lua.

from awesome-copycats.

sonph avatar sonph commented on May 26, 2024

Yeah I've thought of that. But it'd be nice to make it into a theme so everyone can use it though.

from awesome-copycats.

lcpz avatar lcpz commented on May 26, 2024

This is a library functionality, not a specific config.

You could use lain.widgets.base with feh and setting a timeout of 14400 (4 hours in seconds). See if you like this:

gwallwidget = lain.widgets.base({
    timeout = 14400, 
    cmd = "feh command" -- set properly
})

You don't need to add it to a bar.

Otherwise, if you wish to do all in your rc.lua, you could exploit run_once function by adding the following lines after "Autostart applications" section:

-- {{{ Loop applications
gwall = capi.timer({ timeout = 14400 })
gwall:connect_signal("timeout", run_once("my feh command")) -- set properly
gwall:start()
-- }}}

which is basically the standard use of signals in Awesome.

from awesome-copycats.

lcpz avatar lcpz commented on May 26, 2024

This is something one could do at various levels, and very easily (for instance, you could also start a simple loop script in .xinitrc).

Since I've shown you how to achieve it through lain and awesome-copycats, I close this issue here.

from awesome-copycats.

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.