It is currently March 29th, 2024, 12:41 pm
Triggered Wallpapers?
-
- Posts: 6
- Joined: October 17th, 2019, 6:34 pm
Triggered Wallpapers?
Is it possible to have a skin that changes wallpapers and widgets based on applications that are open/active? Like if I opened a particular game, a certain set of wallpapers and icons would become active and go away once the app is closed. I don't know much about this stuff.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Triggered Wallpapers?
Setting the wallpaper is quite simple, there is a bang for this (!SetWallpaper). However changing the icons, is a much harder question. Probably a third party utility would be required, probably it's not too much recommended.Azothdefirenze wrote: ↑October 17th, 2019, 6:36 pm Is it possible to have a skin that changes wallpapers and widgets based on applications that are open/active? Like if I opened a particular game, a certain set of wallpapers and icons would become active and go away once the app is closed. I don't know much about this stuff.
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Triggered Wallpapers?
Yes, by using the Process plugin and creating Layouts that include your wallpaper and skins for each application.Azothdefirenze wrote: ↑October 17th, 2019, 6:36 pm Is it possible to have a skin that changes wallpapers and widgets based on applications that are open/active? Like if I opened a particular game, a certain set of wallpapers and icons would become active and go away once the app is closed. I don't know much about this stuff.
Process plugin
Layouts
Create a skin with measures that tests for each application and if active use the !LoadLayout bang to load the saved layout you created.
NOTE: This skin has to be loaded and saved in every layout you want to respond to active applications.
You would load and position all of the skins you want along with your desired wallpaper, then open MANAGE, LAYOUTS tab, and save this setup making sure to check "Include current wallpaper" with a unique name.
Do the same for your next application setup.
In order to have them "Go away" when the app is not active would require creating another layout, either a blank layout (no skins or wallpaper) or a "default" one and load that layout when the process is not active.
If you have 2 monitored Apps open, you may need to qualify your condition statements so only one layout is selected... so it is possible to do what you want, but the coding may be slightly more complicated then the example below.
Code: Select all
[MeasureProcess1]
Measure=Plugin
Plugin=Process
ProcessName=YourApp1Process
; Substitute="-1":"not running","1":"running"
IfCondition=(MeasureProcess1=1)
IfTrueAction=[!LoadLayout "YourApp1LayoutName"]
IfFalseAction=[!LoadLayout "default"]
[MeasureProcess2]
Measure=Plugin
Plugin=Process
ProcessName=YourApp2Process
; Substitute="-1":"not running","1":"running"
IfCondition=(MeasureProcess2=1)
IfTrueAction=[!LoadLayout "YourApp2LayoutName"]
IfFalseAction=[!LoadLayout "default"]
[DummyMeter]
Meter=String
; All skins must have a meter to be valid
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 6
- Joined: October 17th, 2019, 6:34 pm
Re: Triggered Wallpapers?
Thanks for this. I will have to mess around with it and see if I can translate my idea to pc.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Triggered Wallpapers?
Feel free anytime to come back with specific questions, if there is any.Azothdefirenze wrote: ↑October 17th, 2019, 8:38 pm I will have to mess around with it and see if I can translate my idea to pc.
-
- Posts: 6
- Joined: October 17th, 2019, 6:34 pm
Re: Triggered Wallpapers?
I have literally no experience with coding or anything really, so I'm sure i will have questions. I'm fairly certain I can stumble through a lot of the stuff though. I basically want a defualt skin that when I open certain apps, loads a new layout based on the app, and then returns to normal when the app is closed. basically profiles. I'll have to see if there is trouble when 2 apps that have profiles are open at the same time.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Triggered Wallpapers?
Follow eclectic-tech's recommendations. As usually he offered a very good description of how to achieve what you want.Azothdefirenze wrote: ↑October 17th, 2019, 9:15 pm I basically want a defualt skin that when I open certain apps, loads a new layout based on the app, and then returns to normal when the app is closed. basically profiles.
No, there won't be, just obviously wont be loaded both layouts, because this can't be done. Probably the layout related to the second app will be loaded.Azothdefirenze wrote: ↑October 17th, 2019, 9:15 pm I'll have to see if there is trouble when 2 apps that have profiles are open at the same time.
-
- Posts: 6
- Joined: October 17th, 2019, 6:34 pm
Re: Triggered Wallpapers?
So after making layouts, and using the first half of eclectic techs code, it creates a wierd loop of all the skins refreshing in the main rainmeter window. I tried chaning prcoesses, and making sure i got the names and layout names right, but it seems to be stuck like that. Any suggestions?
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Triggered Wallpapers?
Possible. Please post for first the used code.Azothdefirenze wrote: ↑October 22nd, 2019, 8:00 pm So after making layouts, and using the first half of eclectic techs code, it creates a wierd loop of all the skins refreshing in the main rainmeter window.
-
- Posts: 6
- Joined: October 17th, 2019, 6:34 pm
Re: Triggered Wallpapers?
Code: Select all
[MeasureProcess1]
Measure=Plugin
Plugin=Process
ProcessName=destiny2.exe
; Substitute="-1":"not running","1":"running"
IfCondition=(MeasureProcess1=1)
IfTrueAction=[!LoadLayout "destiny 2"]
IfFalseAction=[!LoadLayout "Default"]
[DummyMeter]
Meter=String
; All skins must have a meter to be valid
This was to test just transitioning while having one app open. i was gonna add a measureprocess2 section later after getting the first one working.
Last edited by balala on October 22nd, 2019, 8:22 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.