almulder

Members
  • Posts

    218
  • Joined

  • Last visited

Everything posted by almulder

  1. Update: See Post below for Script Link to jump to post: OLD: First let me say I know very little in the programming world, but interested in trying to create a plugin for themes, Yes I know there is something already (Theme Engine), but its very lacking and not as user friendly as it could be. I got board and have been digging through files and looking at what I can change to really theme Unraid. Like a true theme interface where you can have much more control on what is changed (For advanced users) and a Simplifed version for people who just want an easy what to change the color from the reddish orange to something else with just a few options filled in. I have a script I created that will do a simple replacement of most of the colors to something else, but I want to give people an interface to be able to do this and finer control over it for the ones who really want to mess with it. I need to know where to start. The current way I am applying my theme (And I am sure there is a better safer way) is copying the original file to a safe location and then modifying the original file with the changes using sed find replace feature. , then when they opt to change something the original backed up files are restored so they can try again, or simple they want the original color back. If someone can give me an idea of where to start. I know I will have lots more questions as time goes on, but I really want this to come about. I already have others testing my script at their own risk, and they love what I have done. Please help me. And thanks for taking the time to teach me. (And yes I will always try to google first). I can see getting really creative on what can be changed. And what people will create once they get the tools. - Albert
  2. OK. I will look i to that. In the meantime if someone could still upload the files for me.
  3. Can someone grab me the following files and post them as a zip file. I forgot to make copies before I started to edit them. Thanks! /usr/local/emhttp/webGui/images/UN-logotype-gradient.svg /usr/local/emhttp/webGui/images/animated-logo.svg /usr/local/emhttp/logging.htm /usr/local/emhttp/login.php /usr/local/emhttp/plugins/dynamix.docker.manager/styles/style-black.css /usr/local/emhttp/plugins/dynamix/styles/dynamix-black.css /usr/local/emhttp/plugins/dynamix/styles/default-black.css /usr/local/emhttp/plugins/dynamix/styles/jquery.sweetalert.css /usr/local/emhttp/plugins/dynamix/styles/default-popup.css /usr/local/emhttp/plugins/dynamix.docker.manager/log.htm
  4. Thanks for the option but it does not work when running it under user scripts. I do have a workaround I am trying.
  5. Never mind, I am figuring out a different way.
  6. Fist part of the file: <?xml version="1.0" standalone="yes"?> <!DOCTYPE PLUGIN [ <!ENTITY name "TestFile"> <!ENTITY author "Andrew Zawadzki"> <!ENTITY version "2020.05.30"> <!ENTITY md5 "d079ca6e025086978db8b2f7174ac448"> <!ENTITY launch "Settings/Userscripts"> <!ENTITY plugdir "/usr/local/emhttp/plugins/&name;"> <!ENTITY github "Squidly271/user.scripts"> <!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/master/plugins/&name;.plg"> ]> <PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.3.3" icon="file-text-o" support="http://lime-technology.com/forum/index.php?topic=49992.0"> <CHANGES> ###2020.05.30 - Fix Name / Description containing HTML when editing ###2020.05.11 - Fix display aberration caused by debugging info I have tried grep '<!ENTITY version' /boot/config/plugins/user.scripts.plg but get no result when I try grep '2020.05.30' /boot/config/plugins/user.scripts.plg it grabs the first comment line instead. ###2020.05.30 I belive the issue is <! part. how can I search for that?
  7. Maybe you can help me out with one of them to get me started. I want to get the version number from user.scripts plugin and then store that info in another file (we will call it old_userscripts_ver.txt). So my script would first check if the old_userscripts_ver.txt exists (Which I know how to do) Then if it does not exist, I need to create it with the version info from user.scripts plugin If it does exist I need to compare the versions from the original file vs my file, if they are the same then echo "Same" if different then echo "Different" Thanks for the help.
  8. Trying to create a user script and need to be able to look up what the current version of some plugins are. Where is this info stored, and how would I read that info?
  9. So first off thanks for making this for us. Do you plan on expanding the theme engine? I have been playing around creating a them and found this app limited in what I could make it do, so I started to play with settings and dug really deep into the files and came up with my current them. Check it out below. most of what I have done us all using a user script and a little bit of the theme engine, but I believe I can make almost all of it active from the script. You could maybe incorporate it into your app and make it really slick. There are more things I would like to clean up and then label the areas for easier editing, Let me know what you think. (Even got the logo and wait logo edited without having to replace them image.) And if anyone else want to take a look and let me know what you think. (Should be compatible with updates, Unable to test for now)
  10. So I think I have found all the orange themed stuff and made it blue. Now I just need to update my code and fix some other things. and then it might be ready!
  11. hernandito. I am making some progress on editing other locations and images. when I am done (Using stock images that are there now) I might be able to make the theme universal across versions to a degree. I have been doing some tests and able to edit the logo and wait logo colors without having to replace the images. Also been able to edit the colors of the boot screen. I hope to be done in a few weeks, (Got company coming over) but in the end I might just have a user script to do the theme and make some variable at the top so anyone can change the colors to their liking.) Fingers crossed. . And once I am done I plan on making it public and giving the info to the developer of the "ThemeEngine" so he can hopefuly intergrate it into his work and make themes more complete.
  12. Thanks for your help. Thats more complicated than I wanted. However if made me dig deeper and not just search for unraid but linux code and found out I could do this all in 1 line and it works great. sed -i 's/#FF8C2F/#42ADFA/gI' /mnt/user/text/mytestfile.txt Also found a way to use variables instead: old_color="#e22828" new_color="#00378F" sed -i "s/$old_color/$new_color/gI" /mnt/user/Unraid_Backup/Newlogos/hello.txt Hope this helps other one day!
  13. I need to create a script that will look through a file to find a specific text and replace all the matches with other text. How can I do this? lets say the file is /mnt/user/text/mytestfile.txt I am looking for #FF8C2F and want to replace them all with #42ADFA. This is something I need to run after every reboot.
  14. I have updated my post to reflect what you requested (and your right I should have included it the first time). Should you find a way to replace the logon screen and such that I am missing please feel free to let me know. Or if you need some help. Thanks!
  15. Ok I found the built in themes, (/usr/local/emhttp/plugins/dynamix/styles) Theme pictured below was created using the "Theme Engine" Plugin. Most of the areas I customized was done in the Custom Styling section with CSS code. Used the original themes as a template to find the CSS areas I wanted to modify. Alot of trial an error for what works) As far as the logo and loading pics go, they are svg files and are over written when the system reboots. So I used the plugin "User Scripts" to create a script to replace them and have it run "At Startup of Array". Store the files somewhere in a shared folder and then point to them. Here is the script I made for copying the file. The first part is where the new logos and stuff are, the second part is where they must go. #!/bin/bash cp /mnt/user/Unraid_Backup/Newlogos/UN-logotype-gradient.svg /usr/local/emhttp/webGui/images/UN-logotype-gradient.svg cp /mnt/user/Unraid_Backup/Newlogos/animated-logo.svg /usr/local/emhttp/webGui/images/animated-logo.svg I am not releasing this tot he public yet as there are a few areas I cant find how to change. Can someone help? Apps Tab: Orange Text such as current section / highlighting Sort Order Icons Unraid: Popup Windows, the buttons (Such as when you get container size, the done button does not change with other buttons it stays orange) Login Screen, Would like to change the look there also, Buttons and colors. Otherwise I think I got most of it.
  16. I have been trying to find the original theme files, but unable to locate them. Anyone know where they are in 6.8.3? I want to make my own theme, I checked out Theme Engine, but its very limited and does not change all areas. I am looking to change Logo, all the buttons (including login if possible), The page loading (Wavy Bar Currently), Apps page text from orange to another color. Basically anything with the Orange text, buttons, logo, ect.. Thanks. Is there anywhere that talks about how to create a custom theme, that themes everythings?
  17. So I just discovered this yesterday and love it, but is there a way to more control over the buttons? I would like to just change the border color, and then the highlight color to be granulated but a different color than whats there now. Is there anywhere I can go to find all the css stuff that can be changed? Also in the Dashboard section, the headers have 2 different colors showing, and way to make all the headers change together, but not affect the even, odd line highlights?
  18. tower-diagnostics-20200621-1440.zip 1) Here is the file requested. 2) No assignments on old system nor new, however I did make cpu assignments because of a sujestion another user mention it might help. (it did not) From the looks of it I assigned cores to dockers, but the dockers are still using whatever cores it wants? I believe my issue comes from tdarr, so i tried using cpu pinning but same issue, shutdown tdarr and things seem to improve. 3) htop takes forever to load once dockers are running Added screenshot of Dashboard Here is my docker CPU pinning Are there any settings I should look at and change? Thanks for your help.
  19. Will do, I had to leave town for a bit all of a sudden, but I will do so once I get back. Thanks
  20. So I have been banging my head for 2 weeks now and losing my mind. I upgraded my hardware from an AMF FX chip to an Intel i9. From 32gb ram to 64gb ram. From 512gb cache to 1tb. All drived and everything else the same. No VMs only dockers and no new dockers were added. And yet my system seems to be running like shit. If I get more than a few dockers running things seem to run really slow. An my write speeds are really slow compared to before. Where do I start to try and track the issue down. Or is the a kernel issue because I have newer hardware? Just at a total loss. Please help and thanks for helping. - Albert
  21. So i think i understand the above, but I have a question. lets say I have 8 cores and isolate 1 of them and then in a docker I pin the isolated core and 2 other cores, would that mean the docker is always going to have at least the 1 core, but would use the other 2 if available.
  22. Also while your at it can it do forced subtitles? And make it so we can reduce resolution? I have many files that are 4k,2k and would prefer 1080p. so it resolution is greater than 1080p reduce to 1080p (1920x1080) but keep aspect ratio? Here is what I use in handbreak, maybe the ability to customize it? '--encoder nvenc_h265 --quality 24 --encoder-level "5.1" --encoder-preset 6 --maxWidth 1920 --maxHeight 1080 --keep-display-aspect --aencoder copy --all-audio --audio-copy-mask aac,ac3,eac3,truehd,dts,dtshd,mp3,flac --audio-lang-list eng --all-subtitles --subtitle-lang-list eng --subtitle-forced