Pixelbrei's corner: KDE+Fvwm

Hi!
I am so in love with fvwm, i couldn’t run an X session without it :slight_smile:
But I also like KDE… So i started combining those two.

This will be like a workshop, i’m not done with my config yet, but i will publish updates here as soon as i make them.

Sadly, my webspace is down… I will post screenies & configs ASAP.

EDIT: One screen shot here: linuxforen.de/forums/attachm … ntid=11117

And now on to the first step:

1. Getting rid of the kwin Window Manager

a) If you start X with startx:

You have to put

export KDEWM="fvwm"

in your .xinitrc, before you start kde.

b) If you’re using a login manager:

The same text, this time it goes to your .bashrc.

Now KDE will use fvwm as the window manager.

2. Styling FVWM

To integrate fvwm into KDE, it should look like the original wm.
As i like the plastik style most, i copied this one to fvwm:

#These Gradients look like plastik titlebars with the plastik color theme
Colorset 1 VGradient 32 2 #c1c9d3 10 #9daaba 90 #aab5c3
Colorset 2 VGradient 32 2 #8fbcea 10 #418edc 90 #62a1e2
# 1 is for inactive windows, 2 for active ones
DestroyDecor PlastikDecor
AddToDecor PlastikDecor
+ TitleStyle Centered Height 24 
+ TitleStyle InActive (Colorset 1 -- Flat ) Active (Colorset 2 -- Flat)
+ AddTitleStyle InActive (Colorset 1 -- Flat ) Active (Colorset 2 -- Flat)
+ ButtonStyle All InActive (Colorset 1 -- Flat ) Active (Colorset 2 -- Flat)

Ok, the titlebar color now fits nicely into KDE.
The buttons are still missing, i will add them tomorrow.

Other pieces that will follow soon:

  • replacing the “kicker” panel
  • including the systray, a pager, iconmanager, and THE KDE MENU!
  • and, of course, screenshots!

So stay tuned :slight_smile:

I’m no KDE lover but I think what you’re doing will benefit a lot of people who like KDE but want to gain that additional control that Fvwm brings, great project! Keep it up :slight_smile:

Just one note though, the link to the screenshot links to another forum and can’t be viewed without registering there… If you can’t host it yourself I’d be happy to host it for you, just pm me :slight_smile:

Cheers

tBD

Topic is interesting, but it seems to be not active.
There is my solution to bottom bar - Dock App Bar + Pager + Task Bar + Dock Bar:

#### Pager ####
*FvwmPager: Back #C6C6BF
*FvwmPager: Fore #FFFFFF
#*FvwmPager: Font -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPager: Font none
*FvwmPager: Hilight #FFFFFF
#FvwmPager: [fore][back][hiFore][hiBack]
*FvwmPager: Geometry 56x44+0-0
#*FvwmPager: Label 0 .:Desktop:.
*FvwmPager: SmallFont 5x8
#*FvwmPager: DeskTopScale 31
*FvwmPager: MiniIcons
#*FvwmPager: SloppyFocus
*FvwmPager: SolidSeparators
#*FvwmPager: DeskPixmap 1 /mnt/hda10/KDE_icons/1_pager.xpm

#### IconMan####
DestroyModuleConfig FvwmIconMan: *
*FvwmIconMan: NumManagers 1
*FvwmIconMan: Background #EEEEE6
*FvwmIconMan: Foreground #000000
#*FvwmIconMan: 1 
*FvwmIconMan: ButtonGeometry 22x22
#*FvwmIconMan: ClickToFocus true
*FvwmIconMan: DrawIcons always
*FvwmIconMan: FollowFocus true
#*FvwmIconMan: Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconMan: Font "xft:Dejavu Mono:style=Medium:size=11"
#*FvwmIconMan: Font -*-dejavu sans-medium-r-*-*-11-*-*-*-*-*-*-uni # is not workin as good as xft
#*FvwmIconMan: Foreground #C00000
*FvwmIconMan:Shaded_window Format %i
*FvwmIconMan: IconButton flat
*FvwmIconMan: ManagerGeometry 27x2+0+0
*FvwmIconMan: MaxButtonWidth 200
*FvwmIconMan: PlainButton flat
*FvwmIconMan: ReliefThickness 1
*FvwmIconMan: Resolution Desk
*FvwmIconMan: SelectButton flat
*FvwmIconMan: Sort none
*FvwmIconMan: Title ""
*FvwmIconMan: UseWinList true
#*FvwmIconMan: Action Mouse 1 N sendcommand WarpToWindow
*FvwmIconMan: Action Mouse 1 N sendcommand "Function Toggle"
#*FvwmIconMan: Action Mouse 1 N sendcommand EWMHActivateWindowFunc
#*FvwmIconMan: Action Mouse 1 N sendcommand "Function DeiconifyRaiseAndFocus"
*FvwmIconMan: Action Mouse 3 N sendcommand "Popup Iconified"
#*FvwmIconMan: Action Mouse 1 N sendcommand Focus
*FvwmIconMan: Tips needed
*FvwmIconMan: TipsDelays 100 0
#*FvwmIconMan: 

#### FvwmButtons ####
KillModule FvwmButtons
DestroyModuleConfig FvwmButtons: *
*FvwmButtons: Back #EEEEE6
*FvwmButtons: ButtonGeometry 4x22+0-0
*FvwmButtons: Geometry 1004x44+0-0
*FvwmButtons: Rows 2
*FvwmButtons: Fore #C00000
*FvwmButtons: Frame 0
*FvwmButtons: Padding 0 0
## DocAppBar ##
#*FvwmButtons: (Panel slide "Fvwm FvwmButtons slide")
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/crystalsvg/32x32/apps/kmenu.png, ActionOnPress, Action `Menu MenuFvwmRoot)
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/crystalsvg/32x32/apps/terminal.png, ActionOnPress, Action 'Exec exec konsole')
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/crystalsvg/32x32/apps/package_network.png, ActionOnPress, Action 'Exec exec konqueror')
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/crystalsvg/32x32/apps/firefox.png, ActionOnPress, Action 'Exec exec firefox')
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/hicolor/32x32/apps/juk.png, ActionOnPress, Action `Exec exec xmms`)
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/crystalsvg/32x32/apps/noatun.png, ActionOnPress, Action `Exec exec xine`)
*FvwmButtons: (11x2, Icon /mnt/hda10/KDE_icons/icons/hicolor/32x32/apps/k3b.png, ActionOnPress, Action `Exec exec k3b`)

##Pager##
*FvwmButtons: (15x2, Swallow "FvwmPager" "FvwmModule FvwmPager 0 0")

## TaskBar ##
*FvwmButtons: (140x2, Swallow "FvwmIconMan" "FvwmModule FvwmIconMan")

## DockBar ## 
*FvwmButtons: (20x2, Padding 0 0, Colorset 5,Swallow "FvwmXclock" `Exec xclock -fn 7x14 -padding 5 -norender -twentyfour -brief -digital -fg rgb:00/00/00 -bg rgb:EE/EE/E6 -name FvwmXclock`)
#*FvwmButtons: (End)

#### Hide_panel#### arrow at right side to hide/show bottom bar
KillModule Hide
DestroyModuleConfig Hide: *
*Hide: Back #EEEEE6
*Hide: ButtonGeometry 16x44-0-0
*Hide: Geometry 16x44-0-0
*Hide: Rows 1
*Hide: Fore #C00000
*Hide: Frame 0
*Hide: Padding 0 0
*Hide: (1x1, Icon /mnt/hda10/KDE_icons/icons/crystalsvg/16x16/actions/1rightarrow.png, ActionOnPress, Action `HideBarRight`)

## Show_hidden_panel ##

DestroyFunc HideBarRight
AddToFunc HideBarRight
#+ I SetEnv RIGHT_ICON = LEFT_ICON
#+ I Style "FvwmButtons*" !NeverFocus, WindowListHit, CirculateHit
#+ I Style "FvwmButtons"  TitleAtRight
+ I Next ("FvwmButtons")    Iconify
#+ I All (!Focus) EwmhBaseStruts 0 0 0 0
#+ I Maximize
#+ I Next ("FvwmButtons")     WindowShade toggle West
#+ I SetEnv LEFT_ICON = ICON_LEFT

DestroyFunc Toggle
AddToFunc Toggle

+ I ThisWindow (CurrentPage, Iconic) Function "DeiconifyRaiseAndFocus"
+ TestRc (Match) Break
+ I ThisWindow (CurrentPage, !Iconic) Function "RaiseAndFocus"
+ TestRc (Match) Break
+ I ThisWindow (!CurrentPage) EWMHActivateWindowFunc
#+ TestRc (Match) Break
#+ C ThisWindow (CurrentPage, Iconic) Iconify
#+ TestRc (Match) Break
# How to add extra function: raised and focused window after clicking on it
# is iconified/minimized?

Icons are default set from KDE 3.5.XX. Currently this project is in very early state. My 1+ year old son is the reason… :slight_smile:

During fiddling with Fvwm I had some issue with installing new cursor theme.
There is my solution:
(global settings, no user-specified)

  1. su root
  2. cd /usr/share/icons
  3. mkdir default
  4. cd default
  5. touch index.theme
  6. In index.theme write:
    [Icon Theme]
    Name = KDE_3.5_pinux
    Comment = Default icon theme in (MY) KDE 3.5.10 environment
    Inherits = KDE_3.5_pinux
  7. cd …
  8. mkdir KDE_3.5_pinux
  9. quit
  10. cp cursor/files/of/your/choice /usr/share/icons/KDE_3.5_pinux
  11. Restart FVWM

During normal use it turned out that resize cursor invoked from Window_Operations Menu
is replaced by default X system cursor,also there was issue with title buttons cursor

  1. Use CursorStyle command

numbers/names taken from /usr/include/X11/cursorfont.h (without the XC_ prefix), or
you can use only names from /usr/share/icons/KDE_3.5_pinux/

#CursorStyle SYS arrow
CursorStyle SYS 132 #works as good as: CursorStyle SYS arrow
#CursorStyle RESIZE lr_angle
#CursorStyle RESIZE 78

  1. Restart FVWM

Hope that this will help for you.
My default cursor theme can be found there]http://gnome-look.org/content/show.php?content=19506[/url]