Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bash has my favourite shell syntax, so use it if it exists.
- Test (f /bin/bash) ExecUseShell /bin/bash
- # Try this to change borders.
- BorderStyle Active Colorset 1 -- Flat NoInset
- BorderStyle InActive Colorset 1 -- Flat NoInset
- ## define the screen area that windows can use. Syntax: 'EwmhBaseStruts left right top bottom' in pixels
- EwmhBaseStruts 0 3 0 0
- ## set desktops
- DesktopSize 1x1
- DesktopName 0 Desk 0
- DesktopName 1 Desk 1
- DesktopName 2 Desk 2
- DesktopName 3 Desk 3
- DesktopName 4 Desk 4
- DesktopName 5 Desk 5
- DesktopName 6 Desk 6
- DesktopName 7 Desk 7
- DesktopName 8 Desk 8
- DesktopName 9 Desk 9
- # Specifies the % of a page to scroll when the cursor hits the edge of a page. Unwanted.
- EdgeScroll 0 0
- ## ignore NumLock
- # [3]http://www.fvwm.org/documentation/faq/#5.5
- IgnoreModifiers L25
- ## set desktop background colour
- AddToFunc StartFunction
- + I Exec fvwm-root --retain-pixmap /home/nostromo/.fvwm/wally--1024x600.png
- + I Module FvwmCommandS
- ## don't show icons for minimized/iconified windows
- Style "*" NoIcon
- ## mouse cursor styles
- CursorStyle ROOT left_ptr
- CursorStyle TITLE left_ptr
- CursorStyle DEFAULT left_ptr
- CursorStyle SYS left_ptr
- CursorStyle MENU left_ptr
- # Style * !Handles
- Style * !Title
- Style * BorderWidth 5
- Style * HandleWidth 5
- Style * NoDecorHint, NoFuncHint, GNOMEIgnoreHints, NoPPosition
- # MwmDecor HintOverride MwmFunctions, DecorateTransient,
- Style "Thunar" Title
- TitleStyle LeftJustified
- TitleStyle -- flat
- Style * FPSortWindowlistByFocus
- Style * ClickToFocus
- Style * SkipMapping
- # Style experimentation
- #Style * GrabFocusOff, !FPGrabFocus, !FPGrabFocusTransient, FPOverrideGrabFocus, ClickToFocusRaisesOff
- #Style *irefox* GrabFocusOff
- #Style *irefox* !FPGrabFocus
- #Style *irefox* !FPGrabFocusTransient
- #Style *hunar* FPOverrideGrabFocus
- Style * SmartPlacement, WindowShadeSteps 20, ResizeOpaque
- # Recall that mouse formats look like this:
- #
- # +------------+
- # | || || || |
- # | |
- # +------------+
- # 1 2 3
- # -------------------------------------------------------------
- # Contexts: | Binding Functions:
- # R = Root Window rrrrrrrrrrrrrrrrrrrrrr |
- # W = Application Window rIrrrrFSSSSSSSSSFrrrrr | "M" stands for Motion
- # F = Frame Corners rrrrrrS13TTTT642Srrrrr | "C" stands for Click
- # S = Frame Sides rIrrrrSwwwwwwwwwSrrrrr | "H" stands for Hold
- # T = Title Bar rrrrrrSwwwwwwwwwSrrrrr | "D" stands for Double Click
- # I = Icon rIrrrrFSSSSSSSSSFrrrrr | "I" stands for Immediate
- # rrrrrrrrrrrrrrrrrrrrrr |
- # |
- # Numbers are buttons: 1 3 5 7 9 0 8 6 4 2
- #
- # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing, (4) Super
- # -------------------------------------------------------------
- ## mouse bindings
- Mouse 1 R A Menu Mainmenu Nop
- Mouse 3 R A WindowList
- Mouse 3 F A Menu MenuFvwmWindowOps Nop
- Mouse 3 S A Menu MenuFvwmWindowOps Nop
- Mouse 1 W M Pick move
- ## key bindings
- Key Escape A S Popup Mainmenu Root c c
- # Define Alt-Tab, to cycle thru the windows.
- DestroyFunc FocusRaiseAndStuff
- AddToFunc FocusRaiseAndStuff
- + I Iconify off
- + I Focus
- + I Raise
- Key Tab A M Next (CurrentPage, !Sticky) FocusRaiseAndStuff
- # Close Window. Modified to Alt-F4
- Key F4 A M Close
- # Maximise, Vert&Horiz. Modified - Alt-F10
- Key F10 A M Maximize 100 100
- # The same here as Minimize...
- Key F9 A M Iconify
- # Move Window with Arrows
- Key Right A SM PointerWindow Move w+1 w+0 Warp
- Key Left A SM PointerWindow Move w-1 w+0 Warp
- Key Up A SM PointerWindow Move w+0 w-1 Warp
- Key Down A SM PointerWindow Move w+0 w+1 Warp
- # Resize Window with Arrows
- Key Right A CM PointerWindow Resize br w+1 w+0
- Key Left A CM PointerWindow Resize br w-1 w+0
- Key Up A CM PointerWindow Resize br w+0 w-1
- Key Down A CM PointerWindow Resize br w+0 w+2
- # Change to Desktop/Workspace N
- Key 0 A 4 GotoDesk 0 0
- Key 1 A 4 GotoDesk 0 1
- Key 2 A 4 GotoDesk 0 2
- Key 3 A 4 GotoDesk 0 3
- Key 4 A 4 GotoDesk 0 4
- Key 5 A 4 GotoDesk 0 5
- Key 6 A 4 GotoDesk 0 6
- Key 7 A 4 GotoDesk 0 7
- Key 8 A 4 GotoDesk 0 8
- Key 9 A 4 GotoDesk 0 9
- # Move Current Window to Desktop/Workspace N
- Key 0 A S4 Current MoveToDesk 0 0
- Key 1 A S4 Current MoveToDesk 0 1
- Key 2 A S4 Current MoveToDesk 0 2
- Key 3 A S4 Current MoveToDesk 0 3
- Key 4 A S4 Current MoveToDesk 0 4
- Key 5 A S4 Current MoveToDesk 0 5
- Key 6 A S4 Current MoveToDesk 0 6
- Key 7 A S4 Current MoveToDesk 0 7
- Key 8 A S4 Current MoveToDesk 0 8
- Key 9 A S4 Current MoveToDesk 0 9
- # Move Left/Right to Desktop/Workspace - Using the Super key
- Key Left A 4 GotoDesk -1 0 9
- Key Right A 4 GotoDesk 1 0 9
- # Move Left/Right to Desktop/Workspace - Using the Mouse-Wheel
- Mouse 4 R A GotoDesk -1 0 9
- Mouse 5 R A GotoDesk 1 0 9
- # Move Left/Right to Desktop/Workspace - Using the Alt key
- Key Left A M GotoDesk -1 0 9
- Key Right A M GotoDesk 1 0 9
- # Use Super-Shift-[0-9] to move the current window to the next/prev desktop
- DestroyFunc MoveToNextWorkspace
- AddToFunc MoveToNextWorkspace
- + I Current MoveToDesk 1 0 9
- + I GotoDesk 1 0 9
- DestroyFunc MoveToPrevWorkspace
- AddToFunc MoveToPrevWorkspace
- + I Current MoveToDesk -1 0 9
- + I GotoDesk -1 0 9
- Key Right A S4 MoveToNextWorkspace
- Key Left A S4 MoveToPrevWorkspace
- Key G A 4 Exec gmrun
- Key S A 4 Exec exec $HOME/bin/toggle_dzen.sh
- ## menu styles
- Colorset 00 fg white, bg #69768B
- Colorset 02 fg #C0C0C0, bg #8D97AF
- MenuStyle * Hilight3DThin, Animation, PopupOffset 0 100
- MenuStyle * Font "xft:Liberation Sans:style=Regular:pixelsize=16"
- MenuStyle * TitleFont "xft:Liberation Sans:style=Bold:pixelsize=16"
- MenuStyle * MenuColorset 00, ActiveColorset 01, HilightBack
- MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong
- MenuStyle * TrianglesSolid, ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
- Read /etc/X11/fvwm/menudefs.hook
- ## main menu
- DestroyMenu "Mainmenu"
- AddToMenu "Mainmenu" "Main Menu" Title
- + "XTerm" Exec exec xterm
- + "Links 2" Exec exec links2 -g
- + "Krusader" Exec exec krusader
- + "" Nop
- + "Debian Menu" Popup /Debian
- + "" Nop
- + "Identify" Pick Module FvwmIdent
- + "" Nop
- + "FvwmConsole" Module FvwmConsole -terminal urxvt -geometry 60x18 -name FvwmConsole
- + "" Nop
- + "Restart Fvwm" Restart
- + "Quit Fvwm" Quit
- + "" Nop
- + "Reboot" Exec exec sudo /sbin/reboot
- + "Halt" Exec exec sudo /sbin/halt
- ## window operations menu
- DestroyMenu MenuFvwmWindowOps
- AddToMenu MenuFvwmWindowOps
- + "Move To Desk" Popup MenuDeskList
- + "" Nop
- + "Shade/Unshade" Pick WindowShade Toggle
- + "Iconify" Pick Iconify
- + "Maximize" Pick Maximize-Plus
- + "" Nop
- + "Raise/Lower" Pick RaiseLower
- + "Stick/Unstick" Pick Stick
- + "" Nop
- + "Identify" Pick Module FvwmIdent
- + "" Nop
- + "Close" Pick Close
- + "Destroy" Pick Destroy
- ## move to desk menu
- DestroyMenu MenuDeskList
- AddToMenu MenuDeskList
- + " Desk 0" Pick MoveToDesk 0 0
- + " Desk 1" Pick MoveToDesk 0 1
- + " Desk 2" Pick MoveToDesk 0 2
- + " Desk 3" Pick MoveToDesk 0 3
- + " Desk 4" Pick MoveToDesk 0 4
- + " Desk 5" Pick MoveToDesk 0 5
- + " Desk 6" Pick MoveToDesk 0 6
- + " Desk 7" Pick MoveToDesk 0 7
- + " Desk 8" Pick MoveToDesk 0 8
- + " Desk 9" Pick MoveToDesk 0 9
- Style gmrun PositionPlacement Center
- Style Firefox StartsOnDesk 5
- Style leafpad StartsOnDesk 1
- Style xclock StartsOnDesk 1
- #########################################
- # THE START-FUNCTION - MAIN DECLARATION #
- #########################################
- AddToFunc StartFunction
- + I Exec exec clipit -n
- + I Exec exec sh -c " $HOME/bin/tmuxer_1.sh tmux1 && urxvt -title tmux1 -e tmux attach -t tmux1 "
- + I Exec exec $HOME/dzenconky/dzen2.pl
- + I Schedule 10500 12003 Exec exec $HOME/bin/desktop_start_1.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement