The most popular way to set your background in i3 seems to be using feh, via something like:
exec_always feh --bg-fill /home/user/Pictures/wallpaper.jpg
in your ~/.config/i3/config file. Then, in ~/.Xresources you can configure URxvt to be transparent with something like:
URxvt.transparent: true
URxvt.shading: 50
URxvt.blurRadius: 0
URxvt.background: #d3d3d3
URxvt.foreground: #1d1f21
And as you can see, those two things together work perfectly with feh on my home computer. Ignore the horrific color scheme for now.
Now, for various reasons I don't have access to feh due to limited yum repos at work. I can't download and compile it myself or anything like that either. As a substitute, I've been using ImageMagick and its display functionality to set my background with:
exec_always display -window root /home/user/Pictures/wallpaper.jpg
which by itself, does set the wallpaper and works with i3.
The problem is that when I do this, it seems like ImageMagick has just set an overlay rather than actually setting the root image and as a result URxvt just reads a default grey root image. Note that this is also my home computer, where feh works just fine so it is not a URxvt problem.
Is there a different way to set my background using ImageMagick so that it actually sets the root wallpaper? This is the solution that I would prefer.
Are there other pieces of software, or preferably commonly pre-installed tools (Oracle Linux), that can be used to set my wallpaper? Again, keep in mind that I don't have access to things like feh at work, and anything else I'd have to look and see. I've seen this post that mentions a few but haven't had time to check if they exist at work or not. 1. I also don't have access to things like compton, xcompmgr, etc. for true transparency.
Update: I have tried using xsetroot and converting my .jpg images to .bmp using ImageMagick's convert, but xsetroot only works with .xbm images which only support black and white. This won't work cause I'd like it to still be the same as the .jpg image shown.
Related
A premise, in case it makes any difference: I've deleted the CEF folder, since with it the BrowserComponent didn't work for me, and installed the ZuluFX Java 1.8 (with later versions, like ZuluFX 1.11, BrowserComponent didn't work either; this, on a side note, might be related to the same issue that has Cordova when one tries to work with Java > 8).
The problem: using BrowserComponent.setPage with a string, I can create, indeed, programmatically and on the fly, a html page which is properly shown.
When I use an example from BabylonJS (a string containng a html file which loads a cube, loaded as asset, and shows it: the html page -of course- works when loaded in a normal browser) nothing happens, at least in the simulator.
Before to start to make hypothesis (maybe the problem is in loading the cube; maybe in loading the scripts; maybe it can't work in simulators, but will work in the app; etc.) I'd like to know if BrowserComponent is supposed to work with WebGL.
I have an issue with Appcelerator App Designer.
I have an image path in assets like app/assets/iphone/images/MainBG.png
In xml i need to use path like /images/MainBG.png
But App Designer set path like /iphone/images/MainBG.png that does not work when i run my app... Yes, i can change this path, but after that i cant see image in App Designer view.
And second question:
App Designer cant use alpha... Yes, i can manualy set BGcolor like rgba(150,0,0,0.5) but in App Designer view i cant see result.
Can any one help me?
Sorry for my English))
Though I have not used App Designer, but following might help you:
put all your image files in app/assets/images folder
now set path in XML like image='/images/MainBG.png'
Set background color manually, you can use following combos:
you can use backgroundColor:"#fff"
also you can use backgroundColor:"#ffffff"
this one also works backgroundColor:"white"
this one works for alpha - backgroundColor:"#abcd", in this syntax, alpha will be 'aa' & r/g/b will be bb/cc/dd.
so this one will also work for alpha - backgroundColor:"#aabbccdd", 2 digits for each alpha/red/green/blue
On our site http://eatplaygear.com/gear/tops (Joomla, using Virtuemart for the eCommerce)
The desktop version shows the correct colors for the product images.
But somehow on mobile these images are dulled.
I have tried to web-inspect using a Mac and iPhone to see if maybe the src is pointing to another version of the image. But it isn't, the path is the same as the desktop.
Also tried searching there have been previous issues with Joomla Virtuemart, but to no avail.
Any idea what the issue is and how to solve it?
EDIT:
desktop not virtuemart - http://phorge.com.sg/images/desktop-non-virtuemart.jpg
mobile(android) not virtumart - http://phorge.com.sg/images/mobile-non-virtuemart.png
notice how the colors match
desktop virtuemart - http://phorge.com.sg/images/desktop-virtuemart.jpg
mobile(android) virtuemart - http://phorge.com.sg/images/mobile-virtuemart.png
notice how the images on mobile dull out?
OK upon doing some trial and errors. apparently it had to do with the color profile when exporting the image. just make sure to use Save for Web if using Adobe softwares and strip the color profile
I have been told this is possible to do but cannot get this to work.
Basically I am trying to cache and image using forge.file.cacheURL()
Now I can get the file just fine and display it in the page by creating a new Image object but what I want to do is use this cached image to change the image in the topbar.
When ever I try to do it I get an error saying "file not found" and after reading the docs a little more it seems that trigger may have "src/" coded into the class because if I put just "image/logo.png" the logo.png will show up in the header because its part of the app package.
I guess the question is.. Is my assumption correct?
Thanks!
The native UI elements (topbar/tabbar) load images directly from your apps package, not through a URL in the same ways images are shown in the webview.
What this means is that currently you can only use images included in your app in the topbar/tabbar modules.
in case anyone is interested in this, the ability was added a while ago to the API so you can now use a cached image or filesaveURL feature of forge to change the header image dynamically.
I know how to register+notify and unregister+notify a font using Delphi.
But I want to know what can I do when I have a font which has a similar name with a already registered font (but it's a different version). Maybe even in "use".
I can try one of these:
Use the font just locally in the program (but in some situations I don't have access to code because I didn't make it);
Somehow temporary unregister the local one (even if it was in "use"), use the new one as long the program is open and reregister the local one after the program is closed.
I would prefer the first but I'm not sure 100% that it can be done (I never heard of a font used locally in a normal Windows program but I asked just in case I'm wrong).
And I don't know if it's ok to forcibly unregister fonts in "use" (if it's possible).
But maybe someone has a better idea...
Thank you.
What about telling the user he has an old version of the same font installed, and new versions needs to be installed so he can experience the new glyphs.
You can even do that in the installer for your program; that's what installers are for: people expect things to change/improve when running installers :)
Edit:
If you don't have an installer, then make it clear to the user that he has two options:
have it let your app install the updated fotn
don't see all the characters
Applications that change entire system settings for their own purposes, even if temporary, are typically looked at in a negative way.
Say you remove a font, then change it to yours, then your program ends/crashes before the original is restored.
Sounds like you have a variant font you want to use for your application that already uses a name
that may be found on the system.
I personally would change the name of your new font to something unique enough that it won't conflict with existing fonts. That way you can use your font without affecting other applications.
Updated:
Since you can't change the name of the font. I would follow Jeroen Pluimers Recommendation of asking if the user wishes to upgrade. This does not need to be done in an installer, it could be done from the application on start up. But asking the user is far better than doing it silently.
Use font locally - bordering on the impossible
Your point "1" should be possible (use a given font only locally) because Web Browsers do it. The #font-face CSS directive can be used in a way to ignore the locally installed fonts. But I suspect doing this the web-browser way is difficult: I didn't see any way to CreateFont using a TTF file. I suspect web browser do it by re-implementing the whole text rendering engine. This is very likely because they usually support more then one type of font files.
If you do get this to work, it's not going to work with standard API's. You're not going to set the Font property on a label and automatically get it to render using the given "local" font. You're definitively not going to get this working with an unmodified application.
Replace Windows font - very bad idea
Unfortunately, as Robert mentions, this is not something you should do. If the user happens to have a font with the exact name of your font, what makes you think yours is better? In this unlikely case you should use whatever the user has, and blame it on the user if the user installed a bad font.
Possible solutions
Use images in place of the special-typography text. Works for small amounts of fixed font size text.
Put your text into a TWebBrowser and style it with CSS to use your local, alternative font.