-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FvwmBacker example #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start, here are some comments to clean up the page a bit.
Wiki/Modules/FvwmBacker/index.md
Outdated
{% fvwm2rc %} | ||
AddToFunc InitFunction I Module FvwmBacker | ||
{% endfvwm2rc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want to run modules from InitFunction
, they need to be launched each time. Add this to StartFunction
. In general the use of InitFunction
is discouraged, instead use Test (Init) Command
in the StartFunction
, as done in the default-config.
Wiki/Modules/FvwmBacker/index.md
Outdated
Colorset 23 Pixmap $HOME/.fvwm/images/email-thumb.png | ||
Colorset 28 Pixmap $HOME/.fvwm/images/work-thumb.png | ||
Colorset 25 Pixmap $HOME/.fvwm/images/misc-thumb.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use $[FVWM_USERDIR]/images/...
instead.
Wiki/Modules/FvwmBacker/index.md
Outdated
*FvwmBacker: Command (Desk 0, Page 0 0) Exec exec fvwm-root $HOME/.fvwm/images/web-tiled.png | ||
*FvwmBacker: Command (Desk 0, Page 1 0) Exec exec fvwm-root $HOME/.fvwm/images/web-tiled.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overkill, you are setting the exact same image for all pages, so just remove the , Page X Y
bit. See above comment, just add a small comment stating that it is possible to control each pages, but this example doesn't need that.
Wiki/Modules/FvwmBacker/index.md
Outdated
## Load | ||
Module FvwmBacker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is good practice to wrap this into the StartFunction
.
Wiki/Modules/FvwmBacker/index.md
Outdated
You can use the FvwmPager to move from screen to screen through each virtual | ||
desktop set. Now that you can move easily between the desktops you can further | ||
personalize them by giving them individual background colors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence and mentioning FvwmPager here is a bit awkward to me. I do like that you link to it in the example below, and show that you can make the pager and the desktop match. But up here, there is no need to mention the pager, just focus on this can be used to run commands to set backgrounds on desk and/or page changes.
Wiki/Modules/FvwmBacker/index.md
Outdated
{% fvwm2rc %} | ||
*FvwmBacker: Command (Desk 0) Exec exec fvwm-root $HOME/background-mono.png | ||
*FvwmBacker: Command (Desk 1) Exec exec fvwm-root $HOME/wallpaper-nature.jpg | ||
{% endfvwm2rc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add another example to state that, not only can FvwmBacker give each desktop a unique look, it can also be used to change the background for each Page as well, and then provide some examples.
All comments are updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, still a few small things I noticed (some of the configs woudln't work as written). Also you may want to comment about adding both FvwmPager and FvwmBacker to the StartFunction in your eample.
Wiki/Modules/FvwmBacker/index.md
Outdated
*FvwmBacker: Command (Desk 2) Exec exec fvwm-root $HOME/wallpaper-nature.jpg | ||
{% endfvwm2rc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fvwm-root
would fail with a .jpg image here.
Wiki/Modules/FvwmBacker/index.md
Outdated
*FvwmBacker: Command (Desk 2, Page 1 1) $HOME/wallpaper-nature.jpg | ||
{% endfvwm2rc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example wouldn't work, first you need to run some program to set the background, such Exec exec fvwm-root
. And if you are going to use $HOME
, at least use $[HOME]
.
I will test each sample.
I did a test and added in default config. Doesn't work in 1.1.1, and also not in earlier fvwm versions (1.0.6)
With FvwmConsole..... |
Workable correction, all are tested on default config, including feh for jpg image. |
@rasatpc Since you are testing from |
Wiki/Modules/FvwmBacker/index.md
Outdated
*FvwmBacker: Command (Desk 2) Exec exec feh $[HOME]/wallpaper-nature.jpg | ||
{% endfvwm2rc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am always torn if we should use feh
in examples or not, as this isn't default, and users may have other tools to choose. Probably fine to use feh
here, but then there is no reason to use fvwm-root
, mixing them may only lead to confusion as to why one is used on .png and one is used on .jpg. I would stick to a single option in the configuration example, then maybe add a comment about how fvwm-root
only supports .xpm
, .png
, and .svg
, and a tool like feh
would support more image formats and allow you setting wallpapers per monitor (which fvwm-root cannot do).
Wiki/Modules/FvwmBacker/index.md
Outdated
*FvwmBacker: Command (Desk 3) Exec exec fvwm-root $[FVWM_USERDIR]/images/misc.png | ||
{% endfvwm2rc %} | ||
|
||
{% fvwm2rc %} | ||
AddToFunc StartFunction I Module FvwmPager 0 3 | ||
{% endfvwm2rc %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is little reason to seperate this into two different highlight blocks, just use a single block for this, maybe put a # Start Modules when fvwm starts
. Note you also need to add FvwmBacker
to this, otherwise it won't run and the configuration won't do anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before Example, it says.... "changes will not be implemented until you instruct Fvwm to update the screens
during the initialization:
AddToFunc StartFunction I Module FvwmBacker
Or, better to say it again?
About, StartFunction, I will post on forum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the StartFunction
does is well documented, this does not need to be posted on the forums. Read the manual page or https://www.fvwm.org/Wiki/Config/Functions/StartFunction/.
I found the reason why Tomorrow, I will correct the comments. |
That sounds like an error with how you are setting things up. You should load all your configurations from a central config file, so you can use the |
Note, it is not as you said about a 'single config file', |
FvwmBacker use and advance example. FvwmBacker correction FvwmBacker true correction FvwmBacker more corrections
This PR is ready. |
The |
I am going to merge this. I have a few more minor updates I'll just add on top of this. |
Thanks, it looks great. |
FvwmBacker use and advance example.