WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED]Changing JWM desktop background via script  (Read 2679 times)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
[SOLVED]Changing JWM desktop background via script
« on: March 09, 2013, 04:02:56 PM »
Hi all

Anyone know how to change the desktop background on-the-fly by means of a script?
Preferably one that does not need Xwin to be restarted.
I'm using JWM as the windows manager.

Thanks
Paulo.
« Last Edit: March 09, 2013, 05:29:36 PM by Paulo »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Changing JWM desktop background via script
« Reply #1 on: March 09, 2013, 04:22:04 PM »
Using "wallpaper" should create a script ~/.setbackground
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Changing JWM desktop background via script
« Reply #2 on: March 09, 2013, 04:40:15 PM »
Hi tinypoodle

wallpaper is a X app, I need to change the background from a script not from an app.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Changing JWM desktop background via script
« Reply #3 on: March 09, 2013, 04:43:46 PM »
As he said: Using "wallpaper" should create a script ~/.setbackground

Just look at the script.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Changing JWM desktop background via script
« Reply #4 on: March 09, 2013, 04:55:51 PM »
OK got it:

hsetroot [command1 [arg1..]] [command2 [arg1..]]....

Thanks.