-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set Theme from Command Line #958
Comments
not build-in to RetroBar, but here is a bat file that does exactly that. save as ChangeRetroBarTheme.bat and run as administrator (check that the retrobar path is correct on the end of the file) Example of theme name to type if you want to change to win xp blue:
dont include " " in the theme name or .xaml, just the name of the theme.
|
and if you want the bat to not ask user for theme name, do this: change set /p new_theme=Enter the new theme: to set "new_theme=Windows XP Blue" and remove the "pause" from the end of the bat |
trying to get this to work but won't |
what is the theme file name? Luna.xaml or what? |
I am trying to change this to XP Blue but won't change theme, any other way to make it work with the BAT File for changing the entire theme of Windows? |
@echo off :: Define the path to the settings.json file :: Check if the file exists :: Prompt the user for the new theme value :: Create a temporary file :: Process the file line by line :: Replace the original file with the updated one echo Theme updated successfully to "%new_theme%". :: Kill the RetroBar process :: Start RetroBar again echo RetroBar has been restarted. here's the command |
the command you used for set windows xp blue is wrong, try this one: (see the difference?)
|
still nope...
still nope |
what is the path to retrobar.exe? this bat works fine on my end |
for me: C:\Classic\RetroBar |
|
not working for me?! |
you need to run it as administrator: shift+rightclick the bat file and select "run as administrator" |
still no sign of theme changing |
can you save it to c:\classic\changetheme.bat then hit windowsbutton+r and type "cmd" now type "c:\classic\changetheme.bat" |
ok so there is a permission error, you dont have admin rights apparently |
how do I make it not reject the change? without admin permissions? |
type this to cmd
does it say "administrators" at the bottom? |
yeah |
well try closing retrobar manually and then run the bat when retrobar is not running if this works, then something is blocking the taskkill command, might be antivirus protecting you? |
idk? |
test running the bat when retrobar is closed and i might have a possible fix for you, first we need to find the problem |
because it won't change theme when open |
it will change, but on your case it does not. so try this then, it closes retrobar first:
|
uuuughhh! nope.... it doesn't... |
type this to cmd and take a screenshot:
|
where do I put it in? |
my PID for RetroBar is 3696 |
do you have something else also running? like OpenShell or similar? that might be the reason this is failing another possibilities: |
no admin access... :( |
Dremin needs to make a new feature where you can set the theme from one single command line without restart |
well i will make it for you, maybe an hour and it is done? probably, lets see (no promises) give me some details what you want from the cmd command? RetroBar.exe -ChangeTheme "Windows Xp Blue" is this good? |
lemme try |
I mean i can make a feature for it and the make a pull request so you can download a retrobar with cmd functionality, that is not a problem, i can do it if you want something like that. |
sure |
ok, i will post it here when it is done. |
thx |
yeah i have it working now, i am just cleaning code, mayb 10 minutes and you can test |
here you go: |
i tested and it works fine on my system. |
nope, download failed, something went wrong. |
it detected a threat... what a pain in the ass for me.. |
you can compile it yourself too if you have visual studio |
it is no trojan for sure, i just compiled it myself |
download failed again... 😭 |
WHY WINDOWS DEFENDER?!!? |
Well this is all I can do for you at the moment :D Best of luck! :) |
yeah,, they just detected RB as a false positive |
Is there a way to set the RetroBar Theme from the Command Line? For Example: Luna, is something I want to set it as
The text was updated successfully, but these errors were encountered: