dotconf/.fvwmrc

380 lines
13 KiB
Plaintext

ModulePath /usr/X11R6/lib/X11/fvwm
PixmapPath /usr/X11R6/include/X11/pixmaps
IconPath /usr/X11R6/include/X11/bitmaps
EdgeResistance 250 10
EdgeScroll 100 100
ClickTime 750
WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
MenuStyle #000000 #ffffea #dedeff -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* fvwm
DeskTopSize 2x2
ColormapFocus FollowsFocus
# Default styles
Style "*" BorderWidth 4, HandleWidth 4
Style "*" Icon unknown1.xpm, Color Grey30
Style "*" MWMFunctions, MWMDecor, HintOverride
Style "*" DecorateTransient, NoPPosition
Style "*" IconBox -71 1 -1 -140
Style "*" ClickToFocus
Style "*" RandomPlacement, SmartPlacement
Style "*" Color White/Gray30
Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip
Style "FvwmButtons" StaysOnTop Icon toolbox.xpm, ClickToFocus
# Styles for your common terminal emulator programs:
AddToDecor terms
+ ButtonStyle 1 Pixmap mini.xterm.xpm
Style "XTerm" UseDecor terms
Style "XTerm" Icon xterm.xpm, ClickToFocus
# Styles for various common programs:
Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus
Style "xconsole" Icon rterm.xpm, WindowListSkip, Sticky, IconBox 0 -10 -280 -1
# some simple default key bindings:
#Key Next A SCM Next [*] Focus
#Key Prior A SCM Prev [*] Focus
# some simple default mouse bindings:
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
# for the title bar buttons:
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 2 A Maximize-Func
Mouse 0 4 A Iconify
# for other parts of the window/borders/icons:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
######################## Initialization Functions ############################
AddToFunc "InitFunction" "I" Module FvwmButtons
+ "I" Next [!iconic CurrentScreen xterm] Focus
+ "I" Exec /usr/X11R6/bin/xidle -delay 5 -program "/usr/X11R6/bin/xlock" -timeout 300
+ "I" Exec /usr/X11R6/bin/xcompmgr
+ "I" Exec /usr/local/bin/hsetroot -center ~/.background.png
AddToFunc "RestartFunction" "I" Module FvwmButtons
+ "I" Next [!iconic CurrentScreen xterm] Focus
######################## Menus ###################
AddToMenu BacklightMenu "Backlight Control" Title
+ "Backlight 100%%" exec xbacklight -set 100
+ "Backlight 90%%" exec xbacklight -set 90
+ "Backlight 80%%" exec xbacklight -set 80
+ "Backlight 70%%" exec xbacklight -set 70
+ "Backlight 60%%" exec xbacklight -set 60
+ "Backlight 50%%" exec xbacklight -set 50
+ "Backlight 40%%" exec xbacklight -set 40
+ "Backlight 30%%" exec xbacklight -set 30
+ "Backlight 20%%" exec xbacklight -set 20
+ "Backlight 10%%" exec xbacklight -set 10
AddToMenu VolumeMenu "Volume Control" Title
+ "Volume 100%%" exec mixerctl -q outputs.master=255
+ "Volume 90%%" exec mixerctl -q outputs.master=230
+ "Volume 80%%" exec mixerctl -q outputs.master=205
+ "Volume 70%%" exec mixerctl -q outputs.master=180
+ "Volume 60%%" exec mixerctl -q outputs.master=155
+ "Volume 50%%" exec mixerctl -q outputs.master=130
+ "Volume 40%%" exec mixerctl -q outputs.master=105
+ "Volume 30%%" exec mixerctl -q outputs.master=80
+ "Volume 20%%" exec mixerctl -q outputs.master=55
+ "Volume 10%%" exec mixerctl -q outputs.master=20
+ "Volume 0%%" exec mixerctl -q outputs.master=0
AddToMenu RootMenu "Root Menu" Title
+ "XTerm" Exec exec xterm
+ "Browser" Exec exec chrome
+ "Calculator" Exec exec xcalc
+ "Emacs" Exec exec emacs
+ "" Nop
+ "Tile" Module FvwmRearrange -tile -mn 2 5 5 95 95
+ "Tile Full" Module FvwmRearrange -tile -mn 2 1 1 99 99
+ "Cascade" Module FvwmRearrange -cascade -resize 10 2 80 70
+ "" Nop
+ "Volume Control" Popup VolumeMenu
+ "Backlight Control" Popup BacklightMenu
+ "" Nop
+ "Fvwm Modules" Popup Module-Popup
+ "Fvwm Window Ops" Popup Window-Ops
+ "Fvwm Simple Config Ops" Popup Misc-Ops
+ "" Nop
+ "Refresh Screen" Refresh
+ "Recapture Screen" Recapture
+ "Restart Fvwm" Restart fvwm
+ "" Nop
+ "Lock Screen" Exec exec xlock
+ "" Nop
+ "Exit" Module FvwmForm QuitVerify
AddToMenu Misc-Ops "Misc Config Opts" Title
+ "Sloppy Focus" ChangeDefaultFocus SloppyFocus
+ "Click To Focus" ChangeDefaultFocus ClickToFocus
+ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse
+ "" Nop
+ "Colormap Follows Mouse" ColormapFocus FollowsMouse
+ "Colormap Follows Focus" ColormapFocus FollowsFocus
+ "" Nop
+ "Full Paging ON" EdgeScroll 100 100
+ "All Paging OFF" EdgeScroll 0 0
+ "Horizontal Paging Only" EdgeScroll 100 0
+ "Vertical Paging Only" EdgeScroll 0 100
+ "Partial Paging" EdgeScroll 50 50
+ "Full Paging && Edge Wrap" EdgeScroll 100000 100000
AddToMenu Window-Ops "Window Ops" Title
+ "Move%mini.move.xpm%" Move
+ "Resize%mini.resize.xpm%" Resize
+ "Raise%mini.raise.xpm%" Raise
+ "Lower%mini.lower.xpm%" Lower
+ "(De)Iconify%mini.iconify.xpm%" Iconify
+ "(Un)Stick%mini.stick2.xpm%" Stick
+ "(Un)Maximize%mini.maximize.xpm%" Maximize
+ "" Nop
+ "Delete%mini.excl.xpm%" Delete
+ "Close%mini.cut.xpm%" Close
+ "Destroy%mini.destroy.xpm%" Destroy
+ "" Nop
+ "Refresh Window%mini.refresh.xpm%" RefreshWindow
AddToMenu Window-Ops2 "&Move%mini.move.xpm%" Move
+ "&Resize%mini.resize.xpm%" Resize
+ "R&aise%mini.raise.xpm%" Raise
+ "&Lower%mini.lower.xpm%" Lower
+ "(De)&Iconify%mini.iconify.xpm%" Iconify
+ "(Un)&Stick%mini.stick2.xpm%" Stick
+ "(Un)Ma&ximize%mini.maximize.xpm%" Maximize
+ "" Nop
+ "&Delete%mini.excl.xpm%" Delete
+ "&Close%mini.cut.xpm%" Close
+ "Destroy%mini.destroy.xpm%" Destroy
+ "" Nop
+ "ScrollBar" Module FvwmScroll 2 2
+ "Print" PrintFunction
#+ "Print Reverse" PrintReverseFunction
AddToMenu Module-Popup "FvwmModules" Title
+ "Identify" Module FvwmIdent
+ "Talk" Module FvwmTalk
+ "" Nop
+ "Button-Bar" Module FvwmButtons
+ "Pager" Module FvwmPager 0 0
+ "Pager (2 desks)" Module FvwmPager 0 1
+ "WinList" Module FvwmWinList
+ "" Nop
+ "Banner" Module FvwmBanner
+ "ScrollBar" Module FvwmScroll 50 50
+ "Background" Module FvwmBacker
+ "AutoRaise" Module FvwmAuto 200 Raise Nop
+ "Stop AutoRaise" KillModule FvwmAuto
+ "" Nop
+ "IconMan" Module FvwmIconMan
######################## Sample Functions ##########################
AddToFunc MailFunction "I" Next [$0] Iconify -1
+ "I" Next [$0] Focus
+ "I" None [$0] Exec $0 $1
AddToFunc Move-or-Raise "I" Raise
+ "M" Move
+ "D" Lower
AddToFunc Move-or-Raise2 "M" Raise
+ "M" Move
+ "D" Lower
AddToFunc Maximize-Func "M" Maximize 0 100
+ "C" Maximize 0 80
+ "D" Maximize 100 100
AddToFunc Move-or-Iconify "I" Raise
+ "M" Move
+ "D" Iconify
AddToFunc Resize-or-Raise "I" Raise
+ "M" Resize
+ "D" Lower
AddToFunc Resize-or-Raise2 "M" Raise
+ "M" Resize
+ "D" Lower
AddToFunc PrintFunction "I" Raise
+ "I" Exec xdpr -id $w
AddToFunc PrintReverseFunction "I" Raise
+ "I" Exec xdpr 1/2 -h -rv -id $w
AddToFunc Iconify-and-Raise "I" Iconify
+ "I" Raise
AddToFunc FocusAndWarp "I" Focus
+ "I" WarpToWindow 2p 2p
AddToFunc DeiconifyFocusAndWarp "I" Iconify -1
+ "I" FocusAndWarp
AddToFunc ChangeDefaultFocus "I" Style "*" $0
+ "I" Recapture
############################################################################
# Now some keyboard shortcuts.
Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
Key Return A MC Exec /usr/X11R6/bin/xterm
# press shift arrow + control anywhere, and move the pointer by 1% of a page
Key Left A SC CursorMove -1 0
Key Right A SC CursorMove +1 +0
Key Up A SC CursorMove +0 -1
Key Down A SC CursorMove +0 +1
# press shift arrow + meta key, and move the pointer by 1/10 of a page
Key Left A SM CursorMove -10 +0
Key Right A SM CursorMove +10 +0
Key Up A SM CursorMove +0 -10
Key Down A SM CursorMove +0 +10
# Keyboard accelerators
Key F1 A M Menu RootMenu
Key F2 A M Menu Window-Ops
Key F3 A M WindowList FvwmWinList
Key F4 A M Iconify
Key F5 A M Move
Key F6 A M Resize
Key F7 A M CirculateUp
Key F8 A M CirculateDown
Key R A M Exec exec /usr/local/bin/rofi -show run
#Page Up/Page Down keys are used to scroll by one desktop page
# in any context, press page up/down + control
# in root context, just pressing page up/down is OK
#
# I prefer the non-wrapping scroll. These are for example purposes only
#Key Next A C Scroll 100000 0
#Key Next R N Scroll 100000 0
#Key Prior A C Scroll -100000 0
#Key Prior R N Scroll -100000 0
################## FvwmButtons button-bar ################################
*FvwmButtonsGeometry 300x50-0-0
*FvwmButtonsRows 1
*FvwmButtons(Swallow XClock 'Exec xclock -padding 0 -fg white -bg Gray30 -d -render -strftime "%H:%M" &')
*FvwmButtons(Swallow trayer 'Exec /usr/local/bin/trayer --width 50 --widthtype pixel --height 50 --heighttype pixel --transparent true &')
*FvwmButtons(Swallow xbatt 'Exec /usr/local/bin/xbatt &')
*FvwmButtons(Swallow(UseOld,NoKill) "xload" `Exec xload -title xload -fg White -bg Gray30 -update 3 -nolabel &`)
*FvwmButtons(1x1 Frame 0 Swallow(UseOld) "FvwmPager" "Module FvwmPager 0 0")
########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont "-*-helvetica-medium-r-*-*-12-*"
########################### Pager #########################################
*FvwmPagerFont none
*FvwmPagerSmallFont "-*-ubuntu mono-medium-*-*-*-12-*-*-*-*-*-*-*"
*FvwmPagerBack Gray30
*FvwmPagerFore Black
*FvwmPagerHilight DimGray
*FvwmPagerGeometry 128x96-1-1
##########################FvwmWinList##################################
*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont "xft:Ubuntu Mono:Medium:Roman:size=10:encoding=iso8859-1"
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1
*FvwmBackerDesk 0 -solid Grey30
*FvwmBackerDesk 1 -solid Grey50
*FvwmScrollBack grey40
*FvwmScrollFore green
############################################################
############################################################
# Note that icons are shown in the module
# only if NoIcon commnand is applied.
#Style "*" NoIcon
############################################################
*FvwmIconBoxIconBack #cfcfcf
*FvwmIconBoxIconHiFore black
*FvwmIconBoxIconHiBack LightSkyBlue
*FvwmIconBoxBack #5f9ea0
#*FvwmIconBoxFore blue
*FvwmIconBoxGeometry 5x1+0+0
*FvwmIconBoxMaxIconSize 64x38
*FvwmIconBoxFont "-*-ubuntu mono-medium-*-*-*-12-*-*-*-*-*-*-*"
*FvwmIconBoxSortIcons IconName
*FvwmIconBoxPadding 4
*FvwmIconBoxLines 10
*FvwmIconBoxSBWidth 11
*FvwmIconBoxPlacement Left Top
*FvwmIconBoxPixmap fvwm.xpm
#*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxSetWMIconSize
*FvwmIconBoxHilightFocusWin
#*FvwmIconBoxResolution Desk
*FvwmIconBoxMouse 1 Click RaiseLower
*FvwmIconBoxMouse 1 DoubleClick Iconify
*FvwmIconBoxMouse 2 Click Iconify -1, Focus
*FvwmIconBoxMouse 3 Click Module FvwmIdent
*FvwmIconBoxKey r RaiseLower
*FvwmIconBoxKey space Iconify
*FvwmIconBoxKey d Close
*FvwmIconBoxKey n Next
*FvwmIconBoxKey p Prev
*FvwmIconBoxKey h Left
*FvwmIconBoxKey j Down
*FvwmIconBoxKey k Up
*FvwmIconBoxKey l Right
#
# Icon file specifications
#
# Mostly, you don't have to specify icon files, as FvwmIconBox now
# reads icon files specified in Style commands.
#
*FvwmIconBox "Fvwm*" -
# FvwmForm alias - query exit ala mwm
*QuitVerifyFont *helvetica*m*r*n*14*
*QuitVerifyFont "-*-ubuntu mono-medium-*-*-*-14-*-*-*-*-*-*-*"
*QuitVerifyButtonFont 7x13bold
*QuitVerifyFore Black
*QuitVerifyBack Light Gray
*QuitVerifyItemFore Wheat
*QuitVerifyItemBack Gray50
# begin items
*QuitVerifyLine center
*QuitVerifyText "Do you really want to exit FVWM?"
*QuitVerifyLine expand
*QuitVerifyButton quit " Exit "
*QuitVerifyCommand Quit
*QuitVerifyButton quit "Cancel"
*QuitVerifyCommand Nop