Topic: The ultimate fvwm thread
Stupidity was here
tartan
Last edited by tartan (2011-03-15 20:35:46)
CrunchBang Linux Forums » WM/DE Talk » The ultimate fvwm thread
Stupidity was here
tartan
Last edited by tartan (2011-03-15 20:35:46)
Screenshot of your FVWM desktop please ![]()
One photo is sometimes worth 1000 words ![]()
Last edited by klanger (2009-10-06 17:06:31)
Screenshot of your FVWM desktop please :)
One photo is sometimes worth 1000 words ;)
hehehe!!!! I agree!!!!
x3
Not even beta: http://crunchbanglinux.org/forums/post/36489/#p36489
Stupidity was here
Tartan
Last edited by tartan (2011-03-15 12:32:53)
Hi tartan,
Fvwm is fun .. I play with it last year and It's a powerfull wm but not easy as openbox to configure ![]()
Well editing menu is easier there. ) All the rest is tricky, yes. And it lacks themes which can be simply installed due to config file syntax, i had to draw mine from scratch.
But it's funny.
Have any tips/scripts/links/ideas? Most of fvwm web pages are gone. (
In fvwm, you can use the same apps as in any other stacking window manager to make a kind of desktop environment, and in this thread i would like to share my /rather naive/ way of setting it up.
The correct term is "reparenting window manager". Not "stacking window manager".
There are some manuals on setting up fvwm online, but in fact they are quite old and i would like to write something anyone could understand and use right now with current !# install.
Where are you looking, and how are you able to make the judgment that they're "old"?
DestroyFunc InitFunction AddToFunc InitFunction + I Exec exec nm-applet + I Exec exec gnome-power-manager + I Exec exec volwheel + I Exec exec nitrogen --restore + I Exec exec tint2This section would autolaunch your apps similar to the way autostart.sh does.
Epic fail. See: http://wiki.archlinux.org/index.php/FVW _for_FVWM2 -- and specifically this, which I will quote below:
2. InitFunction versus StartFunction versus RestartFunction
Unless you're someone as foolish as I am, and are still using FVWM 2.4.19, FVWM 1.24 and FVWM 2.2.5, this is going to be of consideration to you. OK, I joke. This is really only of importance to the small minority of people running FVWM stable (2.4.19). For the rest of you running 2.5.X (at the time I writing I would hope 2.5.16) then you need to be made aware of the following:
You don't need to use InitFunction
Gasp! It's true. In FVWM 2.4.X, you do need to use it because the Test command does not include tests for Init, Reboot, etc. However for FVWM 2.5.X, forget InitFunction, and incorporate it into your StartFunction. Here's an example:
DestroyFunc InitFunction AddToFunc InitFunction + I Exec exec xsetroot -solid pink + I Exec exec xconsole DestroyFunc StartFunction AddToFunc StartFunction + I Module FvwmProxy + I Module FvwmButtons myBarPut the two together, and from within your StartFunction you can define what's in InitFunction via the use of the following:
+ I Test (Init) ...Hence:
DestroyFunc StartFunction AddToFunc StartFunction + I Module FvwmProxy + I Module FvwmButtons myBar + I Test (Init) Exec exec xsetroot -solid pink + I Test (Init) Exec exec xconsoleAnd that's it. There you have it. You now have a StartFuction which FVWM reads at Init, Reboot and Exit. The same logic applies for RestartFunction:
You don't need to use RestartFunction
What is even more perplexing about this is I have seen a lot of configs which define the following:
DestroyFunc StartFunction AddToFunc StartFunction + I Exec exec xterm -T Wooo -ls DestroyFunc RestartFunction AddToFunc RestartFunction + I Exec exec xterm -T Woo -lsNow, guess what this does. That's right, when you reboot FVWM you get two copies of the same xterm running. That's because, again, StartFunction is read by FVWM at initialisation and reboots. FVWM hence re-reads RestartFunction and StartFunction and does the same thing twice. How do you get around this. Easy: remove the definition for RestartFunction entirely. If that application is only intended to be started during a restart (slightly odd scenario) then use:
DestroyFunc StartFunction AddToFunc StartFunction + I Test (Restart) Exec exec xterm -T Woo -ls
DestroyFunc DeleteWin AddToFunc DeleteWin + I Delete Mouse 1 2 N DeleteWin
No, using a function context here gains you nothing, just bind the action directly for two reasons:
1. Redundant as a function.
2. You get window contect for free.
Hence:
Mouse 1 2 N DeleteDestroyFunc MaxWin AddToFunc MaxWin + I Maximize Mouse 1 4 N MaxWin DestroyFunc IconWin AddToFunc IconWin + I Iconify Mouse 1 6 N IconWin Mouse 1 I N IconWin
See above for both of these -- completely redundant.
-- Thomas Adam
I made a fvwm setup variant where user has to add his applications in autostart and menus an bind some hotkeys of his own, while almost all the rest would work as it is.
http://box-look.org/content/show.php/fv ent=123415
Please try and send your comments.
Next time I have some time I would make fvwm config to mimic openbox based on crunchbang 10 if someone is interested.
Last edited by tartan (2010-05-26 09:53:04)
Nice Thank you i will try it out later tonight
Bless
tartan,
I passed the link to a friend who was interested in FVWM a few days ago. Today he mailed back and said he's loving the setup and your starter kit helped a lot.
So I just wanna say thanks on his behalf. ![]()
I am running Fvwm with Lxpanel right now, one small at the top with just the application launcher and using the one at the bottom for minimized windows like Tint2. I think I would like to get a more traditional "Fvwm look" and use the buttons. I like the module approach so I was wondering if you would just create a new module and pass control to it for the buttons.
If I keep the Lxpanels then I need to figure out how to hide the top one but have it overlap any window if I put the mouse on it.
I have sort of figured out transparency in the menus but not too good with color codes yet. I have a transparent menu with yellow letters and it looks fugly. I'm still working on how to change the color of the window decorations and make that top part transparent. Oh boy! ![]()
I am running Fvwm with Lxpanel right now, one small at the top with just the application launcher and using the one at the bottom for minimized windows like Tint2. I think I would like to get a more traditional "Fvwm look" and use the buttons. I like the module approach so I was wondering if you would just create a new module and pass control to it for the buttons.
Are you referring to FvwmIconMan?
If I keep the Lxpanels then I need to figure out how to hide the top one but have it overlap any window if I put the mouse on it.
I am not sure what you mean by "put the mouse on it" -- but are you meaning "EwmhBaseStruts" here?
-- Thomas Adam
Thomas, I'm also wanting to do my taskbar with FvwmIconMan/Buttons like you've got setup. I'll post what I've got soon, I need help getting standalonetray/xclock swallowed. PS: you gonna set your #! avatar to stitch as well?
That's a nice color you and your mom put on him.
the one i got looks like this
*FvwmIconMan: Resolution Global
*FvwmIconMan: UseWinList True
*FvwmIconMan: DontShow Class=xmms,FvwmButtons,FvwmIconMan,FvwmPager,FvwmIdent,FvwmForm
*FvwmIconMan: DrawIcons Never
*FvwmIconMan: Sort Id
*FvwmIconMan: FollowFocus True
*FvwmIconMan: Format "%t"
*FvwmIconMan: Title ""
*FvwmIconMan: ButtonGeometry 1364x20
*FvwmIconMan: ManagerGeometry 1x1+0+0
*FvwmIconMan: MaxButtonWidthByColumns 8
*FvwmIconMan: Font xft:MonteCarlo:size=9
# Tips
*FvwmIconMan: Tips needed
*FvwmIconMan: TipsDelays 500 200
*FvwmIconMan: TipsFont "xft:Verdana:pixelsize=12"
*FvwmIconMan: TipsBorderWidth 0
*FvwmIconMan: TipsColorset 5
*FvwmIconMan: TipsJustification leftup
# Button look
*FvwmIconMan: PlainButton flat
*FvwmIconMan: FocusButton flat
*FvwmIconMan: SelectButton flat
*FvwmIconMan: FocusAndSelectButton flat
*FvwmIconMan: IconButton flat
# Colorsets
*FvwmIconMan: Colorset 7
*FvwmIconMan: FocusColorset 8
*FvwmIconMan: SelectColorset 9
*FvwmIconMan: FocusAndSelectColorset 9
*FvwmIconMan: IconColorset 9
*FvwmIconMan: ReliefThickness 1
# Actions
*FvwmIconMan: action Mouse 1 N sendcommand Focus, sendcommand "Iconify"
*FvwmIconMan: action Mouse 2 N sendcommand "Iconify 1"
*FvwmIconMan: action Mouse 3 N sendcommand "FvwmIdent"Stitch!!!!
Stitch!!!!
Stitchy. ![]()
-- Thomas Adam
Thomas, I'm also wanting to do my taskbar with FvwmIconMan/Buttons like you've got setup. I'll post what I've got soon, I need help getting standalonetray/xclock swallowed. PS: you gonna set your #! avatar to stitch as well?
That's a nice color you and your mom put on him.
Well, the general principle behind this is to work out what you want, and how many rows/columns it will end up being, and then you will end up with (in my case) something like this:
DestroyModuleConfig FB-np:*
*FB-np: Columns 48
*FB-np: Rows 1
*FB-np: Padding 0 0
*FB-np: Frame 0
*FB-np: Font -*-terminus-*-*-*-*-18-*-*-*-*-*-iso8859
*FB-np: Back grey
PipeRead `for i in $(seq 0 $(($[desk.pagesx] - 1))); do echo "*FB-np: (1x1, Id \"A-$i\", Back #D8C9FF, Title (Center) '$i', Action (Mouse 1) GotoPage $i 0)"; done`
*FB-np: (5x1, Swallow (UseOld) `cpumon` `Exec exec xosview -name cpumon -captions +labels +usedlabels +cpu -load -mem -swap -battery -gfx -net -page -disk -int -ints -irqrate -lmstemp -xrm 'cpumon*background: #F3C9CB'`)
*FB-np: (5x1, Swallow (UseOld) `memmon` `Exec exec xosview -name memmon -captions +labels +usedlabels -cpu -load +mem -swap -battery -gfx -net -page -disk -int -ints -irqrate -lmstemp -xrm 'memmon*background: #ECF0A8'`)
*FB-np: (5x1, Swallow (UseOld) `loadmon` `Exec exec xosview -name loadmon -captions +labels +usedlabels -cpu +load -mem -swap -battery -gfx -net -page -disk -int -ints -irqrate -lmstemp -xrm 'loadmon*background: #F1BFF8'`)
*FB-np: (5x1, Swallow (UseOld) `netmon` `Exec exec xosview -name netmon -captions +labels +usedlabels -cpu -load -mem -swap -battery -gfx +net -page -disk -int -ints -irqrate -lmstemp -xrm 'netmon*background: #B4F0E1'`)
*FB-np: (8x1, Swallow (UseOld,Respawn,NoClose,NoKill) `stalonetray` `Exec exec stalonetray --kludges force_icons_size,fix_window_pos,use_icons_hints`)
*FB-np: (10x1, Swallow (UseOld) `FvwmIconMan-Icons` `Module FvwmIconMan FvwmIconMan-Icons`)
*FB-np: (8x1, Swallow (NoKill, Respawn, UseOld) "xclock" "Exec exec xclock -bg grey -fg black -digital -twentyfour -padding 1 -norender -update 1")
KillModule FvwmButtons Buttons-Slid
DestroyModuleConfig Buttons-Slid: *
*Buttons-Slid: Back grey
*Buttons-Slid: Rows 1
*Buttons-Slid: Frame 1
*Buttons-Slid: Padding 0 0
*Buttons-Slid: (Panel(NoBorder, Smooth, Hints, right, indicator 10, delay 7, steps 26) "FB-np" \
'Module FvwmButtons FB-np -g 1670x22+0+0')
Style Buttons-Slid !Borders
Module FvwmButtons Buttons-Slid-- Thomas Adam
big THX, I'm playing around with it now. BTW, I tried buidling .31 from your git tree but it didn't seem to work as you explained on FVWM forums. Is there something I'm missing?
big THX, I'm playing around with it now. BTW, I tried buidling .31 from your git tree but it didn't seem to work as you explained on FVWM forums. Is there something I'm missing?
Define "didn't seem to work" -- what were you doing?
-- Thomas Adam
./configure && make deb-inplace .. gnu make configure wouldn't run. It would on the FVWM 2.5.31 tarball but not the git stuff. I'm hurtin bad for the new 31 release and would just package it from scratch but, it seems to be a little more daunting than all my other packaging endeavors.
./configure && make deb-inplace .. gnu make configure wouldn't run. It would on the FVWM 2.5.31 tarball but not the git stuff.
Well, my git tree will give you the CVS version -- which is FVWM 2.5.32 -- but it's academic.
As for why it's not running it -- you're still not giving me any output.
So I can only guess. Does "configure" even exist at this point? That is, have you done this:
cd /path/to/fvwm.git
utils/configure_dev.sh
./configure && make deb-inplaceWhich works fine. You'll need debhelper installed, of course.
If you get any further errors, I'll need some actual output, please. I don't like guessing games.
-- Thomas Adam
Sorry, to make you read my mind Thomas. You are totally correct configure didn't exist. The utils/configure_dev.sh was what I was needing. The CVS snapshot is kinda what I've been wanting to run anyways, thanx for all the help.(had debhelper since cb-welcome has a nice turnkey packaging/build solution)
Sorry, to make you read my mind Thomas. You are totally correct configure didn't exist. The utils/configure_dev.sh was what I was needing. The CVS snapshot is kinda what I've been wanting to run anyways, thanx for all the help.(had debhelper since cb-welcome has a nice turnkey packaging/build solution)
That's OK.
I've updated my git repo with some changes -- give it a whirl, please.
-- Thomas Adam
Posts [ 1 to 25 of 82 ]
CrunchBang Linux Forums » WM/DE Talk » The ultimate fvwm thread
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.