LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2009, 12:03 PM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707

What should I put in that file?

Will just this work?

Code:
fvwm
 
Old 11-17-2009, 12:05 PM   #17
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,902

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Yes, I also wrote an slightly more complete line in the other post above that saves the output to a log file, but just "fvwm" should work as well.
 
Old 11-17-2009, 12:06 PM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
This made it start:

Code:
cd ~
touch .xinitrc
echo fvwm >> .xinitrc
startx
Now i'll see if my config file works.
 
Old 11-17-2009, 12:16 PM   #19
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
I am finally writing this in X now!

Anyway, the colorsets and EwmhBaseStruts staerted working.

But still a few problems:

The default focus policy still seems to be SloppyFocus.

FvwmIconMan stacks the buttons top-to-bottom, not in rows like I want.

I don't know how to set the sizes for each button in FvwmButton (I set it as a bar spanning the bottom of the screen containing from left to right a button, FvwmIconMan, FvwmPager, stalonetray, and xclock.)

And I would like it so that you can switch desktops with FvwmPager but not by moving the mouse out the screen.
 
Old 11-17-2009, 12:35 PM   #20
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,902

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by MTK358 View Post
I am finally writing this in X now!

Anyway, the colorsets and EwmhBaseStruts staerted working.

But still a few problems:

The default focus policy still seems to be SloppyFocus.
Check the fvwm man page, you might want ClickToFocus instead.

Quote:
FvwmIconMan stacks the buttons top-to-bottom, not in rows like I want.
FvwmIconMan has its own man page. It's very configurable, and there are lots of common setups around the net that use a taskbar-like setup, in a single row. Some setups embed FvwmIconMan inside FvwmButtons, this give additional control about how to setup a tipical taskbar setup.

I have some fvwm screenshots and configs in my home web site, linked in my signature.

However, this is just an advice. You can just continue to use FvwmTaskbar if that's what suits you. I suggested the alternative because a) it's much more configurable and b) FvwmTaskbar is mostly abandon-ware nowadays.

Quote:
I don't know how to set the sizes for each button in FvwmButton (I set it as a bar spanning the bottom of the screen containing from left to right a button, FvwmIconMan, FvwmPager, stalonetray, and xclock.)
There are many ways to set up the button sizes in fvwmbuttons, just like FvwmIconMan, FvwmButtons has its own man page, separated from the fvwm main man page. Check it and see what method fits you better.

Quote:
And I would like it so that you can switch desktops with FvwmPager but not by moving the mouse out the screen.
You probably want

Code:
EdgeResistance -1
 
Old 11-17-2009, 12:40 PM   #21
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
EdgeResistance = -1 works very nicely.

ClickToFocus does focus only when you click, but it also brings the window above all the others, and I want that to happen only when the title or border is clicked.
 
Old 11-17-2009, 01:29 PM   #22
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,902

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by MTK358 View Post
EdgeResistance = -1 works very nicely.

ClickToFocus does focus only when you click, but it also brings the window above all the others, and I want that to happen only when the title or border is clicked.
This will surely serve the general case.

Code:
Style * ClickToFocus, ClickToFocusRaisesOff
I guess then you can define a function like this, and bind it to click on titlebar for that particular case:

Code:
DestroyFunc FvwmTitleClick
AddToFunc FvwmTitleClick
+ D ThisWindow (Maximizable) Maximize
+ M ThisWindow (!Maximized) Move
+ I Focus
+ I Raise

Mouse 1 T A FvwmTitleClick
Untested. D is for double click, M for move, I means "inmediate", those are the actions to do when doing a single click on the "T" context, which is the titlebar. There are contexts as well for every side of the window, and every corner. F equals the four corners, S the four sides. So, this one will take care of the click on the window borders.

Code:
Mouse 1 SF A FvwmTitleClick
There are many ways to set this up. Fvwm is very flexible in this regard, not that much in others, though.

ps. You might rather do this, to preserve the faculty to resize windows:

Code:
Style * ClickToFocus, ClickToFocusRaisesOff

DestroyFunc FvwmTitleClick
AddToFunc FvwmTitleClick
+ D ThisWindow (Maximizable) Maximize
+ M ThisWindow (!Maximized) Move
+ I Focus
+ I Raise
Mouse 1 T A FvwmTitleClick

DestroyFunc FvwmBorderClick
AddToFunc FvwmBorderClick
+ D ThisWindow (Maximizable) Maximize
+ M ThisWindow (!Maximized) Resize
+ I Focus
+ I Raise
Mouse 1 SF A FvwmBorderClick

Last edited by i92guboj; 11-17-2009 at 01:33 PM.
 
Old 11-17-2009, 02:12 PM   #23
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
Code:
Style * ClickToFocus, ClickToFocusRaisesOff
Turns out you don't even need those functions, just this does exactly what I want (raise only when clicked on title)!

This was something I first discovered in KWin, and I found it very convenient as I often have a window maximized and a smaller one on top of it, and it was the perfect solution to the annoying problem that the smaller one disappears when you do something in the big window.
 
Old 11-17-2009, 02:45 PM   #24
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,902

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by MTK358 View Post
Code:
Style * ClickToFocus, ClickToFocusRaisesOff
Turns out you don't even need those functions, just this does exactly what I want (raise only when clicked on title)!

This was something I first discovered in KWin, and I found it very convenient as I often have a window maximized and a smaller one on top of it, and it was the perfect solution to the annoying problem that the smaller one disappears when you do something in the big window.
Nice to know it's working now.

I use the keyboard most of the time, however when using the mouse, SloppyFocus does the job for me, I don't even have to click, the window to give it the focus, only to raise it. Not everyone is comfortable with SloppyFocus though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FVWM and colorsets. barn63 Slackware 5 09-02-2009 12:19 PM
fvwm & fvwm-crystal? festhead Linux - Desktop 1 09-23-2007 09:49 AM
transparency not correct with fvwm + fvwm-crystal + radeon hedpe Linux - Desktop 0 01-30-2007 07:59 PM
clock not working in fvwm with fvwm-crystal hedpe Linux - Software 0 09-13-2005 08:04 PM
2 fvwm processes with 2 displays, only want one fvwm enzo250gto Linux - Software 0 01-27-2005 04:50 PM


All times are GMT -5. The time now is 01:34 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration