[SOLVED] Set background image without feh

I've been setting my background image by using "feh --bg-fill [path to image]" but I would like to move to a simpler alternative such as imlibsetroot, hsetroot, xsetbg, etc.  The problem is that I haven't been able to find a way to get any of these programs to do exactly what feh's --bg-fill option does.  That is, the image should scale up or down, while maintaining its aspect ratio, until either its horizontal or vertical edges meet the sides of the screen and there is no empty space visible.  Basically, I want the program to push part of the image off the screen if that's what it takes to fill the whole thing.
Is there a way to do this that I'm just missing?
Last edited by zcal (2012-08-05 16:29:50)

Trilby wrote:Use an image editor to scale/stretch your image to match your screen's resolution.  Then use one of the *setroots.
This was my first thought, but I move between three separate screens of different resolutions.  I've resigned myself to being stuck with feh for now.    Thanks for your suggestion, though!
Edit:
Worked up a solution similar to this but that doesn't require editing any image files.  imlibsetroot has an option (-s X,Y) for scaling an image to a set X and Y number of pixels.  Since I use a couple of custom shortcuts to toggle screens with xrandr, I just tacked on imlibsetroot with the appropriate number of pixels for each screen.  This allows me to set the image width or height to be wider or higher than the screen if necessary to completely fill up the background, it just means I need to do some simple math to get the right dimensions.
Here's an example for an image of 1440x864 on my 1280x1024 monitor:
xrandr --output LVDS --off --output VGA-0 --auto && imlibsetroot -s 1707,1024 -p c ~/look/background
Admittedly this solution would suck if I changed my background on a regular basis, but I don't. 
Last edited by zcal (2012-08-05 16:32:25)

Similar Messages

  • Feh Not setting background image[SOLVED]

    I don't know what is going on but feh absolutely refuses to set the bg image on x starting up.  I can set it manually just fine but it will not reset it on xstart.  Here is my .xinitrc:
    \#!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    #exec xterm
    exec openbox-session
    eval 'cat ~/.fehbg' &
    And ~/.fehbg has the command that I use to set the background, which works just fine if I execute the command after I am in x so I have no idea why it isn't working.  Every resource I have looked at on the net says to simply add the "eval 'cat ~/.fehbg' &" line to .xinitrc after you set the background image with feh but I cannot for the life of me figure out what is going on.  Thanks in advance.
    Last edited by isolier (2008-01-11 08:55:41)

    I think you need to use  `s instead of 's around your cat ~/.feghbg
    Also, Archon is probably right, since you are exec'ing the openbox session and leaving it in the foreground, your command will never execute until openbox-session is done
    Last edited by underpenguin (2008-01-11 08:16:06)

  • Flex4 How to set background image in Vgroup..?

    Hi.,
            I have using v flex 4 vgroup to set background image., but image was not display.. any change my code.,
    <fx:Style>
          .backgroundImage
                color:#808080;
                fontWeight:bold;
                fontSize:18;
                fontStyle:italic;
                contentBackgroundColor : #FFFFFF ;
                backgroundImage:Embed("assets/Green Apple.jpeg");
    </fx:Style>
    <s:VGroup paddingBottom="10" width="100%"  height="600" paddingTop="10"  styleName="backgroundImage">
        <s:Label text="hai hai hai">
             </s:Label>
           </s:VGroup>
    any solution to solve this....
    With Regards.,
    LinFlex-

    @Peter
    Yes! This works well now. Now I can get repeating background images directly in the code as well as in my CSS style sheets.  This looks good and helps me a lot as there are lots of occasions for me using this. I've gotten used to having repeating image backgrounds in HTML and missed that in Flex 3. This feature alone makes moving to Flex 4 worthwhile.
    This works fine for me:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
      <!--make a background for the whole page  -->
        <s:BorderContainer width="100%" height="100%"
             backgroundImage="@Embed('images/bkg/grey_grid.gif')"
             backgroundImageFillMode="repeat" >
      <!--make an inner area with a graphic background  -->
            <s:BitmapImage id="legalPad"
                  source="@Embed('images/bkg/legalPad.gif')"
                  fillMode="repeat"
                  left="40" top="100"
                  width="825" height="200" />
        </s:BorderContainer>
    </s:Application>
    Here are the images I used:
    grey_grid.gif
    legalPad.gif

  • Setting background image for repeating frame in .pdf report

    Is it possible to set a background image for a repeating frame, and more specifically for a repeating frame rendered in .pdf?
    I do not see any standard property in the navigator for images of any sort and the documentation touches only on setting background images for graphs, which is not the intent in my case. I -did- add an HTML table property background="myimage.jpg" but the report is ultimately generated in .pdf format and I was not surprised to see that the image was not rendered.
    Does anyone know if setting a background image as described is even possible, and if so, how? A second but less optimum solution would be setting the image as the background for all report pages, again in .pdf.
    Many thanks.

    Hi Raj,
    Yes you can have an image in the background. Thats possible if you are using XML forms as an iview or ivew dev in WebDynpro...
    Also check this [link|regarding background color change in iview]
    Regards,
    Piyush
    Reward points if this helps!!!

  • Flex 4 Mdi canvass, how to set background image..?

    Hi.,
         Now i try to use mdi canvass  background image,how to set  background image in mdi canvass in flex 4..
    With Regards
    LinFlex-

    In the past flex 3 version, there is an attribute call <flexlib:MDICanvas  backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    to set it. However it has problem in Flex 4 because of 'halo' and 'spark' theme library changed.
    The following is my post that still haven't found the answer.
    Dear all,
    We  have a project that doing migration from flex 3 to flex 4. We use  flexlib the latest version of
    flexlib - 2.5 - flex4.zip.
    However we  confronted problems that several of attributes that flex 4 doesn't  support:
    Constraints are listed as follows:
    1) <flexlib:MDICanvas  backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    2)  <flexlib:MDICanvas backgroundSize="auto"/>
    3)  <mx:ApplicationControlBar barColor="#000000">
    original error message:
    ====================================================
    Description     Resource    Path    Location    Type
    The style 'backgroundImage' is  only supported by type 'flexlib.mdi.containers.MDICanvas' with the  theme(s) 'halo'.    MainView.mxml     /osss/flex_src/hk/gov/labour/osss/view    line 242    Flex Problem
    Description    Resource    Path     Location    Type
    The style 'backgroundSize' is only supported by type  'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'.     MainView.mxml    /osss/flex_src/hk/gov/labour/osss/view    line 242     Flex Problem
    Description     Resource    Path    Location    Type
    The style 'barColor' is only  supported by type 'mx.containers.ApplicationControlBar' with the  theme(s) 'halo'.    MainView.mxml     /osss/flex_src/hk/gov/labour/osss/view    line 227    Flex Problem
    Regards,
    Man  Pak Hong, Dave
    manpakhong
    [email protected]

  • Set BackGround Image

    Hi,
    i am new Developer in iphone,i want to ask very basic Question, i install iphone SDK 3.1 and using snow leopard 10.6
    how to set Background image in iphone sdk 3.1,

    Sure, search the forum, this question has been asked and answered weekly. Keywords like "background image" taken from your subject line would be a good place to start. So its really not that difficult to think up search words now is it.

  • SETTING  BACKGROUND IMAGE IN SAPSCRIPT

    HI,
    CAN U TELL  ME HOW TO SET BACKGROUND IMAGE IN SAPSCRIPT.
    REGARDS,
    SANJAY.

    Hi Sanjay,
              You can use transaction SE78 to inmport graphics to SAP.In the form painter, you can either include directly to the form using
      Edit->Graphic->Create or using the INCLUDE statement in a window.
    To use an INCLUDE stanment, goto the window script editor and use menu Include->Graphic. The include can look like this for a bitmap:
    /: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON

  • I need to set background image in interactive forms. How it is possible ple

    Hi,
    I need to set background image in interactive forms. How it is possible please explain it step by step.
    Regards,
    Gurprit Bhatia

    Hey Gurprit,
    All you need to do is:
    1. drag and drop the Image object from the Library -> Standard tab
    2. select the image you want to use
    3. position the image on the form where you want
    4. right click the image and say "Send to Back"
    That should be it!!
    Cheers,
    Kevin

  • Spry Menu Bar using CSS background image without losing submenu ( V) indicators

    Spry menu bar sets the down and side submenu indicators using
    a positioned background image. I have a requirement to use a
    specific background image yet must retain the > and v submenu
    indicators. Without having to generate full width custom background
    images for each of the menu item types to include the side and down
    menu indicators, is there anyway to use a generic background image
    and show the indicators using just CSS?

    Don't use reserved words in JS
    var event = new Spry.Data.XMLDataSet("events.xml", "catalog/event", {sortOnLoad: "date", sortOrderOnLoad: "descending"});
    event is such a reserved word. If you change this to event1 then all is well.
    I hope this helps.
    Ben

  • Problem in setting background Image to TabedPane.

    Hi Pals,
    I created a JFrame which consist of some components. The structure of the added components are given below.
    1) I added a JPanel (MainPanel) with background image in a JFrame.
    2) I added a JTabbedPane with 7 tabs in the previous JPanel (MainPanel).
    3) Each tabs in the JTabbedPane having JPanel with Background Image.
    This is my Frame Structure. but i haven't problem to run in JDK1.6,1.5. It is working perfect. But when am run in lower version like 1.3 or 1.4. The design is looking bad. The JTabbedPane overlap the (MainPanel). The background image of the (MainPanel) was hided. I set setOpaque(false) for the JTabbedPane. But it also not working. How can i solve this problem.
    By,
    Mohan

    Your problems appear to stem from your choice of layout manager(s). To get better help sooner, post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    To post code, use the code tags -- [code]Your Code[/code] will display asYour CodeOr use the code button above the editing area and paste your code between the {code}{code} tags it generates.
    db

  • How to set background image in a cell?

    I am trying somethign that seems tricky to me...
    The image I am using I faded to a solid color on the bottom
    half. I set the background image to to left and NO REPEAT but when
    the cell grows with content and it stretched beyond the image it
    goes blank underneath. How do I set a background color without
    going over the background image?
    I need them both to be background because I want to use text
    over both.
    Any ideaS?

    Color goes UNDER the background image. Just set it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "StarPilot06" <[email protected]> wrote in
    message
    news:eqqve6$341$[email protected]..
    >I am trying somethign that seems tricky to me...
    >
    > The image I am using I faded to a solid color on the
    bottom half. I set
    > the
    > background image to to left and NO REPEAT but when the
    cell grows with
    > content
    > and it stretched beyond the image it goes blank
    underneath. How do I set
    > a
    > background color without going over the background
    image?
    >
    > I need them both to be background because I want to use
    text over both.
    >
    > Any ideaS?
    >

  • How to set background image in Dynamic Shell Layout

    Experts,
    Using dynamic shell layout, how can we create a skin like this http://www.2shared.com/photo/OqXfb5jq/layoutissue.html
    Issues :
    1)Need to set the background to the page - How to set it in dynamic shell layout.
    2)Panel box color to be changed
    please advice
    thnks
    jdev 11.1.2.1

    Color goes UNDER the background image. Just set it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "StarPilot06" <[email protected]> wrote in
    message
    news:eqqve6$341$[email protected]..
    >I am trying somethign that seems tricky to me...
    >
    > The image I am using I faded to a solid color on the
    bottom half. I set
    > the
    > background image to to left and NO REPEAT but when the
    cell grows with
    > content
    > and it stretched beyond the image it goes blank
    underneath. How do I set
    > a
    > background color without going over the background
    image?
    >
    > I need them both to be background because I want to use
    text over both.
    >
    > Any ideaS?
    >

  • Setting background images for transparent terminals

    Of the various terminal emulators I've tried (aterm, urxvt, terminal) none of them function properly with regard to transparency if the background is set with imagemagick.
    display -window root <image>
    Terminal and aterm do not show through to the background image at all. While urxvt does become transparent, none of the tinting options show any effect.
    This is not a huge issue. There are of course many other programs that can be used to set a background image. When using feh for example, all of the afore mentioned terminal emulators seem to handle transparency as expected.
    feh --bg-scale <image>
    However, if both methods of setting the background are used at the same time with different images, then the terminal emulators will show through to the background image that was placed with feh, while the actual desktop background is that of the image set by imagemagick. So the images are effectively placed on different layers.
    There was a forum thread that hinted at this before, but there was never any resolution to it. Is this behavior a bug or a "feature"? With which program?
    And if it makes any difference I've tried this in both openbox and ion3. Same results.

    derelict wrote:There was a forum thread that hinted at this before, but there was never any resolution to it. Is this behavior a bug or a "feature"? With which program?
    It's a bug with the apps that set the background which use the "old way" of doing it.  Apps like feh use the "newer approach" which allows things such as aterm to detect the real image and use it for pseudo-transparency.

  • How to Change log in background image without third party apps on Mountain lion

    Hi I am trying to change the log in screen without using a third party app on OSX 10.8. every time I use Loginox the background image changes but if i create an image of that volume and reimage another mac with a different screen size the background becomes in tile mode. Does anyone know how to replace the log in background without the third party app?Thank you for the help.

    Without third party application, you can not change the login screen linen background.
    Best.

  • Set background image in the Interface builder

    Hi,
    Is there a way to set a background image for a View controller through the Interface builder? I'm using story boards.
    If not please tell me how to do that programatically. I need to set this background image for all my UIs.
    Thanks

    Remember that the client is running from a browser. You need to have the file be available to the browser and that means having it be served by the web server. Place the image file in a directory available to the web server and map that directory to a virtual web server directory and specify it with a url relative to the web server root: /images/your_image.gif

Maybe you are looking for

  • Catalyst Control Center crashing on start-up

    Every time I start up my laptop Catalyst Control Centre and its subsidiary apps keeps crashing and it shows in taskbar "Error Reporting Icon" eg = MOM.exe eg = Catalyst Control Centre Launcher.exe Even if I try to reload the application manually then

  • [JS][CS3] Applying an Object Style

    Hi. This is a simple one, I am trying to apply an already made Object Style to a text frame. I am using a similar method as used to apply a paragraph style: myFrame.appliedObjectStyle.name= "GreenBox"; and also myFrame.appliedObjectStyle= "GreenBox";

  • Embedding Images In cfgrid

    Question re: embedding images within cfgrid. Based on what I've read so far, it seems the only way to embed am image within a cfgrid is by pulling image URL info from a database. My question is can this be done without referring to a database at all

  • Thumbnails don't work

    Hello, In the older version of iWeb when I posted a picture page when someone clicked on a photo thumbnail it would open a larger photo of that thumbnail. Since the update it won't work anymore. Am I missing something here? Any help is appreciated. T

  • Can't get into Facebook - doesn't show all the page. Can't get into my regular AOL - Firefox will only do Basic AOL not what I usually have.

    When I sign into Facebook, it doesn't bring up the whole page. It only has things on the left side that say messages, Log Out, and a few other things. It won't go into Facebook as it should. When I try to go to my e-mail, it won't go there. It says I