Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FVWM Pager Transparent ##EDIT## SOLVED
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 8:06 pm    Post subject: FVWM Pager Transparent ##EDIT## SOLVED Reply with quote

Is it possible to get the pager transparent or translucent?

I am using fvwm 2.5.10.

Thanks for any help.


Last edited by codedmart on Tue Dec 14, 2004 7:32 pm; edited 2 times in total
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Mon Dec 13, 2004 8:23 pm    Post subject: Reply with quote

I make mine translucent (50% translucency) and tinted blue-ish by doing this in my .fvwm2rc file
Code:

*FvwmPager: Colorset * 1
ColorSet 1 RootTransparent Buffer, Tint #4A516A 50, fg white, bg black


Also, If you use fvwm-root to set the background image, make sure to pass it the --retain-pixmap option.

--s.r.d.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 8:52 pm    Post subject: Reply with quote

That didn't seem to do it. I must be doing something wrong
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Mon Dec 13, 2004 8:59 pm    Post subject: Reply with quote

How are you setting the background image or color?

Also it's fake transparency- it takes the background image or pattern and creates an image from that for the pager background.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 9:05 pm    Post subject: Reply with quote

Code:
+ I Test (Init) Exec exec Esetroot -c `cat $[FVWM_USERDIR]/current_wallpaper`


is that the line you are looking for?

Still learning

Thanks

##Edit##
I just logged in from using kde and it had the same wallpaper that I had set in kde.
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Mon Dec 13, 2004 9:09 pm    Post subject: Reply with quote

If your background image is a pixmap, you could try changing that to this and see if you get transparency:
Code:

+ I Test (Init) Exec exec fvwm-root --dither --retain-pixmap `cat $[FVWM_USERDIR]/current_wallpaper`


If that fixes it, there might be some other option that Esetroot needs for it to work with that.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 9:14 pm    Post subject: Reply with quote

That didn't work.

Thanks for the help
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Mon Dec 13, 2004 9:18 pm    Post subject: Reply with quote

Do you have another colorset entry that uses 0? It could be overwriting the settings.
What about it doesn't work, does the pager have any background?

Are you using fvwm-themes?

Better yet, could you post your config?
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 9:22 pm    Post subject: Reply with quote

I took this from ikaro or harnir. I'm not sure what I need and don't need. I am trying to work on changing one thing at a time.


Code:
##################################################################
#  ____________________________
# (   __________________________)
#  )   (__     _   _     _    _ 
# (     __)   ( \ /  )   ( \/\/  )    /\ /\
#  )   (        \    /      \     /    /      \
# (___)        \  /        \/ \/    (_/\ /\_) 2.5.10
#
# My personal fvwm2rc file
#
##################################################################

#Key A  A        C   Pick Resize

#Style Gmrun     NoTitle, StaysOnTop, FPGrabFocus

##################################################################
# Set Environment variables
###########

SetEnv fvwm_home /home/mart381/.fvwm
SetEnv fvwm_img /home/mart381/.fvwm/images
SetEnv fvwm_icon /home/mart381/.fvwm/icons
SetEnv fvwm_scrpt /home/mart381/.fvwm/scripts
SetEnv fvwm_wallpapers /home/mart381/.fvwm/wallpaper

SetEnv fvwm_webbrowser /usr/bin/firefox
SetEnv fvwm_term /usr/bin/Eterm
#SetEnv fvwm_mail /usr/bin/mutt
SetEnv fvwm_media_player /usr/bin/xmms
SetEnv fvwm_video_player /usr/bin/mplayer

#####
# Set the image path
###########
ImagePath $[fvwm_icon]:$[fvwm_icon];.png:+
##################################################################

##################################################################
### Starting and Exiting
##################################################################

#### Start Function
#### Launch needed Fvwm Modules
AddToFunc StartFunction
# ~/.fvwm/current_wallpaper is a text file containing the filename of the wallpaper I use.  I edited taviso's wallpaper browser to write the name of a wallpaper I choose to that current_wallpaper file, so that FVWM will remember it over a reboot. 
#+ I Test (Init) Exec exec Esetroot -c `cat $[FVWM_USERDIR]/current_wallpaper`
+ I Test (Init) Exec exec fvwm-root --dither --retain-pixmap `cat $[FVWM_USERDIR]/current_wallpaper`
+ I Test (Restart) All (Iconic) Test (f $[FVWM_USERDIR]/icon.tmp.$[w.id].png) WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png
+ I Exec exec $[fvwm_script_path]/xmodmap.sh
+ I Module FvwmCommandS
+ I Module FvwmProxy
+ I Module FvwmPager
+ I Module FvwmButtons -g 513x57+180-0 FvwmDock
+ I Module FvwmAnimate
+ I GameConsole
+ I Module FvwmTabs



#### Exit Function
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f $[HOME]/.fvwm/icon.tmp.*

##################################################################



###################################################################
### General Settings
###################################################################
Style xdaliclock NoTitle
Style Eterm NoTitle
Style aterm NoTitle
#### Set the Desktop Size
DeskTopSize 6x1

IgnoreModifiers L25
SnapAttraction 3 SameType
EdgeScroll 0 0
EdgeResistance 1000 20
EdgeThickness 1
ClickTime 150
MoveThreshold 3
OpaqueMoveSize unlimited
HideGeometryWindow Always
BugOpts FlickeringMoveWorkaround Off
SnapGrid 1 1

ColormapFocus FollowsFocus

Style * MinOverlapPlacement

Style * Colorset 3, HilightColorset 4
Style * Font "Shadow=1 1 SE:xft:sans:bold:pixelsize=10:minspace=True"

Style * SmartPlacement, WindowShadeSteps 0, ResizeOutLine
Style * DecorateTransient, NoPPosition
Style * IconBox 15 15 -1 1, ClickToFocus, MouseFocusClickRaises
Style * SmartPlacement, WindowShadeSteps 20, ResizeOpaque
Style * NoIcon, NoIconTitle

Style * BorderWidth 1, HandleWidth 1

###################################################################




###################################################################
### Colorsets
###################################################################

#### Menu Colorset
Colorset 0 fg #f7f7f7, bg #gray, hi #gray, Translucent black 50, IconAlpha 80
Colorset 1 fg #121212, bg #c8c8c8, hi #c8c8c8, IconAlpha 80

#### General Colorset
Colorset 2 fg #f7f7f7, bg #f7f7f7, hi #bbb, sh #bbb
Colorset 3 fg #444, bg #eee, hi #ccc, sh #ccc
Colorset 4 fg white, RootTransparent buffer, Tint white 30
Colorset 5 fg grey, bg #121212, RootTransparent buffer, Tint #121212 60
Colorset 6 fg white, RootTransparent buffer, Tint white 90

Colorset 7 fg white, IconAlpha 30
Colorset 8 fg white, IconAlpha 50

#Colorset 9 fg #121212, bg white, hi #121212, RootTransparent buffer, Tint white 75
Colorset 9 fg #444, bg #f7f7f7, hi #121212, RootTransparent

Colorset 10 fg white, bg #121212, RootTransparent

Colorset 11 bg #9c9e9c
Colorset 12 fg #9c9e9c, bg white, hi #9c9e9c, sh #9c9e9c, Translucent white 85, IconAlpha 60
Colorset 13 fg #333, bg white, hi #9c9e9c, sh #9c9e9c, Translucent white 85, IconAlpha 60

Colorset 14 bg #9c9e9c

#### Dock Colorset
Colorset 30 fg #ffffff, bg #ffffff, hi #dde5ec, sh #a6bbce, RootTransparent , Tint #101F36 65

#### Pager Colorset
Colorset 60 fg white, bg black, RootTransparent, Tint black 5
Colorset 61 fg white, bg black, Noshape, RootTransparent, Tint #101f36 70
Colorset 62 fg white, bg black, RootTransparent, Tint #466696 50
Colorset 63 fg white, bg black, Noshape, RootTransparent, Tint #101f36 50
Colorset 70 fg black, bg grey, NoShape, RootTransparent buffer, Tint white 10
Colorset 71 fg black, bg grey, NoShape, RootTransparent buffer, Tint white 20
Colorset 72 fg black, bg Khakil, Plain, NoShape
Colorset 73 RootTransparent Buffer, Tint #4A516A 50, fg white, bg black

###################################################################

# Default style stuff.



DefaultColorset 0
DefaultFont "Shadow=1 se:xft:Alpha Romanie G98:size=13"
Style * Colorset 12
Style * HilightColorset 13

# Makes the Maximize button toggle when you maximize a window.
Style * MWMButtons

# Hide window buttons if a window doesn't like something.
Style * MWMFunctions
Style * MWMDecor

# Transient windows like window decorations too.
Style * DecorateTransient

# 1px border, no handles please.
Style * BorderWidth 1
Style * NoHandles
Style * Borders

# Hard to find a placement policy that I really like.
Style * MinOverlapPercentPlacement

# Opaque resizing please.
Style * ResizeOpaque



# Style of the icons.  No title, transparent icons.
Style * NoIconTitle, IconTitleColorset 10, HilightIconTitleColorset 10, IconTitleRelief 0, IconBackgroundRelief 0, IndexedIconName

# Iconbox size.  I have it in the bottom-right, filling bottom-to-top, three icons wide.
# When FvwmButtons Swallows an IconBox, the icons are still transparent to the desktop, not to the background of the FvwmButtons, and that looks really really terrible. 

# This means that to have my IconBox look like it's inside a white box with a #121212 border, I have to open up the Gimp and actually draw such a box onto my desktop wallpaper.  An ugly ugly hack, #but I never move the dock or anything, so it works.  The good thing is that I can make the background of the bars at the bottom ANYTHING, not just a solid color.  I made it a nice gradient.  I could #give it rounded corners or whatever.  A real dock will resize horizontally when the icons enlarge as you mouseover them, but FVWM currently doesn't support such things, so it doesn't matter.  #FVWM DOES support icon-zooming, which still works quite nicely with my wallpaper-fake-docker-hack.

# Sometimes brute force is the best way to solve a problem.

# For the overlay I use myself, you can look at http://chwombat.net/fvwm/overlay.png.  You can just stick it as a layer over top of a 1280x1024 wallpaper, and make it semi-transparent.  Easy enough #to do; you can probably even make a script to do it for you.
#Style * IconBox 210x900-0-5, IconFill left bottom,

# SloppyFocus takes a bit getting used to, but it's nice.  Move the mouse into a window and it focuses; click the window anywhere to raise it.
Style * SloppyFocus, MouseFocusClickRaises

Style * BorderColorset  11
Style * HilightBorderColorset  11


# Window decorations.



TitleStyle AllActive StretchedPixmap back.png
TitleStyle AllInactive StretchedPixmap back2.png
TitleStyle -- flat
TitleStyle Height 23

# The Stick and Maximize buttons toggle based on the state of the window.
ButtonStyle All -- flat
DestroyDecor MyDecor
AddToDecor   MyDecor
+ TitleStyle LeftJustified Height 18
+ ButtonStyle 1 ActiveUp Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 1 ActiveDown Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 1 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 3 ActiveUp Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 3 ActiveDown Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 3 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 5 ActiveUp Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 5 ActiveDown Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 5 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ ButtonStyle All -- UseTitleStyle



###################################################################
### CursorStyle
###################################################################

#### Change style to left_ptr and fleur (missing cursors in my theme)
CursorStyle root left_ptr
CursorStyle default left_ptr
CursorStyle position left_ptr
CursorStyle sys left_ptr
CursorStyle menu left_ptr
CursorStyle title left_ptr
CursorStyle resize fleur
CursorStyle stroke cross
CursorStyle select draped_box

###################################################################



###################################################################
### Titlebar Decoration
###################################################################

DestroyDecor MyDecor
AddToDecor   MyDecor
+ TitleStyle LeftJustified Height 18
+ ButtonStyle 1 ActiveUp Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 1 ActiveDown Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 1 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 3 ActiveUp Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 3 ActiveDown Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 3 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 5 ActiveUp Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 5 ActiveDown Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 5 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ ButtonStyle All -- UseTitleStyle

###################################################################


###################################################################
### Styles
###################################################################

#### Fvwm Modules Styles
Style FvwmPager    NoTitle,  Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmPager    StaysOnBottom, NoHandles, BorderWidth 0
Style FvwmDock     Sticky, NoTitle, NoHandles, Borderwidth 1
Style FvwmDock     WindowListSkip, StaysOnBottom

#### Applications Styles
Style GameConsole NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style GameConsole StaysOnTop, NoHandles, BorderWidth 0, WindowShadeSteps 150

Style Firefox-bin EWMHMiniIconOverride, MiniIcon icons/firefox.png
Style Thunderbird-bin EWMHMiniIconOverride, MiniIcon icons/thunderbird.png
Style gvim  EWMHMiniIconOverride, MiniIcon icons/gvim.png
Style gnome-terminal  EWMHMiniIconOverride, MiniIcon icons/gnome-terminal.png
Style xchat-2  EWMHMiniIconOverride, MiniIcon icons/xchat.png
Style gimp-2.0 EWMHMiniIconOverride, MiniIcon icons/gimp.png
Style gaim EWMHMiniIconOverride, MiniIcon icons/gaim.png
Style nautilus EWMHMiniIconOverride, MiniIcon icons/nautilus.png
Style gFTP EWMHMiniIconOverride, MiniIcon icons/gftp.png
Style Gkrellm2 NoTitle, Sticky, WindowListSkip, StaysOnBottom, NeverFocus
Style xmms NoTitle, WindowListSkip, BorderWidth 0
Style Gdesklets NoTitle, NoHandles, Borderwidth 0
Style MPlayer NoTitle, Sticky, WindowListSkip
Style Untitled  NoTitle
Style gdeskcal NoTitle
Style engage NoTitle
Style xpad NoTitle
Style blender NoTitle
Style wmdrawer NoTitle, Sticky

#### Override others icons
Style * EwmhMiniIconOverride

###################################################################



###################################################################
### Mouse Bindings
###################################################################

#### Root Menus
Mouse 1     R       A   -
Mouse 3     R       A   Menu MenuFvwmRoot
Mouse 2     R       A   WindowList NoCurrentDeskTitle

#### Titlebar Buttons
Mouse 1     1       A   Menu MenuFvwmWindowOps
Mouse 3     1       A   Menu MenuFvwmwindowOps
Mouse 1     6       A   Thumbnail
Mouse 1     4       A   Maximize
Mouse 1     2       A   Close

#### Window, Frame, Side, Others
#Mouse 1     FS      A   ResizeFunc
AddToFunc QuickResize
+ I WarpToWindow 100 100
+ I Resize

AddToFunc Move-or-Raise     I Raise
+ M Move
+ D Lower

Mouse 1 W       M       Move-or-Raise
Mouse 3 W       M       QuickResize
Mouse 2     W       C   ResizeFunc
Mouse 1     W       M   MoveFunc
Mouse 3     W       M   ResizeFunc
Mouse 3     TSIF    A   RaiseLower
Mouse 3     T       A   Menu MenuFvwmWindowOps

AddToFunc ResizeFunc "M" Resize
AddToFunc MoveFunc   "M" Move

#### Icons Binding
Mouse 1     I       A   Iconify
Mouse 2     I       A   Move

#### Wheel Toggle Shade
Mouse 4     T       N   WindowShade True
Mouse 5     T       N   WindowShade False
Mouse 4     TW      M   WindowShade True
Mouse 5     TW      M   WindowShade False

#### Mouse Gesture Binding
#Mouse 1     R       A   StrokeFunc
#Mouse 1     W       CM  StrokeFunc

###################################################################




###################################################################
### Keyboard Bindings
###################################################################

Key Escape  A       M   SendToModule FvwmProxy ShowToggle

Key Tab A M Windowlist Root c c NoCurrentDeskTitle

#### Game's Console Like (Counter-Strike or Quake 3)
Key twosuperior A M GameConsole

DestroyFunc GameConsole
AddToFunc GameConsole
+ I All (GameConsole) WindowShade
+ I Next (HasPointer) Focus
+ I All (GameConsole) Focus
+ I All (GameConsole Shaded) Next (HasPointer) Focus

#### Windows Key Root Menu
Key Super_L  A  A   Menu MenuFvwmRoot
Key Super_R  A  A   Menu MenuFvwmRoot

#### Traditional Bindings
Key F4 A        M   Pick Close
Key X  A        M   Pick Destroy

#### Fvwm Special Bindings
Key F3 A        M   Module FvwmConsole -terminal xterm
Key I  A        M   Pick Module FvwmIdent
Key R  A        CM  Restart
Key F4 A        CM  Quit

#### Applications Bindings
Key F1 A        M   Exec exec gnome-terminal

#### Multimedia Keys Bindings
#Key XF86AudioMute        A A Exec exec aumix -vn
#Key XF86AudioRaiseVolume A A Exec exec aumix -v+5
#Key XF86AudioLowerVolume A A Exec exec aumix -v-5
#Key XF86AudioMedia       A A Exec exec xmms
#Key XF86Mail             A A Exec exec thunderbird

#### Pager Bindings
Key Right A CM GoToPage +1p  0p
Key Left  A CM GoToPage -1p  0p
Key Up    A CM GoToPage  0p -1p
Key Down  A CM GoToPage  0p +1p

###################################################################




###################################################################
### Menu Settings
###################################################################

MenuStyle * Hilight3DThin, PopupOffset +0 100, PopupDelay 400
MenuStyle * Font "Shadow=1 1 SE:xft:sans:bold:pixelsize=12:minspace=True"
MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1
MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid, Animation
MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
MenuStyle * AutomaticHotKeys

###################################################################




###################################################################
### Menu
###################################################################

DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot
+   "firefox"%$[fvwm_icon]/IcOsX/22x22/apps/mozilla.png%           Exec exec firefox
+   "eterm"%$[fvwm_icon]/IcOsX/22x22/apps/konsole.png%      Exec exec Eterm
+   "konqueror"%$[fvwm_icon]/IcOsX/22x22/apps/konqueror.png%    Exec exec konqueror
+   "limewire"%$[fvwm_icon]/IcOsX/22x22/apps/LimeWire.png%   Exec exec limewire
+   "k3b"%$[fvwm_icon]/IcOsX/22x22/apps/k3b.png%   Exec exec k3b

+   ""                                      Nop
+   "Office"%icons/office.png%              Popup MenuOffice
+   "Internet"%icons/internet.png%          Popup MenuInternet
+   "Editors"%icons/gvim.png%               Popup MenuEditors
+   "Multimedia"%icons/multimedia.png%      Popup MenuMultimedia
+   "Utilities"%icons/utils.png%            Popup MenuUtilities
+   "Games"%icons/games.png%                Popup MenuGames
+   "Preferences"%icons/prefs.png%          Popup MenuFvwmConfig
+   ""                                      Nop
+   "Quit"%icons/quit.png%                  Popup MenuQuit-Verify

DestroyMenu MenuOffice
AddToMenu MenuOffice
+   "&Office OOo"%icons/office.png%         Exec exec ooffice
+   ""                                      Nop
+   "OOo &writer"%icons/oowriter.png%       Exec exec oowriter
+   "OOo &calc"%icons/oocalc.png%           Exec exec oocalc
+   "OOo &draw"%icons/oocalc.png%           Exec exec oodraw

DestroyMenu MenuInternet
AddToMenu MenuInternet
+   "firefox"%$[fvwm_icon]/IcOsX/22x22/apps/mozilla.png%            Exec exec firefox
+   "Thunderbird"%icons/thunderbird.png%    Exec exec thunderbird
+   "Irssi"%icons/xchat.png%                Exec Eterm -g 80x50+8+48 -f white -F '-*-lucidatypewriter-medium-r-normal-sans-10-*-*-*-*-*-*-*' -O --tint=#ffffff --shade 0 --borderless --scrollbar-popup --scrollbar-floating --scrollbar no --double-buffer -a "toggles buttonbar false" -e irssi
+   "Gaim"%icons/gaim.png%                  Exec exec gaim
+   "Xchat"%icons/gaim.png%                  Exec exec xchat-2
+   ""                                      Nop
+   "Gftp"%icons/gftp.png%                  Exec exec gftp
+   "Bittorrent"%icons/gftp.png%            Exec exec btdownloadgui
+   "Khttrack"%icons/gftp.png%              Exec exec khttrack
+   ""                                      Nop
+   "Sites"%icons/internet.png%             Popup MenuFvwmWeb
+   "News"%icons/internet.png%              Popup MenuFvwmHeadlines

DestroyMenu MenuEditors
AddToMenu MenuEditors
+   "Kwrite"%icons/gvim.png%                Exec exec kwrite
+   "Gedit"%icons/gvim.png%                 Exec exec gedit
+   "Bluefish"%icons/bluefish.png%          Exec exec bluefish
+   "Xpad"%icons/gvim.png%                  Exec exec xpad
+   "GphpEdit"%icons/gvim.png%              Exec exec gphpedit

DestroyMenu MenuMultimedia
AddToMenu MenuMultimedia
+ MissingSubmenuFunction FuncFvwmMenuDirectory
+   "Rhythmbox"%icons/xmms.png%             Exec exec rhythmbox
+   "Gmpc"%icons/xmms.png%                  Exec exec gmpc
+   "The &Gimp"%icons/gimp.png%             Exec exec gimp-2.0
+   "GQView"%icons/gimp.png%                Exec exec gqview
+   "Blender2.33a"%icons/blender.png%               Exec exec blender
+   "Blender2.4"%icons/blender.png%               Exec exec /home/al/docs/installed_apps/blender-2.34-linux-glibc2.2.5-i386/blender
+   "ABCDE"%icons/grip.png%                 Exec exec xterm -e abcde
+   "K3b"%icons/k3b.png%                    Exec exec k3b
+   "Mplayer"%icons/mplayer.png%            Exec exec gmplayer
+   ""                                      Nop
+   "R&adios"%icons/xmms.png%               Popup MenuFvwmRadio
+   ""                                      Nop
+   "Navigate : &Movies"%icons/browse.png%  Popup $[fvwm_video_path]
+   "Navigate : &Music"%icons/browse.png% Popup $[fvwm_audio_path]

DestroyMenu MenuUtilities
AddToMenu MenuUtilities
+   "&Aterm"%icons/gnome-terminal.png%      Exec exec aterm
+   "Eterm"%icons/gnome-terminal.png%       Exec Eterm -g 100x20 -O --shade 70 -x --buttonbar false --scrollbar false
+   "Gdesklets"%icons/gnome-terminal.png%   Exec exec gdesklets
+   "Torsmo"%icons/gnome-terminal.png%      Exec exec torsmo
+   "Wmdrawer"%icons/gnome-terminal.png%    Exec exec wmdrawer
+   ""                                      Nop
+   "Screenshot"%icons/gnome-terminal.png%  Exec exec $[fvwm_script_path]/screenshot.sh
+   "Tail_Apache"%icons/gnome-terminal.png% Exec Eterm -g 50x5+10+600 -f white -F '-*-lucidatypewriter-medium-r-normal-sans-12-*-*-*-*-*-*-*' -O --shade 0 --borderless --scrollbar-popup --scrollbar-floating --scrollbar no --double-buffer -a "toggles buttonbar false" -e su -c "tail -f /var/log/apache2/access_log"

DestroyMenu MenuGames
AddToMenu MenuGames
+   "Half-Life"                        Exec exec wine /home/al/.wine/fake_windows/SIERRA/Half-Life/hl.exe -- hl.exe -console -windowed
+   "Wolfenstein"                       Exec exec wolfsp

DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify
+   "Quit"%icons/quit2.png%              Quit
+   "Restart"%icons/quit2.png%           Restart
+   "&Lock Screen"                       Exec exec xscreensaver-command -lock

DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig
+ MissingSubmenuFunction WallpaperBrowser
+   "Wallpapers"%icons/prefs.png%           Popup $[fvwm_wallpaper_dir]
+   ""                                      Nop
+   "FvwmConsole"%icons/gnome-terminal.png% Module FvwmConsole -terminal xterm
+   "Edit fvwm2rc"%icons/gvim.png%          Exec exec gedit ~/.fvwm/.fvwm2rc
+   "Refresh"%icons/quit2.png%              Refresh
+   "Kill"%icons/quit2.png%                 Pick Destroy

DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps
+   "Resize"                                Pick Resize
+   "Shade"                                 Pick WindowShade Toggle
+   "S&tick"                                Pick Stick
+   "Refresh"                               Pick RefreshWindow
+   ""                                      Nop
+   "Identification"                        Pick Module FvwmIdent
+   ""                                      Nop
+   "Send To"                               Popup MenuFvwmSendTo
+   ""                                      Nop
+   "Close"                                Close
+   "Exit"                                  Destroy

DestroyMenu MenuFvwmSendTo
AddToMenu MenuFvwmSendTo
+   "Page &1" MoveToPage 0 0
+   "Page &2" MoveToPage 1 0
+   "Page &3" MoveToPage 2 0
+   "Page &4" MoveToPage 0 1
+   "Page &5" MoveToPage 1 1
+   "Page &6" MoveToPage 2 1

DestroyMenu MenuFvwmRadio
AddToMenu MenuFvwmRadio
+   "Digitally Imported"                    Popup MenuFvwmRadioDI
+   "SmoothJazz"                            Exec exec xmms $[fvwm_playlist_path]/scast_lo.m3u
+   ""                                      Nop
+   "Actualiser les playlists"              Exec exec $[fvwm_script_path]/playlist.sh


DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify
+   "Quit"%icons/quit2.png%              Quit
+   "Restart"%icons/quit2.png%           Restart
+   "&Lock Screen"    Exec exec xscreensaver-command -lock

DestroyMenu MenuFvwmRadioDI
AddToMenu MenuFvwmRadioDI
+   "Anastacia"                             Exec exec xmms $[fvwm_playlist_path]/anastacia.pls
+   "Christina Aquilera"                    Exec exec xmms $[fvwm_playlist_path]/aquilera.pls
+   "Sting"                                 Exec exec xmms $[fvwm_playlist_path]/sting.pls

DestroyMenu MenuFvwmWeb
AddToMenu MenuFvwmWeb
+  "Information"                            Popup MenuFvwmInformatique
+  "Forums"                                 Popup MenuFvwmForums

DestroyMenu MenuFvwmInformatique
AddToMenu MenuFvwmInformatique
+  "Clubic"                                 Exec exec firefox http://www.clubic.com
+  "Hardware.com"                           Exec exec firefox http://www.hardware.com
+  "PcInpact"                               Exec exec firefox http://www.pcinpact.com
+  "Gentoo"                                 Exec exec firefox http://wwww.gentoo.org

DestroyMenu MenuFvwmForums
AddToMenu MenuFvwmForums
+  "Clubic"                                 Exec exec firefox http://forum.clubic.com
+  "PcInpact"                               Exec exec firefox http://www.pcinpact.com/forum/
+  "Gentoo"                                 Exec exec firefox http://forums.gentoo.org


###################################################################




###################################################################
### Thumbnails
###################################################################

SetEnv fvwm_icon_size 128

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale $[fvwm_icon_size] -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[HOME]/icons/$[w.miniiconfile]) PipeRead "composite -geometry +2+4 \
    $[HOME]/icons/$[w.miniiconfile] $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
    $[FVWM_USERDIR]/icon.tmp.$[w.id].png && echo Nop \
    || echo Beep"
+ I Iconify

DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead "echo WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
+ I UnsetEnv Icon-$[w.id]
+ I Exec exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png

#*FvwmEvent: deiconify DeThumbnail

#### Comment out these lines if you don't like Icons to have Titles.
#Colorset 12 fg white, bg black, fgsh black, RootTransparent
#Style * IconTitle, IconTitleColorset 12, HilightIconTitleColorset 12, IconTitleRelief 0
#Style * IconFont "Shadow=1 1 SE:xft:sans:bold:pixelsize=10:minspace=True", IndexedIconName, IconBackgroundPadding 0
#Style * IconBackgroundRelief 0, IconBackGroundColorset 12

###################################################################




###################################################################
### Pager
###################################################################

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 300x25-0-0
*FvwmPager: MiniIcons
*FvwmPager: Colorset * 74
*FvwmPager: HilightColorset * 70
*FvwmPager: WindowColorsets 71 71
*FvwmPager: BalloonColorset * 63
*FvwmPager: Font none
*FvwmPager: SmallFont none
*FvwmPager: Balloons All
*FvwmPager: BalloonFont "Shadow=1 1 SE:xft:sans:bold:pixelsize=10:minspace=True"
*FvwmPager: BalloonYOffset +2
*FvwmPager: BalloonBorderWidth 1
*FvwmPager: UseSkipList
*FvwmPager: MoveThreshold 0
*FvwmPager: SolidSeparators
*FvwmPager: WindowBorderWidth 1

###################################################################




###################################################################




###################################################################
### Animation
###################################################################

DestroyModuleConfig FvwmAnimate: *
*FvwmAnimate: Color white
*FvwmAnimate: Effect flip
*FvwmAnimate: Delay 2
*FvwmAnimate: Iterations 100
*FvwmAnimate: Width 5

###################################################################




###################################################################
### Directory Browsing
###################################################################

#### Browse Audio/Video Directory
DestroyFunc FuncFvwmMenuDirectory
AddToFunc FuncFvwmMenuDirectory
+ I PipeRead 'case "$0" in \
        "$[fvwm_video_path]"*) myexec="$[fvwm_video_exec]" mypng=icons/video.png;; \
        "$[fvwm_audio_path]"*) myexec="$[fvwm_audio_exec]" mypng=icons/audio.png;; \
    esac; \
    fvwm-menu-directory --icon-title icons/browse.png --icon-file ${mypng:-icons/browse.png} \
    --icon-dir icons/browse.png --dir "$0" --exec-t="^${myexec:-gvim} *" \
    --exec-file "^${myexec:-gvim}"'




# taviso's wallpaper browser.  Clicking a wallpaper executes wallpaper.sh.
DestroyFunc WallpaperBrowser
AddToFunc WallpaperBrowser
+ I PipeRead 'test ! -d "$0/.thumbs" && mkdir "$0/.thumbs"; \
    for i in "$0/"*; do \
        test -f "$0/.thumbs/${i##*/}" \
            -a "${i}" -ot "$0/.thumbs/${i##*/}" || { \
                convert -quality 0 -scale 48 "${i}" "png:$0/.thumbs/${i##*/}" 2>/dev/null || continue; \
            }; \
    done; \
    fvwm-menu-directory --dir $0 --title "" --icon-title "folder_mini.png" --icon-dir "folder_mini.png" --icon-file __PIXMAP__ --xterm "bash" --exec-file "$[FVWM_USERDIR]/wallpaper.sh" --order 5 | sed -e "s#FuncFvwmMenuDirectory#WallpaperBrowser#g" -e "s#__PIXMAP__\\(.*\\)\\"\\(.*/\\)\\(.*\\)\\"#\\2.thumbs/\\3\\1\\2\\3#g"'

#### Browse Wallpapers Directory
#DestroyFunc WallpaperBrowser
#AddToFunc WallpaperBrowser
#+ I PipeRead 'test ! -d "$0/.thumbs" && mkdir "$0/.thumbs"; \
 #   for i in "$0/"*; do \
 #       test -f "$0/.thumbs/${i##*/}" \
 #           -a "${i}" -ot "$0/.thumbs/${i##*/}" || { \
 #               convert -quality 0 -scale 24 "${i}" "png:$0/.thumbs/${i##*/}" 2>/dev/null \
 #                   || continue; \
 #           }; \
 #   done; \
 #   fvwm-menu-directory --icon-title icons/browse.png --icon-file __PIXMAP__ \
 #   --icon-dir icons/browse.png --dir $0 --exec-file "Esetroot -c" \
 #   --exec-t="^eog *" | sed -e "s#FuncFvwmMenuDirectory#WallpaperBrowser#g" \
 #   -e "s#__PIXMAP__\\(.*\\)\\"\\(.*/\\)\\(.*\\)\\"#\\2.thumbs/\\3\\1\\2\\3#g"'


###################################################################


###################################################################

Exec xset s off
Style * GrabFocus

#####
# FvwmExpose
###########
DestroyFunc FvwmExpose
AddToFunc FvwmExpose
+ I AddToMenu FvwmExposeMenu "e x p o s e" Title
+ I + DynamicPopDownAction DestroyMenu FvwmExposeMenu
+ I All (!Iconic !Shaded AcceptsFocus)\
    PipeRead "echo Raise; \
        xwd -silent -id $[w.id] | convert -scale $$(($[w.width]/10)) -quality 0 xwd:- \
        png:$[fvwm_home]/tmp/icon.exp.$[w.id].png \
    && echo AddToMenu FvwmExposeMenu \
    %$[fvwm_home]/tmp/icon.exp.$[w.id].png%\\\'\"$[w.name]\"\\\' WindowID $[w.id] WarpToWindow 50 50 \
        && echo AddToMenu FvwmExposeMenu \\\"\\\" Nop \
    || Nop"
+ I Popup FvwmExposeMenu
+ I Exec exec rm -f $[fvwm_home]/tmp/icon.exp.*



Thanks for all the help
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Mon Dec 13, 2004 9:27 pm    Post subject: Reply with quote

Line 661:
Code:
*FvwmPager: Colorset * 74

I think you wanted:
Code:
*FvwmPager: Colorset * 73
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 9:28 pm    Post subject: Reply with quote

you are right but the pager is still just black and white.
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Mon Dec 13, 2004 9:41 pm    Post subject: Reply with quote

It's a long shot, but did you chose Quit>Restart, or did you exit out of X and go back in to apply your changes? Maybe you need to get out of X and go back in... but that's really grasping at straws.

I replaced my config with yours and it worked. I'm not sure why yours isn't working, unless a use flag somehow prevented it from applying the transparency patch...

You might want to ACCEPT_KEYWORDS=~x86 emerge fvwm
(or ~whatever your arch is...)
And see if it works under 2.5.12. You can emerge it back to 2.5.10 if it doesn't fix it.

Other than that, I'm at a loss.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Mon Dec 13, 2004 9:48 pm    Post subject: Reply with quote

That didn't work either. Thanks for all the help.
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Tue Dec 14, 2004 1:42 am    Post subject: Reply with quote

Out of curiosity, do you have more than a black background for your desktop? The pager would show up as white on black if you didn't have a desktop background being set... I realize you were cat'ing the image location from a file, but is it actually applying that image to the background?
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Tue Dec 14, 2004 1:52 am    Post subject: Reply with quote

What would be the standard way to set the backround? I am trying to get the windows transparent to and am having the same problem.

Thanks
Back to top
View user's profile Send private message
Riveri
n00b
n00b


Joined: 20 Feb 2004
Posts: 65
Location: Tampere, Finland

PostPosted: Tue Dec 14, 2004 1:55 am    Post subject: Reply with quote

i do it like this...
Code:

AddToFunc StartFunction
+ I Exec exec fbsetbg -f /path/to/wallpaper.jpg


i have fluxbox and feh emerged...
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Tue Dec 14, 2004 1:08 pm    Post subject: Reply with quote

After reading your edit above, I see what has happened.

Your config file basically says to take whatever file is named in $[HOME]/.fvwm/current_wallpaper and make it the background image. Either the file didn't exist, or it didn't specify the correct path to an image. The result was that the background was never set by fvwm and so the transparency calculations are using an empy background for computing whereas you are seeing the background that was set by KDE. You need to either put the full path to the image you would like to use as a background in that file $[HOME].fvwm/current_wallpaper, or change line that says this:
Code:
+ I Test (Init) Exec exec fvwm-root --dither --retain-pixmap `cat $[FVWM_USERDIR]/current_wallpaper`

To this:
Code:
+ I Test (Init) Exec exec fvwm-root --dither --retain-pixmap /path/to/background/image.png


This will also fix your menu transparency issue.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Tue Dec 14, 2004 3:48 pm    Post subject: Reply with quote

The menu transparency is working fine but That didn't fix the pager transparency either. I have been trying to get the window decor tranparent also with no luck. My other problem with the pager is I have been trying to takes things out of this config to shorten it up and build my own as I borrowed it form somebody. when I put the pager back in to try your suggestion it had window decor around it. Kinda enoying.
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Tue Dec 14, 2004 4:08 pm    Post subject: Reply with quote

Sounds like you may have been missing some style settings for either setting the BorderWidth 0 or NoTitle when you put the pager back in.

For your transparency problem with the pager, while fvwm is running, try setting the background from the command-line. Find a png file and do
Code:
fvwm-root --dither --retain-pixmap whatever_file_you_find.png


Then if the background changes and the pager background goes translucent, we will know the problem is that fvwm isn't setting the background when it's started. If the pager doesn't go transparent, then maybe the fvwm forums or mailing list would be a good idea.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Tue Dec 14, 2004 5:10 pm    Post subject: Reply with quote

I get this
Code:
[fvwm-root] failed to load image file '/home/mart381/fvwm-backup/images/wallpaper/gentoo1024x768.png
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Tue Dec 14, 2004 5:20 pm    Post subject: Reply with quote

I think that might have something to do with the fvwm-crystal translucent not working right either. Not sure though
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Tue Dec 14, 2004 6:36 pm    Post subject: Reply with quote

Ah, so fvwm is never actually loading the background. So when it computes the transparency, it's using a black background instead of your image.

Make sure that image exists, make sure you can view it in gimp or something else, try running file on it to make sure it is in fact a png image. If all the above are true, do fvwm --version and see if you compiled it with PNG support.

[Edit: fvwm-root --help will also print out whether fvwm-root supports png in the first line of output]
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Tue Dec 14, 2004 6:56 pm    Post subject: Reply with quote

It say I have support for png with both commands that you gave me and I checked the path of the file and that it was .png still no go not sure what is wrong.
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Tue Dec 14, 2004 7:03 pm    Post subject: Reply with quote

Did you do
Code:
 file /home/mart381/fvwm-backup/images/wallpaper/gentoo1024x768.png
to see that it was a png image? Maybe the path to the image was wrong or ... I'm just out of ideas. Sorry.

This shouldn't be so difficult an issue...

Did you try different png files? Maybe there's something wrong with just that one...
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Tue Dec 14, 2004 7:11 pm    Post subject: Reply with quote

You are correct because I just loaded a png file and it works. My only other question would be how do I change a jpg to a png?

Thanks for all your help I really appreciate it.

##EDIT UPDATE## Solved Thanks a lot nix-newb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum