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
Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:
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
add a comment |
Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:
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
add a comment |
Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:
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
Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this:
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
configuration colors defaults feh
asked Feb 25 '18 at 20:05
M. KnepperM. Knepper
9418
9418
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
Infeh-3.1.1-1
, I getunrecognized option '--bg-color'
.
– Kevin
Jan 23 at 0:59
add a comment |
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
New contributor
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
Infeh-3.1.1-1
, I getunrecognized option '--bg-color'
.
– Kevin
Jan 23 at 0:59
add a comment |
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
Infeh-3.1.1-1
, I getunrecognized option '--bg-color'
.
– Kevin
Jan 23 at 0:59
add a comment |
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
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
edited Aug 8 '18 at 16:25
answered Jun 13 '18 at 8:57
maria smaria s
413
413
Infeh-3.1.1-1
, I getunrecognized option '--bg-color'
.
– Kevin
Jan 23 at 0:59
add a comment |
Infeh-3.1.1-1
, I getunrecognized 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
add a comment |
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
edited 2 days ago
New contributor
answered 2 days ago
timtim
11
11
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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