How to permanently set default color of feh's background to black? The Next CEO of Stack OverflowHow to find out what color I gave to xsetroot?Setting only of background or text color back to defaultInvert colors of the active windowHow to change variable color in vim solarized theme?Change lightdm backgroundEquivalent of scp -l bandwidth_cap for .ssh/config?Set default color for topEclipse Mars + Fedora 20 + KDE = black-on-black tooltipsColorized tail: How to set default colorChange Search Highlight Color In Less

Are police here, aren't itthey?

Is it possible to use a NPN BJT as switch, from single power source?

What flight has the highest ratio of time difference to flight time?

Why does standard notation not preserve intervals (visually)

0 rank tensor vs 1D vector

Why don't programming languages automatically manage the synchronous/asynchronous problem?

The exact meaning of 'Mom made me a sandwich'

Can we say or write : "No, it'sn't"?

Does Germany produce more waste than the US?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

"misplaced omit" error when >centering columns

Prepend last line of stdin to entire stdin

Find non-case sensitive string in a mixed list of elements?

When you upcast Blindness/Deafness, do all targets suffer the same effect?

INSERT to a table from a database to other (same SQL Server) using Dynamic SQL

What was the first Unix version to run on a microcomputer?

What did we know about the Kessel run before the prequels?

Newlines in BSD sed vs gsed

Axiom Schema vs Axiom

Does soap repel water?

Is micro rebar a better way to reinforce concrete than rebar?

Chain wire methods together in Lightning Web Components

Make solar eclipses exceedingly rare, but still have new moons

Is wanting to ask what to write an indication that you need to change your story?



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



The Next CEO of Stack OverflowHow to find out what color I gave to xsetroot?Setting only of background or text color back to defaultInvert colors of the active windowHow to change variable color in vim solarized theme?Change lightdm backgroundEquivalent of scp -l bandwidth_cap for .ssh/config?Set default color for topEclipse Mars + Fedora 20 + KDE = black-on-black tooltipsColorized tail: How to set default colorChange Search Highlight Color In Less










1















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


























    1















    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
























      1












      1








      1








      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.







      configuration colors defaults feh






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 25 '18 at 20:05









      M. KnepperM. Knepper

      9418




      9418




















          2 Answers
          2






          active

          oldest

          votes


















          4














          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

























          • In feh-3.1.1-1, I get unrecognized option '--bg-color'.

            – Kevin
            Jan 23 at 0:59


















          0














          I would like to add this as a comment to the only answer but I do not have enough reputation.



          A look into the man page of feh reveals that the alias should look like this:



          alias feh="feh --image-bg black -Z -."


          I also added -Z and -. for convenience, -Z zooms pictures to screen size, -. scales down images to fit window geometry






          share|improve this answer










          New contributor




          tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            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















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            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

























            • In feh-3.1.1-1, I get unrecognized option '--bg-color'.

              – Kevin
              Jan 23 at 0:59















            4














            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

























            • In feh-3.1.1-1, I get unrecognized option '--bg-color'.

              – Kevin
              Jan 23 at 0:59













            4












            4








            4







            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 '18 at 16:25

























            answered Jun 13 '18 at 8:57









            maria smaria s

            413




            413












            • In feh-3.1.1-1, I get unrecognized option '--bg-color'.

              – Kevin
              Jan 23 at 0:59

















            • In feh-3.1.1-1, I get unrecognized option '--bg-color'.

              – Kevin
              Jan 23 at 0:59
















            In feh-3.1.1-1, I get unrecognized option '--bg-color'.

            – Kevin
            Jan 23 at 0:59





            In feh-3.1.1-1, I get unrecognized option '--bg-color'.

            – Kevin
            Jan 23 at 0:59













            0














            I would like to add this as a comment to the only answer but I do not have enough reputation.



            A look into the man page of feh reveals that the alias should look like this:



            alias feh="feh --image-bg black -Z -."


            I also added -Z and -. for convenience, -Z zooms pictures to screen size, -. scales down images to fit window geometry






            share|improve this answer










            New contributor




            tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              0














              I would like to add this as a comment to the only answer but I do not have enough reputation.



              A look into the man page of feh reveals that the alias should look like this:



              alias feh="feh --image-bg black -Z -."


              I also added -Z and -. for convenience, -Z zooms pictures to screen size, -. scales down images to fit window geometry






              share|improve this answer










              New contributor




              tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                0












                0








                0







                I would like to add this as a comment to the only answer but I do not have enough reputation.



                A look into the man page of feh reveals that the alias should look like this:



                alias feh="feh --image-bg black -Z -."


                I also added -Z and -. for convenience, -Z zooms pictures to screen size, -. scales down images to fit window geometry






                share|improve this answer










                New contributor




                tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                I would like to add this as a comment to the only answer but I do not have enough reputation.



                A look into the man page of feh reveals that the alias should look like this:



                alias feh="feh --image-bg black -Z -."


                I also added -Z and -. for convenience, -Z zooms pictures to screen size, -. scales down images to fit window geometry







                share|improve this answer










                New contributor




                tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer








                edited 2 days ago





















                New contributor




                tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 2 days ago









                timtim

                11




                11




                New contributor




                tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    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















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.