Ah, good shout. This happened:
No idea why, but at least we know your code is probably working fine!
It is currently April 19th, 2024, 5:51 pm
How to create a workspace switcher in Rainmeter?
-
- Posts: 27
- Joined: February 25th, 2021, 6:45 am
-
- Posts: 209
- Joined: July 12th, 2020, 7:47 am
- Location: Ada, Garden City
Re: How to create a workspace switcher in Rainmeter?
-
- Posts: 27
- Joined: February 25th, 2021, 6:45 am
Re: How to create a workspace switcher in Rainmeter?
Yay! It's working now! Thanks so much, really helpful.
-
- Posts: 209
- Joined: July 12th, 2020, 7:47 am
- Location: Ada, Garden City
Re: How to create a workspace switcher in Rainmeter?
You're welcome. Please, mark the thread as solved. Thank you.
-
- Posts: 27
- Joined: February 25th, 2021, 6:45 am
Re: How to create a workspace switcher in Rainmeter?
How to resolve sorry?
-
- Posts: 209
- Joined: July 12th, 2020, 7:47 am
- Location: Ada, Garden City
Re: How to create a workspace switcher in Rainmeter?
Edit the post and set the green check mark as topic icon.
-
- Posts: 327
- Joined: September 3rd, 2018, 11:18 am
Re: How to create a workspace switcher in Rainmeter?
Kinda late but khanhas also made a workspace switcher in their Polybar skin, it uses AHK instead
-
- Posts: 27
- Joined: February 25th, 2021, 6:45 am
Re: How to create a workspace switcher in Rainmeter?
For future viewers, there is a quicker way to switch workspaces. Get nircmd:
https://www.nirsoft.net/utils/nircmd.html
And place it in a "nircmd" folder in resources. Then rewrite the left workspace swithcer code to look like this:
Thiis obviously goes two workspaces to the left, allowing it to always fall upon the first workspace (presuming you are using three, as I am). This seems to be quicker than executing code in powershell for some reason
Obviously for the far right you would switch "left" to "right". However, the middle one needs to stay the same, I don't know how to code "if" statements in Rainmeter
https://www.nirsoft.net/utils/nircmd.html
And place it in a "nircmd" folder in resources. Then rewrite the left workspace swithcer code to look like this:
Code: Select all
[Rainmeter]
Update=1
[ghost1]
Meter=Image
ImageName=#@#Icons\ghost-red.png
H=13
LeftMouseUpAction=["#@#nircmd\nircmd.exe" SendKeyPress lwin+ctrl+left]["#@#nircmd\nircmd.exe" SendKeyPress lwin+ctrl+left]
Obviously for the far right you would switch "left" to "right". However, the middle one needs to stay the same, I don't know how to code "if" statements in Rainmeter