Jump to content


Photo

bsetbg / bsetroot don't apply image


  • Please log in to reply
52 replies to this topic

#1 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 06:44 AM

So I'm trying to write myself a script that changes my background as I switch workspaces.

The script itself works fine, but, the background doesn't get changed.

I was wondering, do I have to execute anything else for it to trigger the change? (As bbstylemaker does trigger the change on 'save')

 

Regards, Avail



#2 mojmir

mojmir

    BB Developer

  • Moderators
  • 254 posts

Posted 10 July 2014 - 07:51 AM

hello,

 

bsetbg as such works? i.e. 'bsetbg.exe -solid yellow'

also how are you hooked with the script onto workspace switch? how do you call the bsetbg from the script?

 

maybe we could integrate this into blackbox itself... i though of this feature also. and there are similar mechanisms already.



#3 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 08:24 AM

The script isn't hooked anywhere, it just detects when I press a key (e.g numpad 1 or 2)  and switches to the specified wall.

Script: http://hastebin.com/okepadiwod.py

 

bsetbg.exe only shows the wait cursor for a couple moments but nothing happens.

Posted Image

 

Regards, Avail



#4 mojmir

mojmir

    BB Developer

  • Moderators
  • 254 posts

Posted 10 July 2014 - 08:56 AM

hmm.. that is a bit weird, bsetbg.exe works fine in my case.

what windows do you have?



#5 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 09:14 AM

I'm using 8.1, 32bit.

As said in the OP, it triggers the change properly when clicking 'save' in bbstylemaker, but, doesn't do anything when ran as standalone.



#6 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 09:17 AM

You can use bbstyle to have different backgrounds on different workspaces.



#7 mojmir

mojmir

    BB Developer

  • Moderators
  • 254 posts

Posted 10 July 2014 - 09:38 AM

i tried it in my work on win7.

i have win 8.1 (although 64bit) at home, so i'll try it later on win8. maybe it's one of their quirks..

 

bbstyle? what's that? and how :)



#8 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 09:45 AM

What's bbstyle? :o



#9 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 10:00 AM

bbstyle is a plugin created by NC-17 a long time ago. You will find it in our downloads/plugins section :)



#10 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 10:06 AM

i tried it in my work on win7.

i have win 8.1 (although 64bit) at home, so i'll try it later on win8. maybe it's one of their quirks..

 

bbstyle? what's that? and how :)

Here are some instructions:

In order to have separate wallpapers on each workspace you must add some settings either to the[color=rgb(119,119,119);]bbstyle.rc[/color] file or to a specific style file. This lets you have different wallpaper settings for different styles. If the settings are not found in the current style file, it will use those in the .rc file, if any. For example: 

[color=rgb(187,187,187);]bbstyle.workspace1.rootCommand: [color=rgb(119,119,119);]bsetroot -solid black[/color] 
bbstyle.workspace2.rootCommand: [color=rgb(119,119,119);]bsetroot -mod 3 3 -fg #666666 -bg #333333[/color] 
bbstyle.workspace3.rootCommand: [color=rgb(119,119,119);]bsetroot -gradient verticalinterlaced -from rgb:00/00/00 -to rgb:99/99/99[/color] 
bbstyle.workspace4.rootCommand: [color=rgb(119,119,119);]bsetbg -full backgroundsmypicture.png[/color][/color]

Note these settings have to be sequential, without any gaps, from workspace1 to workspaceX, otherwise BBStyle will only use the settings up to the first gap. If no rootCommand is set for a particular workspace, the default style rootCommand is used.



#11 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 11:01 AM

It doesn't really seem to work.

Posted Image



#12 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 11:17 AM

Make sure you have followed instructions carefully. Check your rc files. If all else fails, write to NC-17 himself http://www.ratednc-1...tyles3.php#home



#13 mojmir

mojmir

    BB Developer

  • Moderators
  • 254 posts

Posted 10 July 2014 - 02:07 PM

well bbstyle is no use in this case, because it calls bsetbg.

as bsetbg on itself does not work, bbstyle can do nothing about it.



#14 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 03:55 PM

Maybe we should start from scratch. Never heard of bsetbg not working. Avail, are both bsetroot and bsetbg in your Blackbox' folder?



#15 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 03:58 PM

Yes.



#16 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 04:00 PM

Do you mind posting here your rootCommand line?



#17 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 04:10 PM

The one at the top of my style:

!-- background -- rootCommand: bsetroot -solid rgb:ff/ff/ff g:walls1404027094100.png

 

The one at the bottom:

!-- bbstyle -- bbstyle.workspace1.rootCommand:  bsetbg -full G:walls1403828690756.png bbstyle.workspace2.rootCommand:  bsetbg -full G:walls1403845296532.png bbstyle.workspace3.rootCommand:  bsetbg -full G:walls1403828690756.png

 

I have also tried to do it with bsetroot instead of bsetbg, but, nothing happens.

However, as said earlier, bsetroot changes itself when using bbstyle maker.



#18 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 04:16 PM

The one at the top of my style:

!-- background -- rootCommand: bsetroot -solid rgb:ff/ff/ff g:walls1404027094100.png

 

The one at the bottom:

!-- bbstyle -- bbstyle.workspace1.rootCommand:  bsetbg -full G:walls1403828690756.png bbstyle.workspace2.rootCommand:  bsetbg -full G:walls1403845296532.png bbstyle.workspace3.rootCommand:  bsetbg -full G:walls1403828690756.png

 

I have also tried to do it with bsetroot instead of bsetbg, but, nothing happens.

However, as said earlier, bsetroot changes itself when using bbstyle maker.

Try this "g:walls1404027094100.png"

Adding quotation marks may do the trick



#19 Avail

Avail

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 July 2014 - 04:20 PM

I'd need quotation marks only if there was a space in my path.

Anyways, added the quotation marks just to try, but, still, nothing.



#20 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 10 July 2014 - 04:29 PM

Quotation marks are needed in some occasions even if there were no spaces. What BB build are you using and are you using bsetroot/bsetbg that came with that build?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users