/ .fvwmrc
.fvwmrc
1 ModulePath /usr/X11R6/lib/X11/fvwm 2 PixmapPath /usr/X11R6/include/X11/pixmaps 3 IconPath /usr/X11R6/include/X11/bitmaps 4 5 EdgeResistance 250 10 6 EdgeScroll 100 100 7 ClickTime 750 8 9 WindowFont -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 10 IconFont -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 11 MenuStyle #000000 #ffffea #dedeff -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 fvwm 12 13 DeskTopSize 2x2 14 15 ColormapFocus FollowsFocus 16 17 AddToDecor flatness 18 + ButtonStyle All ActiveUp (-- flat) Inactive (-- flat) 19 + TitleStyle -- flat 20 + BorderStyle -- HiddenHandles NoInset 21 + WindowFont -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 22 23 # Default styles 24 Style "*" UseDecor flatness 25 Style "*" BorderWidth 4, HandleWidth 4 26 Style "*" Icon unknown1.xpm, Color Grey30 27 Style "*" MWMFunctions, MWMDecor, HintOverride 28 Style "*" DecorateTransient, NoPPosition 29 Style "*" IconBox -71 1 -1 -140 30 Style "*" ClickToFocus 31 Style "*" RandomPlacement, SmartPlacement 32 Style "*" Color White/Gray30 33 34 Style "Fvwm*" NoTitle, Sticky, WindowListSkip 35 Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip 36 Style "FvwmButtons" StaysOnTop, Icon toolbox.xpm 37 38 # Styles for various common programs: 39 Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip 40 Style "xconsole" Icon rterm.xpm, WindowListSkip, Sticky, IconBox 0 -10 -280 -1 41 42 # some simple default mouse bindings: 43 # for the root window: 44 Mouse 1 R A Menu RootMenu Nop 45 Mouse 2 R A Menu Window-Ops Nop 46 Mouse 3 R A WindowList 47 48 # for the title bar buttons: 49 Mouse 0 1 A Menu Window-Ops2 Close 50 Mouse 0 2 A Maximize-Func 51 Mouse 0 4 A Iconify 52 53 # for other parts of the window/borders/icons: 54 Mouse 1 F A Resize-or-Raise 55 Mouse 1 TS A Move-or-Raise 56 Mouse 1 I A Move-or-Iconify 57 Mouse 2 I A Iconify 58 Mouse 2 FST A Menu Window-Ops2 Nop 59 Mouse 3 TSIF A RaiseLower 60 61 ######################## Initialization Functions ############################ 62 AddToFunc "InitFunction" "I" Module FvwmButtons 63 + "I" Next [!iconic CurrentScreen xterm] Focus 64 + "I" Exec /usr/X11R6/bin/xidle -delay 5 -program "/usr/X11R6/bin/xlock" -timeout 300 65 + "I" Exec /usr/X11R6/bin/xcompmgr 66 + "I" Exec /usr/local/bin/hsetroot -center ~/.background.png 67 AddToFunc "RestartFunction" "I" Module FvwmButtons 68 + "I" Next [!iconic CurrentScreen xterm] Focus 69 70 ######################## Menus ################### 71 AddToMenu BacklightMenu "Backlight Control" Title 72 + "Backlight 100%%" exec xbacklight -set 100 73 + "Backlight 90%%" exec xbacklight -set 90 74 + "Backlight 80%%" exec xbacklight -set 80 75 + "Backlight 70%%" exec xbacklight -set 70 76 + "Backlight 60%%" exec xbacklight -set 60 77 + "Backlight 50%%" exec xbacklight -set 50 78 + "Backlight 40%%" exec xbacklight -set 40 79 + "Backlight 30%%" exec xbacklight -set 30 80 + "Backlight 20%%" exec xbacklight -set 20 81 + "Backlight 10%%" exec xbacklight -set 10 82 83 AddToMenu VolumeMenu "Volume Control" Title 84 + "Volume 100%%" exec mixerctl -q outputs.master=255 85 + "Volume 90%%" exec mixerctl -q outputs.master=230 86 + "Volume 80%%" exec mixerctl -q outputs.master=205 87 + "Volume 70%%" exec mixerctl -q outputs.master=180 88 + "Volume 60%%" exec mixerctl -q outputs.master=155 89 + "Volume 50%%" exec mixerctl -q outputs.master=130 90 + "Volume 40%%" exec mixerctl -q outputs.master=105 91 + "Volume 30%%" exec mixerctl -q outputs.master=80 92 + "Volume 20%%" exec mixerctl -q outputs.master=55 93 + "Volume 10%%" exec mixerctl -q outputs.master=20 94 + "Volume 0%%" exec mixerctl -q outputs.master=0 95 96 AddToMenu IDEMenu "IDEs" Title 97 + "Emacs" exec /usr/local/bin/emacs 98 + "GoLand" exec /usr/local/bin/goland 99 + "IntelliJ" exec /usr/local/bin/intellij 100 101 AddToMenu RootMenu "Root Menu" Title 102 + "XTerm" Exec exec /usr/X11R6/bin/xterm 103 + "Browser" Exec exec chrome 104 + "Emacs" Exec exec /usr/local/bin/emacs 105 + "" Nop 106 + "IDEs" Popup IDEMenu 107 + "" Nop 108 + "Tile" Module FvwmRearrange -tile -mn 2 5 5 95 95 109 + "Tile Full" Module FvwmRearrange -tile -mn 2 3 3 97 97 110 + "Cascade" Module FvwmRearrange -cascade -resize 5 5 90 90 111 + "" Nop 112 + "Volume Control" Popup VolumeMenu 113 + "Backlight Control" Popup BacklightMenu 114 + "" Nop 115 + "Identify" Module FvwmIdent 116 + "" Nop 117 + "Restart Fvwm" Restart fvwm 118 + "" Nop 119 + "Lock Screen" Exec exec xlock 120 + "" Nop 121 + "Exit" Module FvwmForm QuitVerify 122 123 AddToMenu Window-Ops "Window Ops" Title 124 + "Move" Move 125 + "Resize" Resize 126 + "Raise" Raise 127 + "Lower" Lower 128 + "(De)Iconify" Iconify 129 + "(Un)Stick" Stick 130 + "(Un)Maximize" Maximize 131 + "" Nop 132 + "Delete" Delete 133 + "Close" Close 134 + "Destroy" Destroy 135 136 AddToMenu Window-Ops2 "&Move" Move 137 + "&Resize" Resize 138 + "R&aise" Raise 139 + "&Lower" Lower 140 + "(De)&Iconify" Iconify 141 + "(Un)&Stick" Stick 142 + "(Un)Ma&ximize" Maximize 143 + "" Nop 144 + "&Delete" Delete 145 + "&Close" Close 146 + "Destroy" Destroy 147 148 ######################## Sample Functions ########################## 149 150 AddToFunc Move-or-Raise "I" Raise 151 + "M" Move 152 + "D" Lower 153 154 AddToFunc Move-or-Raise2 "M" Raise 155 + "M" Move 156 + "D" Lower 157 158 AddToFunc Maximize-Func "M" Maximize 0 100 159 + "C" Maximize 0 80 160 + "D" Maximize 100 100 161 162 AddToFunc Move-or-Iconify "I" Raise 163 + "M" Move 164 + "D" Iconify 165 166 AddToFunc Resize-or-Raise "I" Raise 167 + "M" Resize 168 + "D" Lower 169 170 AddToFunc Resize-or-Raise2 "M" Raise 171 + "M" Resize 172 + "D" Lower 173 174 ############################################################################ 175 # Now some keyboard shortcuts. 176 177 Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L 178 Key Return A MC Exec /usr/X11R6/bin/xterm 179 Key R A M Exec exec /usr/local/bin/rofi -show run 180 Key T A M Module FvwmRearrange -tile -mn 2 5 5 95 95 181 182 ################## FvwmButtons button-bar ################################ 183 *FvwmButtonsGeometry 300x50-0-0 184 *FvwmButtonsRows 1 185 *FvwmButtons(Swallow XClock 'Exec xclock -padding 0 -fg white -bg Gray30 -d -render -strftime "%H:%M" &') 186 *FvwmButtons(Swallow xbatt 'Exec /usr/local/bin/xbatt &') 187 *FvwmButtons(Swallow stalonetray 'Exec /usr/local/bin/stalonetray --geometry 3x3+0-0 &') 188 *FvwmButtons(Swallow(UseOld,NoKill) "xload" `Exec xload -title xload -fg White -bg Gray30 -update 3 -nolabel &`) 189 *FvwmButtons(1x1 Frame 0 Swallow(UseOld) "FvwmPager" "Module FvwmPager 0 0") 190 191 ########################## Window-Identifier ############################### 192 # Just choose colors and a fonts 193 *FvwmIdentBack #ffffea 194 *FvwmIdentFore black 195 196 ########################### Pager ######################################### 197 *FvwmPagerBack Gray30 198 *FvwmPagerFore White 199 *FvwmPagerHilight DimGray 200 *FvwmPagerGeometry 128x96-1-1 201 202 ##########################FvwmWinList################################## 203 *FvwmWinListBack #908090 204 *FvwmWinListFore Black 205 *FvwmWinListAction Click1 Iconify -1,Focus 206 *FvwmWinListAction Click2 Iconify 207 *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent 208 *FvwmWinListUseSkipList 209 *FvwmWinListGeometry +0-1 210 211 *FvwmBackerDesk 0 -solid Grey30 212 *FvwmBackerDesk 1 -solid Grey50 213 214 *QuitVerifyLine center 215 *QuitVerifyText "Do you really want to exit FVWM?" 216 *QuitVerifyLine expand 217 *QuitVerifyButton quit " Exit " 218 *QuitVerifyCommand Quit 219 *QuitVerifyButton quit "Cancel" 220 *QuitVerifyCommand Nop 221