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)

Similar Messages

  • 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!!!

  • 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.

  • 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]

  • 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

  • [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)

  • ADF Mobile : Setting background image using inline style not working.

    The snippet is part of my amx page.
    But the issue is that the background image is not coming up in the deployed iphone application.
    The html source of app page shows that a background image is associated with this component but the location is file:///Users/oracle/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/com.oracle.smartphone/smartphone.app/backgroundrepear.png instead of some Xcode_Project>Far location which I was expecting.
    The image is actually present in public_html/icons
    And I set the inline style using the property inspector of listItem.
    <amx:listItem showLinkIcon="true" id="li1" action="goToWorkerDetail"
    inlineStyle='background-image:url("/icons/backgroundrepear.png"); background-repeat:repeat-x;'>
    <amx:tableLayout width="100%" id="tl1">
    <amx:rowLayout id="rl2">

    955920 wrote:
    The snippet is part of my amx page.
    But the issue is that the background image is not coming up in the deployed iphone application.
    The html source of app page shows that a background image is associated with this component but the location is file:///Users/oracle/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/com.oracle.smartphone/smartphone.app/backgroundrepear.png instead of some Xcode_Project>Far location which I was expecting.
    The image is actually present in public_html/icons
    And I set the inline style using the property inspector of listItem.
    <amx:listItem showLinkIcon="true" id="li1" action="goToWorkerDetail"
    inlineStyle='background-image:url("/icons/backgroundrepear.png"); background-repeat:repeat-x;'>
    <amx:tableLayout width="100%" id="tl1">
    <amx:rowLayout id="rl2">hi,
    i managed to get the background-image working. I dont use inlineStyle , instead i use "Skinning"
    Since im want all my pages have the same background image, i overwrite the panel page css
    .amx-panelPage {
    background-image: url("../pic1.jpg");
    the css file is located under "ApplicationController/public_html/resources/css/myiPhone.css"
    the image file is located under "ApplicationController/public_html/resources/pic1.jpg"

  • 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

  • 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.

  • 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

  • PanelTabbed setting background image to tab

    Hi,
    I have 2 questions in UI components . I am using Trinidad components.
    1) I am having the paneltabbed with 2 tabs, i want to change the background of tabs based on selection(when selected tab1 background should display a.png ,when tab2 is selected tab1 should display b.png, similarly all tabs background image should change dynamically based on selection.
    I wrote javascript for onclick event
    function TabButtonSelection(){
    alert('inside Tab1ButtonSelection');
    document.getElementById('Frame1:sdiTab1').style.backgroundImage="url('/images/yellow.jpg')";
    document.getElementById('Frame1:sdiTab2').style.backgroundImage="url('/images/grey.jpg')";
    but not working. Can you please give any suggestion?
    2) Input Date is not displaying calendar(date picker) icon, so i couldn't select date
    <tr:inputDate label="Date of Birth" required="true" id="selectInputDate1" shortDesc="Enter date in dd/mm/yyyy format" requiredMessageDetail="Enter date in dd/mm/yyyy format">
    <f:convertDateTime pattern="dd/mm/yyyy"/>
    </tr:inputDate>
    only label and textfield is displayed , i am able to enter date but can't choose from calendar. If i set chooseid for inputdate component full calendar is displayed.
    Please provide some solutions.

    Trinidad Users mailing list should be able to provide answers for Trinidad
    http://myfaces.apache.org/trinidad/mail-lists.html
    There is no reason you should have to use javascript. You can use skinning and the "selected" pseudo class to style the tabs.

  • Setting background-image as editable in Fluid Grid Layout (Template file)

    Hi, Im very basic on Dreamweaver so bare with me,
    I am creating my first website and setting up my template file.
    I am struggling with making my background image editable in the template file,
    Alot of the awnsers point me into creating a new background style sheet which I have done.
    I have included :
    <link rel="stylesheet" href="../Background style sheet.css" type="text/css">
    into my <head> in the source code and now im pretty lost for what to do next... I want to link it to all my mobile, tablet and desktop #main divs and then be able to edit the background image for my different web pages;
    for example my home page is one background-image and then the other web pages all have other background images.
    Sorry if I am not asking the right questions, I am very new to coding
    Regards,
    Confused Graphic Design student.

    It's actually very easy to target the <body> of each page in an external stylesheet to change the background individually, just not with DW Templates.
    Normally, what I would do is give each page's <body> tag an id, for example, on an about.html page...
    <body id="about">
    Then in the css, you would give the #about id a background-image setting...
    #about {
         background-image:url(about_bg.jpg);
    Each page would have a similarly named id in the <body> and a corresponding #id in the css.
    Side Note: Stick to lower case, alpha numeric file names for all of your pages and images. Use underscores or hyphens instead of spaces for them too. Servers are CaSe SenSitIvE and a link to Index.html (capital i) will not go to a page named index.html (lowercase i). It will work on your local system, just not on the server because the server sees the case structure difference as two separate files.

  • Set Background image to JScrollPane ---  Need Help!!

    Hi all;
    How can i set a Background Image to this JScrollPane?
    JLabel imageLabel;
    JScrollPane jsp = new JScrollPane(imageLabel);
    Pls need your sugessions...
    Thanking in advance
    Madumm

    I included a complete code listing of a functional example. The main problem with wha tI shared earlier was that I did it quickly in Groovy, where everything is an object. When I called layeredPane.add(xxx, 4) - the number 4 was an object - whereas in Java it is not - this called the wrong function so that the label would not appear... ok - here is the code... run this with your own image and then modify it to do what you need...
    import java.awt.Dimension;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JLayeredPane;
    import javax.swing.JScrollPane;
    public class BackgroundImageExample {
        public static void main(String[] args) {
            try {
                //Load Image
                String filename = "/home/dlpinto/Desktop/Screenshot.png";
                BufferedImage image = ImageIO.read(new File(filename));
                //Create Image Label
                JLabel label = new JLabel(new ImageIcon(image));
                label.setBounds(0, 0, image.getWidth(), image.getHeight());
                //Create Layered Pane
                JLayeredPane layeredPane = new JLayeredPane();
                layeredPane.setLayout(null);
                layeredPane.setPreferredSize(new Dimension(image.getWidth(), image.getHeight()));
                //Create Desired Components
                JLabel messageLabel = new JLabel("Hello World");
                messageLabel.setOpaque(true);
                messageLabel.setBounds(50, 50, 100, 100);
                //Populate Layered Pane
                layeredPane.add(label, new Integer(JLayeredPane.DEFAULT_LAYER-1));
                layeredPane.add(messageLabel, JLayeredPane.DEFAULT_LAYER);
                //Create ScrollPane
                JScrollPane sp = new JScrollPane(layeredPane);
                //Create & Display Frame
                JFrame frame = new JFrame();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setSize(800, 600);
                frame.add(sp);
                frame.setVisible(true);
                System.out.println(layeredPane.getLayer(messageLabel));
                System.out.println(layeredPane.getLayer(label));
            } catch (Exception e) {
                e.printStackTrace();
    }

Maybe you are looking for