
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Custom desktop wallpaper generator with NodeJS and PhantomJS
For Windows, please place the phantomsjs.exe
on your PATH
.
Clone and run the application on your local computer
$ git clone git://github.com/weisjohn/desckit.git
$ cd desckit
$ npm install
$ node .
Once ready, navigate your browser to http://localhost:1280/assemble/wide/
to preview the wide
script and it's output.
To generate a desktop wallpaper append render
to the url (like so: http://localhost:1280/assemble/wide/render/
which will create a new file (or overwrite existing one) in /desckit/walls/
directory.
There is a simple reload mechanism that will generate the wallpaper in intervals if you append a seconds interval to the end of the url (like so: http://localhost:1280/assemble/wide/render/60
) which will reload the page once every 60 seconds.
To display your wallpaper in Windows 7/8 use the built in wallpaper rotation tool.
Personalize
(the lower-most item)Desktop Background
in the bottom area of the windowBrowse...
next to Picture location:
dropdown/desckit/walls
directoryShuffle
is not markedSave changes
If you configured the application correctly you will now see the generated wallpaper showing on your desktop.
To display your wallpaper in Mac OSX use the built in wallpaper rotation tool.
System Preferences
Desktop & Screen Save
(in the top-left area)+
button to choose a folder/desckit/walls
directory.Change picture:
interval make sure Random order
is not selectedIf you configured the application correctly you will now see the generated wallpaper showing on your desktop.
The application supports custom scripts to be created. To see existing scripts navigate to /desckit/public/scripts/
. Right now there are two scripts, eli1
and wide
.
There are currently 2 mandatory script files:
script.ejs
- This is the HTML template for the layout of the desktop wallpaper.script.js
- This is the Server-side(!!) script to be run when the script is requested. This runs in your NodeJS instance so you can configure it to do whatever you want that is supported by NodeJS.Optionally, you can include more files in scripts:
script.styl
- This is the Stylus CSS source file that will generate a script.css
file when needed.Change those files to create your own customized descktop backgrounds.
You can run desckit from the command line as well. This will be the prefered option to run the project in the future.
$ npm install -g desckit
To render the eli1
script only one time (think cron)
$ desckit -S eli1
To re-render every two minutes, specify an interval of 120 seocnds:
$ desckit -S eli1 -I 120
This will create a walls
directory wherever you run the command.
The two provided examples are eli1
and wide
, the main difference is that wide
-version is created from a wide background image which is scrolled a little bit every time a wallpaper generate, so once it's on desktop it shows a wallpaper that moves just slightly, and creates a more dynamic desktop environment.
Since this is basically a web-page being rendered into a desktop background, there are a lot of things that can be done with it; just to give you some direction:
Since this is being rendered on a WebKit based browser, basically anything that you can think of creating with HTML5 can be rendered onto your desktop.
To see the internals of desckit as it operates, set an environment variable for DEBUG
equal to desckit
, such as:
$ DEBUG=desckit node-dev app.js
desckit Express server listening on port 1280 +0ms
desckit GET /assemble/foggy/render/10 +1s
We do this to help the command-line tool version output clean.
At this point the application is in preview/alpha version designed to show the capabilities of this technique. Most of the configuration is hard-coded (like the screen-resolution), you are welcome to change it to fit your needs. Some of the modules used are outdated (like datejs), and in general this is a work in progress aimed at hackers rather than the end-user at this point.
The goals for this project are:
This is the very first step, unveiling the concept idea, and showing the very rudimentary capabilities, the next step will be decided by you, the user.
Created by Eli Sklar
Email: eli.sklar@gmail.com
Twitter: @EliSklar
FAQs
Custom desktop wallpaper generator with NodeJS and PhantomJS
The npm package desckit receives a total of 5 weekly downloads. As such, desckit popularity was classified as not popular.
We found that desckit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.