View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed Oct 07, 2009 3:39 pm Post subject: fvwm desktop scrolling |
|
|
Hi,
I have just setup fvwm and tested some of the fvwm-themes.
Firstly I'm pretty impressed. It looked light a bit of a nightmare learning curve but the themes get you rolling with something basically usable pretty quickly.
Having spent the day playing around I've got it close to what I want. One thing I find a bit lacking is mouse scroll wheel support.
Having activated the option it works well on menus but that seems to be all.
For example I would like to be able to scroll on the desktop backgound or on the pager to flip desktops.
This is not a major headache but it was one thing that I found very ergonomic on my previous WM. Now in the mountain of configurable features and examples I have not seen anything like this.
For example would it be possible to get the pager in the cde theme to be sensitive to the mouse scrollwheel?
They seem to say you can set up anything you want with fvwm so I hope some guru can help me find out how.
TIA, Gentree. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Wed Oct 07, 2009 7:35 pm Post subject: |
|
|
In my conf I have:
Code: |
## Destktop keybindings
Mouse 4 R A WheelScroll down
Mouse 5 R A WheelScroll up
## FvwmPager
Mouse (FvwmPager) 4 W A WheelScroll down
Mouse (FvwmPager) 5 W A WheelScroll up
|
Where WheelScroll is a function:
Code: |
## Change Desktop by Scroll
DestroyFunc WheelScroll
AddToFunc WheelScroll I PipeRead 'case $0 in \
up) test $[page.ny] -eq $$(($[desk.pagesy]-1)) -a $[page.nx] -lt $$(($[desk.pagesx]-1)) \
&& echo GotoPage +1p 0 \
|| echo GotoPage 0p +1p;; \
down) test $[page.ny] -eq 0 -a $[page.nx] -gt 0 \
&& echo GotoPage -1p $$(($[desk.pagesy]-1)) \
|| echo GotoPage 0p -1p;; \
esac'
|
Note: Taken from univac's config, taviso and others... |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed Oct 07, 2009 8:02 pm Post subject: |
|
|
Cool , that looks like what I want , it even covers the desktop which I was aiming to have as well.
Do you have another trick in there to keep a space at the top of the desktop from being covered by a new window? Comes to about the same thing a resevering a bit at the bottom for a task bar. I know I can make it stay-on-top style but I dont want the bottom of my windows (often a status bar area) dropping behind either.
thanks for snipet, spot on. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Wed Oct 07, 2009 8:19 pm Post subject: |
|
|
Check "Extended Window Manager Hints" section at fvwm manpage (EwmBaseStruts option could do the trick).
Edit. Deleted irrelevant info.
Last edited by ashtophet on Wed Oct 07, 2009 9:19 pm; edited 1 time in total |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Wed Oct 07, 2009 8:19 pm Post subject: |
|
|
Yes,
use EwmhBaseStruts x x x x in your config
man fvwm wrote: | EwmhBaseStruts left right top bottom |
|
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Oct 08, 2009 7:45 am Post subject: |
|
|
Thanks , that seems to be exactly what is provided to achieve this result.
It took some finding , the fvwm man page must be the longest text file ever!
There's one conceptual problem I'm having will all the configuration mechanisms. Everyone refers the "the config" which it seems used to refer to .fvwmrc2 which is not obselete and has been replaced by ~/.fvwm/themes-rc-2
themes-rc-2 -> themes/current-main/themes-rc-2
The problem is when I use the "Themes GUI Center" tool to pick bits from other themes it recreates everything and blows out my changes.
Am I editing the wrong file or is there a hook somewhere to another file where I can add changes?
I could always knock up a script to append my changes each time but I suspect I'm missing something.
TIA. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Thu Oct 08, 2009 8:33 am Post subject: |
|
|
FVWM-themes is a package of it's own. You can make personal settings with it too, but it has special places for this that are not touched by the scripts. Standard config files are script generated and loose all editing with the next change.
What everybody out there refers to as "the config" is a handcrafted .fvwm2rc (or in my case multiple files sourced at startup).
In the long run I prefer a selfmade .fvwm2rc over the fvwm-themes solution. It looks better and has only the features I like. If you look for a specific feature, start looking at the taviso config. It is quite extensive in its feature list. Many configs out there took specific features from it and integrated them into an own look and feel (As my config did) _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Oct 08, 2009 9:37 am Post subject: |
|
|
Ah, thanks. I had not realised the fvwm-themes was completely a separate mechanism. I get the picture now.
Looks like I need to grab whatever starting point I like from the themes and copy the resulting file to .fvwm2rc and do my edits there. Then restart using fvwm instead of fvwm-themes-start.
I may make it load the theme config with read and add my tweeks.
The power and flexibility of fvwm is great but it takes a while to get the big picture. It ammounts to learning a new scripting language.
Sadly most of the useful stuff seems to link to fvwm.lair.be which has been out of commission since I got interested in fvwm.
Hopefully it will be back up soon.
Do you have link to the famous taviso config that's not on lair.be?
thx. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Oct 08, 2009 10:33 am Post subject: |
|
|
hmm, I put the following line into .fvwmrc2.
The console output gave some deprecation warnings (as before) that indicate it was reading the file, and the menus and window decoration came out exactly as before but the panel does not show. Nothing to indicate an error.
Odd. Seems there's more to starting the themes than loading one file.
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Oct 09, 2009 4:11 am Post subject: |
|
|
AFAIK ~/.fvwm2rc is pretty much deprecated. You can still use it, but it is much nicer to use $HOME/.fvwm/config
from it you can read (source) other files.
here is an example of a $HOME/.fvwm directory Code: | bindings decor fvwm.log m4menus menudefs scripts styles tmp
config functions icons main-menu modules sounds themes |
here is an example of a config file Code: | $ cat ~/.fvwm/config
SetEnv fvwm_script $[FVWM_USERDIR]/scripts
SetEnv fvwm_decor $[FVWM_USERDIR]/decor
SetEnv fvwm_tmp $[FVWM_USERDIR]/tmp
SetEnv fvwm_wallpapers $HOME/wallpapers
ImagePath $[FVWM_USERDIR]/icons:/usr/share/pixmaps:/usr/share/icons/fvwm
ImagePath +:/usr/kde/3.5/share/icons/crystalsvg/22x22/actions
ImagePath +:/usr/kde/3.5/share/icons/crystalsvg/22x22/apps
ImagePath +:/usr/include/X11/pixmaps:/usr/include/X11/bitmaps
ColormapFocus FollowsMouse
IgnoreModifiers L25
BusyCursor DynamicMenu True
#BugOpts FlickeringMoveWorkaround True
#BugOpts ExplainWindowPlacement
Style * SnapAttraction 16
Style * SnapGrid 8
EwmhBaseStruts 10 120 10 100
Emulate MWM
EdgeThickness 1
OpaqueMoveSize unlimited
EdgeResistance 250
EdgeScroll 100 100
ClickTime 750
DeskTopSize 3x3
ColormapFocus FollowsMouse
Read functions
Read main-menu
Read menudefs
Read bindings
Read styles
Read modules
Read $[FVWM_USERDIR]/decor/sky
Read sounds
FvwmM4 m4menus
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmEvent
+ I Module FvwmAuto 200 Raise Nop
+ I Module FvwmAnimate
+ I Module FvwmButtons myBar
+ I Module FvwmPager
+ I Module FvwmAuto FvwmAutohide -menter EnterHandler
+ I Module FvwmBanner
DestroyFunc RestartFunction
AddToFunc RestartFunction
+ I All (Iconic) ReThumbnail
DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I Exec :> $HOME/.fvwm/fvwm.log
|
Use Module FvwmConsole to test your configs. A menu entry can look something like this Code: | + "FvwmC&onsole%mini.sh.xpm%" Module FvwmConsole -terminal urxvt \
-geometry 80x10+10+567 -bg black -fg green |
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon Oct 12, 2009 4:46 am Post subject: |
|
|
Gentree wrote: | Ah, thanks. I had not realised the fvwm-themes was completely a separate mechanism. I get the picture now.
Looks like I need to grab whatever starting point I like from the themes and copy the resulting file to .fvwm2rc and do my edits there. Then restart using fvwm instead of fvwm-themes-start.
I may make it load the theme config with read and add my tweeks.
The power and flexibility of fvwm is great but it takes a while to get the big picture. It ammounts to learning a new scripting language.
Sadly most of the useful stuff seems to link to fvwm.lair.be which has been out of commission since I got interested in fvwm.
Hopefully it will be back up soon.
Do you have link to the famous taviso config that's not on lair.be?
thx. |
You might want to check these links.
An fvwm primer
http://www.zensites.net/fvwm/guide/
Also, you can look in my web site (look signature). There's a lot of fvwm related stuff there, and a small tutorial I wrote as well. It's in Spanish though. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon May 04, 2015 2:57 pm Post subject: |
|
|
i92guboj , this thread is quite old ( from last time I tried to configure FVWM ). Sadly the zen domain seems to have disappeared.
Do you have that material anywhere else?
Thankx. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon May 04, 2015 6:19 pm Post subject: |
|
|
Gentree wrote: | i92guboj , this thread is quite old ( from last time I tried to configure FVWM ). Sadly the zen domain seems to have disappeared.
Do you have that material anywhere else?
Thankx. |
Heheheh!
I was sure that somebody would ask some day. I saved it for historical purposes. There you are
http://www.jesgue.es/old-site/
EDITED: That's my old site, not the one that someone created in zen-sites. I took some inspiration from there, but the tutorial I have in my old site is in Spanish (there wasn't one in my mother tongue so I created it). Unfortunately that material from zensites is lost as far as I know. But you could ask in the fvwm mailing list. Maybe someone saved a copy somewhere. |
|
Back to top |
|
|
|