- 论坛徽章:
- 2
|
接上:
- #####
- # FvwmButtons is an incredible piece of software.
- #
- # It can create freeform panels of any size, shape (including Non-Rectangular windows),
- # Colour and function. It can swallow other applications, even applications not designed
- # for docking, have "panels" that slide out consisting of other panels, has a "startup-notification"
- # like feature, hundreds of possible bindings, uses the powerful fvwm Colorsets feature, and
- # can even change dynamically and respond to window manager events.
- #
- # The widgets can be transparent, use Xft fonts, and using fvwm's font definitions can render drop shadows
- # at any direction, offset, size and colour. Buttons can all use different Colorsets, and can have different
- # reliefs, shapes, anything!
- #
- # FvwmButtons is even tolerant to errors in configuration, and can workaround bad or impossible
- # definitions!
- #
- # As it's an fvwm module, it has 100% integration with the window manager and can use
- # internal fvwm commands, functions, etc.
- #
- # as you can tell, i am a big FvwmButtons fan :)
- #
- # I've written a quick introduction into making panels with FvwmButtons, you can read it here
- # http://forums.gentoo.org/viewtopic.php?t=162177
- #
- # To use Startup-notification, make an action like this:
- # Action(Mouse 1) `Exec "rxvt" exec rxvt`
- # the button will remain pressed until a window called "rxvt" appears.
- #
- # The configuration below start with an alias, 'FvwmShelf', you can have as mny button bars
- # as you like, if you give each one a seperate alias they can all have a different configuration.
- #
- # FvwmApplet-DigitalClock is a modified version of the FvwmScript script that comes with
- # fvwm-themes, I just changed it to print the date and time.
- #
- # Screenshot: http://dev.gentoo.org/~taviso/screenshots/april-04-clean.png
- #########
- Colorset 10 fg black, bg #c6c3c6, RootTransparent buffer, Tint #efebef 65
- Colorset 18 fg black, bg #c6c3c6, RootTransparent buffer, Tint #c3c6c3 65
- Colorset 17 fg black, bg #c6cbd6
- DestroyModuleConfig FvwmShelf: *
- *FvwmShelf: Columns 23
- *FvwmShelf: Font "Shadow=1 1 SE:xft:Bitstream Vera Sans Mono:style=Roman:size=8"
- *FvwmShelf: Colorset 10
- *FvwmShelf: Frame 1
- *FvwmShelf: Padding 2 2
- *FvwmShelf: Rows 72
- *FvwmShelf: (1x72, Action(Mouse 1) Next (CirculateHit, FvwmShelf) PipeRead 'echo LockingSlide $$(test $$(($[w.x]+$[w.width])) -le $[vp.width] && echo w$$(($[w.width]-$width))p || echo w-$$(($[w.width]-$width))p) keep; echo Next \\(CirculateHit, FvwmBar\\) Maximize ewmhiwa growright 0')
- *FvwmShelf: (22x2, Title(Side) " Terminal", Left, Icon computer_x11.png, Action(Mouse 1) `Exec "rxvt" exec rxvt`)
- *FvwmShelf: (22x2, Title(Side) " File Manager", Left, Icon floppy_disk.png, Action(Mouse 1) `Exec "ROX-Filer" exec rox`)
- *FvwmShelf: (22x2, Title(Side) " Editor", Left, Icon gvim.png, Action(Mouse 1) `Exec "gvim" exec gvim -geom 139x56`)
- *FvwmShelf: (22x2, Title(Side) " Web Browser", Left, Icon opera.png, Action(Mouse 1) `Exec "opera" exec opera -newwindow -bigicon`)
- *FvwmShelf: (22x2, Title(Side) " Email Client", Left, Icon mail.png, Action(Mouse 1) `Exec "Mulberry" exec mulberry`)
- *FvwmShelf: (22x2, Title(Side) " Music Player", Left, Icon audio.png, Action(Mouse 1) `Exec "beep-media-player" exec beep-media-player`)
- *FvwmShelf: (22x2, Title(Side) " News Reader", Left, Icon news_newspaper.png, Action(Mouse 1) `Exec "pan" exec pan`)
- *FvwmShelf: (22x2, Title(Side) " Gimp", Left, Icon graphics_paint_edit.png, Action(Mouse 1) `Exec "gimp-2.0" exec gimp-2.0`)
- *FvwmShelf: (22x2, Title(Side) " Abiword", Left, Icon document_letter_word-processor.png, Action(Mouse 1) `Exec "abiword-2.0" exec abiword-2.0`)
- *FvwmShelf: (22x1, Colorset 18, Frame 0)
- *FvwmShelf: (22x2, Title(Side) " Calculator", Left, Icon calculator.png, Action(Mouse 1) `Exec "XCalc" exec xcalc -stipple`)
- *FvwmShelf: (22x2, Title(Side) " Manual Page", Left, Icon book_help_paper.png, Action(Mouse 1) `Exec "xman" exec xman`)
- *FvwmShelf: (22x2, Title(Side) " Magnifier", Left, Icon telescope.png, Action(Mouse 1) `Exec "xmag" exec xmag`)
- *FvwmShelf: (22x2, Title(Side) " Run...", Left, Icon gears.png, Action(Mouse 1) `Exec "gmrun" exec gmrun`)
- *FvwmShelf: (22x1, Colorset 18, Frame 0)
- *FvwmShelf: (22x2, Title(Side) " Audio Mixer", Left, Icon graph_mixer.png, Action(Mouse 1) `Exec "ossxmix" exec /opt/oss/bin/ossxmix`)
- *FvwmShelf: (22x2, Title(Side) " Lock Screen", Left, Icon key2.png, Action(Mouse 1) `Exec exec xscreensaver-command --lock`)
- *FvwmShelf: (22x2, Title(Side) " Show Desktop", Left, Icon bulletin-board.png, Action(Mouse 1) `All (AcceptsFocus, CurrentPage, !Iconic, !Shaded) Thumbnail`)
- *FvwmShelf: (22x2, Title(Side) " Sticky Note", Left, Icon paper_pencil.png, Action(Mouse 1) `Exec "xpad" exec xpad`)
- *FvwmShelf: (22x2, Title(Side) " XKill", Left, Icon bomb.png, Action(Mouse 1) `Exec exec xkill`)
- *FvwmShelf: (22x1, Colorset 18, Frame 0)
- *FvwmShelf: (22x2, Title(Side) " Fvwm Console", Left, Icon hardware_monitor.png, Action(Mouse 1) `Module FvwmConsole -terminal rxvt`)
- *FvwmShelf: (22x2, Title(Side) " Restart", Left, Icon gears_panel.png, Action(Mouse 1) `Restart`)
- *FvwmShelf: (22x2, Title(Side) " Quit Fvwm", Left, Icon plug.png, Action(Mouse 1) `Module FvwmScript FvwmScript-Quit`)
- *FvwmShelf: (22x1, Colorset 18, Frame 0)
- *FvwmShelf: (5x2, Colorset 18, Frame 0, Padding 2 0, Left, Icon brain_ai_memory.png, Action(Mouse 1) Exec exec xload)
- *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 2, Left, Swallow(UseOld) "cpumon" `Exec exec xosview -title cpumon +cpu`)
- *FvwmShelf: (5x2, Colorset 18, Frame 0, Padding 2 0, Left, Icon network.png, Action(Mouse 1) `Exec exec xnetload -if eth0`)
- *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 2, Left, Swallow(UseOld) "netmon" `Exec exec xosview -title netmon +net`)
- *FvwmShelf: (5x2, Frame 0, Padding 2 0, Colorset 18, Icon hardware_card.png, Left)
- *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 0, Left, Swallow(UseOld) "memmon" `Exec exec xosview -title memmon +swap +mem`)
- *FvwmShelf: (5x2, Colorset 18, Frame 0, Padding 2 0, Icon floppy_disk.png, Left)
- *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 2, Left, Swallow(UseOld) "diskmon" `Exec exec xosview -title diskmon +disk`)
- *FvwmShelf: (22x2, Colorset 18, Frame 0)
- *FvwmShelf: (22x8, Swallow "FvwmPager" "FvwmPager *")
- *FvwmShelf: (22x3, Colorset 18, Frame 0)
- *FvwmShelf: (22x2, Colorset 17, Swallow(Kill) peksystray `Exec exec peksystray --icon-size 24 --border 1`)
- *FvwmShelf: (5x3, Colorset 18, Frame 0, Icon calendar_schedule.png, Left, Action(mouse 1) `Exec exec xcalendar`)
- *FvwmShelf: (17x3, Colorset 18, Frame 0, Swallow FvwmApplet-DigitalClock `FvwmScript FvwmApplet-DigitalClock 18`)
- # An FvwmButtons-based Taskbar, it will swallow an FvwmIconMan.
- # Note the Menu options to make it appear at a nice and consistant
- # offset to the button, cool huh? :)
- DestroyModuleConfig FvwmBar: *
- *FvwmBar: Font "Shadow=1 1 SE:xft:Bitstream Vera Sans Mono:style=Roman:size=8"
- *FvwmBar: Colorset 10
- *FvwmBar: Frame 1
- *FvwmBar: Padding 2 2
- *FvwmBar: Rows 23
- *FvwmBar: Columns 71
- *FvwmBar: (71x3, Padding 0 0, Action(Mouse 1) `Next (CirculateHit, FvwmBar) PipeRead 'echo LockingSlide keep $$(test $$(($[w.y]+$[w.height])) -le $[vp.height] && echo w$$(($[w.height]-$height))p || echo w-$$(($[w.height]-$height))p)'`)
- *FvwmBar: (6x20, Title(Side) " Launch", Left, Icon gears.png, Action(Mouse 1) `Menu MenuFvwmRoot Rectangle +$left+$top 0 -100m`)
- *FvwmBar: (63x20, Swallow "FvwmIconMan" `FvwmIconMan`)
- *FvwmBar: (2x20, Colorset 18, Frame 0)
- # A little control panel for switching desks.
- DestroyModuleConfig DeskControl: *
- *DeskControl: Columns 1
- *DeskControl: Rows 3
- *DeskControl: Colorset 17
- *DeskControl: Frame 1
- *DeskControl: Padding 1 1
- *DeskControl: Font "xft:snap;-artwiz-snap-*-r-*-*-*-*-*-*-*-*-iso8859-1"
- *DeskControl: (1x1, Title "<", Action(Mouse 1) GotoDesk -1)
- *DeskControl: (1x1, Title ">", Action(Mouse 1) GotoDesk 1)
- *DeskControl: (1x1, Id desk, Title "$[desk.n]", Action(Mouse 1) `Next (CirculateHit, DeskControl) PipeRead 'echo LockingSlide keep $$(test $[w.y] -lt 0 && echo 0 || echo w-$$(($[w.height]-$height))p)'`)
- #####
- # FvwmIconMan is a highly configurable module for managing running tasks.
- # This one is configured to look like a TaskBar.
- #
- # If you want to change the information written on the Buttons you can
- # set the Format option, look up the available options in the FvwmIconMan man page.
- #
- # You can configure Actions for the buttons, sendcommand will execute a command in
- # the context of the window. Notice the Menu options so that the Popup menu appears
- # aligned at the left of the button.
- #######
- Colorset 15 fg black, bg #c6c3c6, sh #dedbde, hi #dedbde, RootTransparent buffer, Tint #efebef 65
- Colorset 16 fg black, bg #c6c3c6, RootTransparent buffer, Tint #e4e5c7 90
- DestroyModuleConfig FvwmIconMan: *
- *FvwmIconMan: ManagerGeometry 1x1
- *FvwmIconMan: ButtonGeometry 24x23
- *FvwmIconMan: FocusAndSelectButton down
- *FvwmIconMan: FocusButton down
- *FvwmIconMan: IconButton down
- *FvwmIconMan: PlainButton down
- *FvwmIconMan: SelectButton down
- # disable default binding of "Iconify"
- *FvwmIconMan: Action Mouse 0 N sendcommand Nop
- # redefine buttons 1, 2 and 3.
- *FvwmIconMan: Action Mouse 2 N sendcommand Thumbnail
- *FvwmIconMan: Action Mouse 1 N sendcommand "Iconify off", sendcommand RaiseLower, sendcommand FlipFocus
- *FvwmIconMan: Action Mouse 3 N sendcommand "Popup MenuFvwmWindowOps Rectangle +$left+$top 0 -100m"
- #*FvwmIconMan: Action Mouse 4 N sendcommand "LockingSlide keep w-3p"
- #*FvwmIconMan: Action Mouse 5 N sendcommand "LockingSlide keep w3p"
- *FvwmIconMan: Colorset 15
- *FvwmIconMan: ReliefThickness 1
- *FvwmIconMan: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=8"
- *FvwmIconMan: FocusAndSelectColorset 16
- *FvwmIconMan: FocusColorset 16
- *FvwmIconMan: Resolution Page
- *FvwmIconMan: DrawIcons Always
- *FvwmIconMan: FollowFocus True
- *FvwmIconMan: UseWinList True
- *FvwmIconMan: ShowOnlyIcons False
- #*FvwmIconMan: Format "%c: %i"
- *FvwmIconMan: Title ""
- *FvwmIconMan: Sort id
- Read ConfigFvwmTabs quiet
复制代码 |
|