How to permanently set default color of feh's background to black?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:



enter image description here



As you can see, it's the checkboard background. How do I permanently change this to black?



I've search Google and other places, but I can't seem to find a straight answer. I'm guessing feh's config file is involved, but I can't find any examples of how to do it in the config file. I know you can do it in the command line with --bg-color black (or something) but I'd like to just have it set to black by default.







share|improve this question
























    up vote
    0
    down vote

    favorite












    Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:



    enter image description here



    As you can see, it's the checkboard background. How do I permanently change this to black?



    I've search Google and other places, but I can't seem to find a straight answer. I'm guessing feh's config file is involved, but I can't find any examples of how to do it in the config file. I know you can do it in the command line with --bg-color black (or something) but I'd like to just have it set to black by default.







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:



      enter image description here



      As you can see, it's the checkboard background. How do I permanently change this to black?



      I've search Google and other places, but I can't seem to find a straight answer. I'm guessing feh's config file is involved, but I can't find any examples of how to do it in the config file. I know you can do it in the command line with --bg-color black (or something) but I'd like to just have it set to black by default.







      share|improve this question












      Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:



      enter image description here



      As you can see, it's the checkboard background. How do I permanently change this to black?



      I've search Google and other places, but I can't seem to find a straight answer. I'm guessing feh's config file is involved, but I can't find any examples of how to do it in the config file. I know you can do it in the command line with --bg-color black (or something) but I'd like to just have it set to black by default.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 25 at 20:05









      M. Knepper

      8917




      8917




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          It seems that you cannot put your desired default options in a config file.



          If you know about $PATH you can resort to a hack.



          Create this script:



          #!/bin/sh
          feh --bg-color black "$@"


          Call it feh and place it in your $PATH before /usr/bin/ (assuming that feh itself is in /usr/bin/).



          Some distros have ~/bin/ in $PATH by default. So you would put that script into ~/bin/ (and make it executable). Otherwise just create this folder yourself and prepend it to your $PATH.



          Also, if you want to set multiple default options, you can group them into themes. (Theme is the feh developer's name for a named group of options.) Create ~/.config/feh/themes and add this line to that file:



          default --bg-color black


          feh -Tdefault will then start feh with your desired default options. This is handy if you want to set multiple options at once. Unfortunately there is no way to set a default theme either. So, in your case it doesn't help. But you can fallback to the same hack as above:



          #!/bin/sh
          feh -Tdefault "$@"


          Alternative:



          If you are just going to call feh manually from the commandline, you can instead set an alias in your shell. In bash you would add this line to your ~/.bashrc and restart the interpreter (e.g. re-open the terminal):



          alias feh="feh --bg-color black"


          In fish shell you would run:



          abbr -a feh feh --bg-color black





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426526%2fhow-to-permanently-set-default-color-of-fehs-background-to-black%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            It seems that you cannot put your desired default options in a config file.



            If you know about $PATH you can resort to a hack.



            Create this script:



            #!/bin/sh
            feh --bg-color black "$@"


            Call it feh and place it in your $PATH before /usr/bin/ (assuming that feh itself is in /usr/bin/).



            Some distros have ~/bin/ in $PATH by default. So you would put that script into ~/bin/ (and make it executable). Otherwise just create this folder yourself and prepend it to your $PATH.



            Also, if you want to set multiple default options, you can group them into themes. (Theme is the feh developer's name for a named group of options.) Create ~/.config/feh/themes and add this line to that file:



            default --bg-color black


            feh -Tdefault will then start feh with your desired default options. This is handy if you want to set multiple options at once. Unfortunately there is no way to set a default theme either. So, in your case it doesn't help. But you can fallback to the same hack as above:



            #!/bin/sh
            feh -Tdefault "$@"


            Alternative:



            If you are just going to call feh manually from the commandline, you can instead set an alias in your shell. In bash you would add this line to your ~/.bashrc and restart the interpreter (e.g. re-open the terminal):



            alias feh="feh --bg-color black"


            In fish shell you would run:



            abbr -a feh feh --bg-color black





            share|improve this answer


























              up vote
              3
              down vote













              It seems that you cannot put your desired default options in a config file.



              If you know about $PATH you can resort to a hack.



              Create this script:



              #!/bin/sh
              feh --bg-color black "$@"


              Call it feh and place it in your $PATH before /usr/bin/ (assuming that feh itself is in /usr/bin/).



              Some distros have ~/bin/ in $PATH by default. So you would put that script into ~/bin/ (and make it executable). Otherwise just create this folder yourself and prepend it to your $PATH.



              Also, if you want to set multiple default options, you can group them into themes. (Theme is the feh developer's name for a named group of options.) Create ~/.config/feh/themes and add this line to that file:



              default --bg-color black


              feh -Tdefault will then start feh with your desired default options. This is handy if you want to set multiple options at once. Unfortunately there is no way to set a default theme either. So, in your case it doesn't help. But you can fallback to the same hack as above:



              #!/bin/sh
              feh -Tdefault "$@"


              Alternative:



              If you are just going to call feh manually from the commandline, you can instead set an alias in your shell. In bash you would add this line to your ~/.bashrc and restart the interpreter (e.g. re-open the terminal):



              alias feh="feh --bg-color black"


              In fish shell you would run:



              abbr -a feh feh --bg-color black





              share|improve this answer
























                up vote
                3
                down vote










                up vote
                3
                down vote









                It seems that you cannot put your desired default options in a config file.



                If you know about $PATH you can resort to a hack.



                Create this script:



                #!/bin/sh
                feh --bg-color black "$@"


                Call it feh and place it in your $PATH before /usr/bin/ (assuming that feh itself is in /usr/bin/).



                Some distros have ~/bin/ in $PATH by default. So you would put that script into ~/bin/ (and make it executable). Otherwise just create this folder yourself and prepend it to your $PATH.



                Also, if you want to set multiple default options, you can group them into themes. (Theme is the feh developer's name for a named group of options.) Create ~/.config/feh/themes and add this line to that file:



                default --bg-color black


                feh -Tdefault will then start feh with your desired default options. This is handy if you want to set multiple options at once. Unfortunately there is no way to set a default theme either. So, in your case it doesn't help. But you can fallback to the same hack as above:



                #!/bin/sh
                feh -Tdefault "$@"


                Alternative:



                If you are just going to call feh manually from the commandline, you can instead set an alias in your shell. In bash you would add this line to your ~/.bashrc and restart the interpreter (e.g. re-open the terminal):



                alias feh="feh --bg-color black"


                In fish shell you would run:



                abbr -a feh feh --bg-color black





                share|improve this answer














                It seems that you cannot put your desired default options in a config file.



                If you know about $PATH you can resort to a hack.



                Create this script:



                #!/bin/sh
                feh --bg-color black "$@"


                Call it feh and place it in your $PATH before /usr/bin/ (assuming that feh itself is in /usr/bin/).



                Some distros have ~/bin/ in $PATH by default. So you would put that script into ~/bin/ (and make it executable). Otherwise just create this folder yourself and prepend it to your $PATH.



                Also, if you want to set multiple default options, you can group them into themes. (Theme is the feh developer's name for a named group of options.) Create ~/.config/feh/themes and add this line to that file:



                default --bg-color black


                feh -Tdefault will then start feh with your desired default options. This is handy if you want to set multiple options at once. Unfortunately there is no way to set a default theme either. So, in your case it doesn't help. But you can fallback to the same hack as above:



                #!/bin/sh
                feh -Tdefault "$@"


                Alternative:



                If you are just going to call feh manually from the commandline, you can instead set an alias in your shell. In bash you would add this line to your ~/.bashrc and restart the interpreter (e.g. re-open the terminal):



                alias feh="feh --bg-color black"


                In fish shell you would run:



                abbr -a feh feh --bg-color black






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 8 at 16:25

























                answered Jun 13 at 8:57









                maria s

                313




                313






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426526%2fhow-to-permanently-set-default-color-of-fehs-background-to-black%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay