Advertisement
devinteske

My ~/.fvwm2rc file

Dec 13th, 2012
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.21 KB | None | 0 0
  1. ##########################################################################
  2. #
  3. # $Header: /cvsroot/druidbsd/home/fvwm2rc,v 1.7 2016/06/21 00:03:48 devinteske Exp $
  4. #
  5. ##########################################################################
  6. # ____________________________
  7. # ( _________________________) Last Modified:
  8. # ) (__ _ _ _ _ June 20, 2016
  9. # ( __)( \/ )( \/\/ )/\/\
  10. # ) ( \ / \ // \ Version: 5.4
  11. # (___) \/ \/\/(_/\/\_)
  12. #
  13. ####################### Configuration by Devin Teske for FreeBSD/Linux ###
  14. # /usr/env1/static_data/fvwm2/.fvwm2rc modified in following ways (in order):
  15. # - Enable 3x3 Virtual Desktops
  16. # - Enable SloppyFocus
  17. # - Enable FvwmPager
  18. ####################### Configuration
  19. # /usr/env1/static_data/fvwm2/.fvwm2rc
  20. #
  21. # The following 3rd-party softwares are detected and used if available...
  22. #
  23. # x11-wm/compton (or x11-wm/xcompmgr)
  24. # - Provides transparency and drop shadows
  25. # - [compton only] Provides translucent menus
  26. #
  27. # x11-wm/transset
  28. # - Provides opacity menu support for changing window transparency
  29. #
  30. # x11/setxkbmap
  31. # - Required to enable Ctrl-Alt-Backspace feature to kill X11 server
  32. #
  33. # graphics/hsetroot
  34. # - Required to set the desktop if/when using compton or xcompmgr
  35. # - Provides support for a wider range of wallpaper media
  36. # - Provides ability to automatically scale wallpaper to fill screen
  37. #
  38. # graphics/ImageMagick
  39. # - Provides Screenshot and Window Screenshot functionality from menu
  40. #
  41. # sysutils/conky
  42. # - Provides system information integrated into the desktop wallpaper
  43. #
  44. # x11/xbindkeys
  45. # - Provides media key (e.g., volume up/down) functionality for laptops
  46. #
  47. ##########################################################################
  48. #
  49. # The following items effect the Taskbar Main Menu. If installed, additional
  50. # items are displayed...
  51. #
  52. # x11/xterm - XTerm
  53. # x11-fm/nautilus - Nautilus File Manager
  54. # www/firefox - Firefox Web Browser
  55. # mail/evolution - Evolution E-Mail Client
  56. # graphics/gimp - Gimp Photo Editor
  57. # security/sudo
  58. # x11/xdialog - bsdconfig
  59. # x11/xautolock - Lock Screen
  60. #
  61. ##########################################################################
  62. #
  63. # Dynamically determine if we are part of an environment by checking the user's
  64. # login shell. If the user's shell does not exist within some environment,
  65. # search for a usable environment to pull theme-files from.
  66. #
  67. PipeRead '\
  68. has_environment=""; \
  69. fvwm_home="${HOME}"; \
  70. env_fvwm2="static_data/fvwm2"; \
  71. env_theme="${env_fvwm2}/theme"; \
  72. env_home=$( echo ${SHELL} | \
  73. sed -e \'s#\\(^.*/usr/env[0-9][0-9]*\\).*#\\1#\' ); \
  74. if [ "${env_home}" != "${SHELL}" ]; then \
  75. has_environment=1; \
  76. fvwm_home=${env_home}/${env_fvwm2}; \
  77. else \
  78. env_home="${HOME}"; \
  79. env=0; n=${env}; \
  80. while [ ${n} -lt 99 ]; do \
  81. n=$(( ${n} + 1 )); \
  82. [ -d "/usr/env${n}/${env_theme}" ] || continue; \
  83. env=${n}; \
  84. break; \
  85. done; \
  86. if [ ${env} -gt 0 ]; then \
  87. env_home=/usr/env${env}; \
  88. fvwm_home=${env_home}/${env_fvwm2}; \
  89. fi; \
  90. fi; \
  91. for v in has_environment env_home fvwm_home; do \
  92. eval s=\\"\\${${v}}\\"; \
  93. echo "SetEnv ${v} \\"${s}\\""; \
  94. done'
  95. #
  96. ########## Set Environment variables
  97. #
  98. # Paths
  99. SetEnv fvwm_theme /usr/local/share/fvwm_theme
  100.  
  101. # Menu heights (in pixels)(for positioning the menu)
  102. SetEnv RootMenuHt 40
  103. SetEnv WindowOpsMenuHt 251
  104. #
  105. ########## Set the image path
  106. #
  107. # Search path for finding images
  108. SetEnv fvwm_search "$[fvwm_theme]:$[fvwm_home]/theme"
  109. ImagePath $[fvwm_search]
  110. #
  111. ########## Virtual Desktops
  112. #
  113. # Virtual desktop dimensions (number of physical screens)
  114. DesktopSize 3x3
  115. EdgeResistance -1
  116. Style * EdgeMoveDelay 100
  117. Style * EdgeMoveResistance 50
  118. # NB: See Keyboard Bindings section for Ctrl+Arrow/Ctrl+1-9 functionality
  119. # NB: See Mouse Bindings section for Ctrl+Alt+Mouse1 functionality
  120. #
  121. ########## Mouse and Focus Behaviour
  122. #
  123. # Mouse click durations in milliseconds
  124. ClickTime 250
  125.  
  126. # Cursor style and features
  127. CursorStyle root top_left_arrow
  128. BusyCursor DynamicMenu True, Read True
  129.  
  130. # Threshold for moving windows in pixels
  131. MoveThreshold 1
  132.  
  133. #
  134. # Focus windows based on mouse position or require a click to focus
  135. #
  136. # NOTE: These are mutually exclusive. If both are enabled, the later
  137. # option takes precedence over the preceding one.
  138. #
  139. #Style * ClickToFocus
  140. Style * SloppyFocus
  141.  
  142. #
  143. # If SloppyFocus is enabled, the below options (if enabled) will cause
  144. # the window to be raised when clicked even if it already has the focus
  145. # from an earlier MouseOver event.
  146. #
  147. Style * MouseFocusClickRaises
  148. Style * ClickToFocusRaises
  149.  
  150. # Focus/Raise a window when clicked
  151. Style * ClickToFocusPassesClick
  152.  
  153. # Cause newly mapped windows to grab the focus
  154. Style * GrabFocus
  155.  
  156. # Ignore Caps-Lock, Num-Lock, and Scroll-Lock as modifier
  157. IgnoreModifiers L25
  158. #
  159. ########## Global Styles and options
  160. #
  161. # Do not iconify minimized windows
  162. # NB: If enabled, FvwmAnimate will have no effect
  163. Style * NoIcon
  164.  
  165. # Intelligently place new windows
  166. Style * TileCascadePlacement
  167. Style * NoPPosition
  168.  
  169. # Set the position of move/resize feedback window
  170. # and manual (rubber-band) window placement bahviour
  171. Emulate Mwm
  172.  
  173. # Always show the move/resize feedback window
  174. HideGeometryWindow Never
  175.  
  176. # Set opaque move/resize actions
  177. Style * ResizeOpaque
  178. OpaqueMoveSize -1
  179.  
  180. # Make windows attract one another while moving/resizing
  181. # NB: Can be turned off realtime by holding Alt during move/resize
  182. Style * SnapAttraction 5 SameType Screen
  183.  
  184. # Move/Resize grid dimensions
  185. # NB: Can be turned off realtime by holding Alt during move/resize
  186. #SnapGrid 3 3
  187.  
  188. # Set rubber-band coloring for when moving/resizing
  189. # NOTE: not really necessary since we use opaque move/resize
  190. XorValue 55555
  191.  
  192. # Windows appear only on parent page of virtual desktop
  193. Style * SlipperyIcon
  194.  
  195. # Non-Transient windows have a title bar (at top of window)
  196. Style * IconTitle, TitleAtTop
  197.  
  198. # Transient window styles
  199. #Style * DecorateTransient
  200. #Style * DontLowerTransient, StackTransientParent
  201.  
  202. # Set the default mini-icon for all windows
  203. Style * MiniIcon mini/vicor.xpm
  204. #
  205. ########## Basic Functions
  206. #
  207. DestroyFunc FvwmMoveOrRaise
  208. AddToFunc FvwmMoveOrRaise
  209. + I Raise
  210. + M Move
  211. + D Maximize 100 100
  212.  
  213. DestroyFunc FvwmMoveOrIconify
  214. AddToFunc FvwmMoveOrIconify
  215. + I Raise
  216. + M Move
  217. + D Iconify
  218.  
  219. DestroyFunc FvwmResizeOrRaise
  220. AddToFunc FvwmResizeOrRaise
  221. + I Raise
  222. + M Resize
  223. + D Lower
  224. #
  225. ########## Program Launching Functions
  226. #
  227. DestroyFunc FvwmTransset
  228. AddToFunc FvwmTransset
  229. + I Exec exec transset $* > /dev/null 2>&1
  230.  
  231. DestroyFunc FvwmTranssetWindow
  232. AddToFunc FvwmTranssetWindow
  233. + I Exec exec transset -i $[w.id] $* > /dev/null 2>&1
  234.  
  235. DestroyFunc FvwmXTerm
  236. AddToFunc FvwmXTerm
  237. PipeRead '\
  238. cmd="/usr/bin/uxterm"; \
  239. [ -x "${cmd}" ] || cmd="/usr/local/bin/uxterm"; \
  240. [ -x "${cmd}" ] || cmd="/usr/X11R6/bin/uxterm"; \
  241. [ -x "${cmd}" ] || cmd="uxterm"; \
  242. [ -x "${cmd}" ] || cmd="/usr/bin/xterm"; \
  243. [ -x "${cmd}" ] || cmd="/usr/local/xterm"; \
  244. [ -x "${cmd}" ] || cmd="/usr/X11R6/bin/xterm"; \
  245. [ -x "${cmd}" ] || cmd="xterm"; \
  246. cmd="${cmd} -sb -sl 400"; \
  247. if [ "$[has_environment]" ]; then \
  248. cmd="${cmd} -e $[env_home]/bin/vicor_xterm_login"; \
  249. else \
  250. cmd="${cmd} -ls -r -si -sk"; \
  251. cmd="${cmd} -fn \\"-misc-fixed-medium-r-*-*-13-*\\""; \
  252. fi; \
  253. echo "+ I Exec exec ${cmd}"
  254. if [ "$( type transset 2> /dev/null )" ]; then \
  255. echo "+ I Exec exec sh -c " \
  256. "\'sleep 0.33; transset -a 0.9 > /dev/null 2>&1\'"; \
  257. fi'
  258.  
  259. DestroyFunc FvwmNautilus
  260. AddToFunc FvwmNautilus
  261. + I Exec exec nautilus
  262.  
  263. DestroyFunc FvwmFireFox
  264. AddToFunc FvwmFireFox
  265. + I Exec exec firefox
  266.  
  267. DestroyFunc FvwmEvolutoin
  268. AddToFunc FvwmEvolution
  269. + I Exec exec evolution
  270.  
  271. DestroyFunc FvwmGimp
  272. AddToFunc FvwmGimp
  273. + I Exec exec gimp --no-shm
  274.  
  275. DestroyFunc FvwmBsdcfg
  276. AddToFunc FvwmBsdcfg
  277. + I Exec exec bsdconfig -X $*
  278. # or, with debugging output in an XTerm (good on slow machines):
  279. # + I Exec exec xterm -e bsdconfig -dX $*
  280.  
  281. DestroyFunc FvwmConsole
  282. AddToFunc FvwmConsole
  283. + I Exec exec xterm -geometry 80x64+200+200 -sb -T "Debug Console" \
  284. -e tail -n100 -f /tmp/xsession.out
  285.  
  286. DestroyFunc FvwmRHS
  287. AddToFunc FvwmRHS
  288. + I Exec exec rids_host_setup -X
  289.  
  290. DestroyFunc FvwmXLock
  291. AddToFunc FvwmXLock
  292. + I Exec exec xautolock -locknow
  293. #
  294. ########## Startup Functions
  295. #
  296. # Name of the background image
  297. SetEnv fvwm_background "wallpaper/active"
  298.  
  299. # Name of compton configuration file
  300. SetEnv fvwm_compton "compton/default.conf"
  301. #SetEnv fvwm_compton "compton/blur.conf"
  302.  
  303. DestroyFunc StartFunction
  304. AddToFunc StartFunction
  305. + I Module FvwmButtons
  306. PipeRead '\
  307. killall compton 2> /dev/null; \
  308. killall xcompmgr 2> /dev/null; \
  309. if [ "$( type compton 2> /dev/null )" ]; then \
  310. for dir in $( echo "$[fvwm_search]" | tr : " " ); do \
  311. [ -f "${dir}/$[fvwm_compton]" ] && \
  312. conf="${dir}/$[fvwm_compton]"; \
  313. done; \
  314. [ "${conf}" ] && \
  315. echo "+ I Exec exec compton --config ${conf}"; \
  316. elif [ "$( type xcompmgr 2> /dev/null )" ]; then \
  317. echo "+ I Exec exec " \
  318. "xcompmgr -cCfF -r8 -t5 -l-11 -o.8 -D6"; \
  319. fi; \
  320. setroot="fvwm-root -r"; \
  321. [ "$( type hsetroot 2> /dev/null )" ] && \
  322. setroot="hsetroot -fill"; \
  323. for dir in $( echo "$[fvwm_search]" | tr : " " ); do \
  324. [ -f "${dir}/$[fvwm_background]" ] && \
  325. bg="${dir}/$[fvwm_background]"; \
  326. done; \
  327. [ "${bg}" ] && echo "+ I Exec exec ${setroot} ${bg}";'
  328. + I Module FvwmPager * *
  329. PipeRead '\
  330. if [ "$( type transset 2> /dev/null )" ]; then \
  331. echo "+ I Exec exec sh -c \'sleep 1;" \
  332. "transset -n \\"Desk *\\" 0.5 > /dev/null 2>&1\'"; \
  333. echo "+ I Exec exec sh -c \'sleep 1;" \
  334. "transset -n \\"FvwmButtons\\" 0.8 > /dev/null 2>&1\'"; \
  335. fi'
  336. # + I Module FvwmAnimate
  337. PipeRead '\
  338. if [ "$( type conky 2> /dev/null )" ]; then \
  339. killall conky 2> /dev/null; \
  340. echo "+ I Exec exec conky -c " \
  341. "$[fvwm_home]/theme/conky/ident.conkyrc"; \
  342. fi'
  343. PipeRead '\
  344. if [ "$( type xbindkeys 2> /dev/null )" ]; then \
  345. echo "+ I Exec exec xbindkeys"; \
  346. fi'
  347.  
  348. DestroyFunc InitFunction
  349. AddToFunc InitFunction
  350. + I Exec exec setxkbmap -option terminate:ctrl_alt_bksp
  351. + I Exec exec nohup xautolock > /dev/null &
  352. + I Nop
  353.  
  354. DestroyFunc RestartFunction
  355. AddToFunc RestartFunction
  356. + I Nop
  357. #
  358. ########## Screenshot Functions (uses ImageMagick)
  359. #
  360. # Note: sleep prevents file clobbering
  361. DestroyFunc FvwmWindowScreenshot
  362. AddToFunc FvwmWindowScreenshot
  363. + I Exec sleep 1; import -window $[w.id] -quality 100 -silent \
  364. "$[HOME]/screenshot-`date +%Y.%m.%d-%H.%M.%S`.jpg"
  365.  
  366. DestroyFunc FvwmDesktopScreenshot
  367. AddToFunc FvwmDesktopScreenshot
  368. + I Exec sleep 2; import -window root -quality 100 -silent \
  369. "$[HOME]/screenshot-`date +%Y.%m.%d-%H.%M.%S`.jpg"
  370. #
  371. ########## Mouse Bindings
  372. #
  373. # Wrapper function to only activate if mouse is released within target
  374. DestroyFunc OnlyIfClick
  375. AddToFunc OnlyIfClick
  376. + "C" $*
  377.  
  378. # Root (desktop) window:
  379. # Button Context Modifi Function
  380. Mouse 1 R A Nop
  381. Mouse 2 R A Menu FvwmWindowOpsMenu
  382. Mouse 3 R A WindowList NoGeometry
  383. Mouse 1 A CM Scroll reverse
  384.  
  385. # Title bar buttons:
  386. # Button Context Modifi Function
  387. Mouse 0 1 A Nop
  388. Mouse 0 6 A OnlyIfClick Iconify
  389. Mouse 0 4 A OnlyIfClick Maximize 100 100
  390. Mouse 0 2 A OnlyIfClick Close
  391.  
  392. # Window frame/sides/icons:
  393. # Button Context Modifi Function
  394. Mouse 1 FS A FvwmResizeOrRaise
  395. Mouse 1 I A FvwmMoveOrIconify
  396. Mouse 1 T A FvwmMoveOrRaise
  397. Mouse 2 I A Iconify
  398. Mouse 2 TSIF A RaiseLower
  399. Mouse 3 FST A Menu FvwmWindowOpsWindowMenu Nop
  400. #
  401. ########## Window Decor
  402. #
  403. DestroyDecor VicorDecor
  404. AddToDecor VicorDecor
  405. + TitleStyle LeftJustified Height 24
  406. + TitleStyle TiledPixmap decor/titlebar-center.png -- Flat
  407. + ButtonStyle 1 TiledPixmap decor/titlebar-left.png -- Flat
  408. + AddButtonStyle 1 MiniIcon -- Flat
  409. + ButtonStyle 2 ActiveUp Pixmap buttons/close-active.png -- Flat
  410. + ButtonStyle 4 ActiveUp Pixmap buttons/maximize-active.png -- Flat
  411. + ButtonStyle 6 ActiveUp Pixmap buttons/minimize-active.png -- Flat
  412. + ButtonStyle 2 ActiveDown Pixmap buttons/close-pressed.png -- Flat
  413. + ButtonStyle 4 ActiveDown Pixmap buttons/maximize-pressed.png -- Flat
  414. + ButtonStyle 6 ActiveDown Pixmap buttons/minimize-pressed.png -- Flat
  415. + ButtonStyle 2 Inactive Pixmap buttons/close-inactive.png -- Flat
  416. + ButtonStyle 4 Inactive Pixmap buttons/maximize-inactive.png -- Flat
  417. + ButtonStyle 6 Inactive Pixmap buttons/minimize-inactive.png -- Flat
  418. # + BorderStyle 1 TiledPixmap decor/border-left.png -- NoInset HiddenHandles
  419. # + TitleStyle LeftJustified Height 26
  420. # + TitleStyle TiledPixmap decor/title.xpm -- Flat
  421. # + ButtonStyle 1 TiledPixmap decor/title.xpm -- Flat
  422. # + AddButtonStyle 1 MiniIcon -- Flat
  423. # + ButtonStyle 2 Pixmap buttons/close.xpm -- Flat
  424. # + ButtonStyle 4 Pixmap buttons/maximize.xpm -- Flat
  425. # + ButtonStyle 6 Pixmap buttons/minimize.xpm -- Flat
  426. # + BorderStyle Simple -- NoInset HiddenHandles
  427. #
  428. ########## Window Styles
  429. #
  430. # Decor setting
  431. Style "*" UseDecor VicorDecor
  432.  
  433. # Font settings
  434. #Style "*" Font "xft:Sans:Bold:size=8:minspace=False:antialias=True"
  435. #Style "*" Font "-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*"
  436. Style "*" Font "xft:YaHei Consolas Hybrid:size=10:encoding=iso8859-1"
  437.  
  438. # Border settings
  439. Style "*" BorderWidth 0, HandleWidth 0
  440. Style "*" MwmBorder, FirmBorder
  441.  
  442. # Color definitions
  443. Style "*" HilightFore #ffffff, HilightBack #0000ff
  444. Style "*" BackColor #0000ff, ForeColor #ffffff
  445.  
  446. # Color settings
  447. Style "*" Colorset 4
  448. Style "*" HilightColorset 3
  449. Style "*" BorderColorset 4
  450. Style "*" HilightBorderColorset 4
  451. #
  452. ########## Program Styles
  453. #
  454. # Program Icons
  455. Style "xterm" MiniIcon mini/xterm.xpm
  456. Style "Firefox-bin" MiniIcon mini/firefox.xpm
  457. Style "evolution" MiniIcon mini/evolution.xpm
  458. Style "Firefox" MiniIcon mini/firefox.xpm
  459. Style "bsdconfig" MiniIcon mini/beastie.xpm
  460.  
  461. # Set maximum window size for the Big-Blue-Button screen
  462. #Style "unixlogin" MaxWindowSize 850p 912p
  463. #Style "unixlogin" BorderWidth 0, HandleWidth 0
  464.  
  465. # Fvwm related tasks (ie., FvwmButtons)
  466. Style "Fvwm*" NoTitle, WindowListSkip, NoHandles, CirculateSkip, \
  467. TitleAtBottom, NeverFocus, BorderWidth 0
  468.  
  469. # Conky related tasks
  470. Style "Conky*" NoTitle, WindowListSkip, NoHandles, CirculateSkip, \
  471. TitleAtBottom, NeverFocus, BorderWidth 0, StaysOnBottom
  472.  
  473. # Give these applications a wider handle for easier resizing
  474. #Style "xterm" HandleWidth 4
  475. #Style "Firefox-bin" HandleWidth 4
  476. #Style "Firefox" HandleWidth 4
  477. #
  478. ########## Colorsets
  479. #
  480. CleanupColorsets
  481. Colorset 1 TiledPixmap decor/Panel_Win2-7Basic1280.png, fg white, \
  482. sh DarkSlateGrey, hi LightGrey, RootTransparent buffer
  483. Colorset 2 bg DarkGrey, fg black, sh DarkSlateGrey, hi LightGrey
  484. Colorset 4 TiledPixmap decor/border-left.png, fg black, sh black, \
  485. hi black, RootTransparent buffer
  486. Colorset 5 RootTransparent buffer
  487. Colorset 11 RootTransparent buffer
  488. Colorset 14 TiledPixmap decor/Panel_Win2-7Basic1280.png, fg DarkSlateGrey, \
  489. sh black, hi black
  490. Colorset 15 TiledPixmap decor/Panel_Win2-7Murrine-AeroBlack.png, \
  491. fg DarkSlateGrey, sh black, hi black
  492. Colorset 16 TiledPixmap decor/Panel_Win2-7Original.png, fg black, sh black, \
  493. hi black
  494. Colorset 17 TiledPixmap decor/Panel_Win2-7Green.png, fg black, sh black, \
  495. hi black
  496. Colorset 18 TiledPixmap decor/Panel_Win2-7Green.png, fg black, sh black, \
  497. hi black
  498. Colorset 22 RootTransparent buffer
  499. # Colorset 1 TiledPixmap decor/taskbar1.xpm, fg white, sh DarkSlateGrey, \
  500. # hi LightGrey
  501. # Colorset 2 bg DarkGrey, fg black, sh DarkSlateGrey, hi LightGrey
  502. # Colorset 3 TiledPixmap decor/taskbar3.xpm, fg black, sh DarkSlateGrey, \
  503. # hi LightGrey
  504. # Colorset 4 TiledPixmap decor/taskbar4.xpm, fg black, sh black, hi black
  505. # Colorset 5 TiledPixmap decor/taskbar5.xpm, fg white
  506. # Colorset 11 TiledPixmap decor/taskbar1.xpm, fg blue, sh DarkSlateGrey, \
  507. # hi LightGrey
  508. # Colorset 22 Pixmap decor/taskbar22.xpm, fg white
  509. #
  510. ########## Menu Styles
  511. #
  512. MenuStyle * Win
  513. Menustyle * font -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*
  514. MenuStyle * MenuFace VGradient 128 2 darkgrey 60 lightgrey 40 white
  515. MenuStyle * Hilightback #0077FF
  516. #
  517. ########## FvwmRootMenu
  518. #
  519. DestroyMenu FvwmRootMenu
  520. AddToMenu FvwmRootMenu
  521. PipeRead '\
  522. if [ "$( type xterm 2> /dev/null )" ]; then \
  523. icon="%mini/xterm.xpm%"; \
  524. echo "+ \\" ${icon}XTerm\\" FvwmXTerm"; \
  525. echo ""; \
  526. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  527. fi'
  528. PipeRead '\
  529. if [ "$( type nautilus 2> /dev/null )" ]; then \
  530. icon="%mini/nautilus.png%"; \
  531. echo "+ \\" ${icon}Nautilus File Manager\\" FvwmNautilus"; \
  532. echo ""; \
  533. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  534. fi'
  535. PipeRead '\
  536. if [ "$( type firefox 2> /dev/null )" ]; then \
  537. icon="%mini/firefox.xpm%"; \
  538. echo "+ \\" ${icon}Firefox Web Browser\\" FvwmFireFox"; \
  539. echo ""; \
  540. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  541. fi'
  542. PipeRead '\
  543. if [ "$( type evolution 2> /dev/null )" ]; then \
  544. icon="%mini/evolution.xpm%"; \
  545. echo "+ \\" ${icon}Evolution Mail Client\\" FvwmEvolution"; \
  546. echo ""; \
  547. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  548. fi'
  549. PipeRead '\
  550. if [ "$( type gimp 2> /dev/null )" ]; then \
  551. icon="%mini/gimp.xpm%"; \
  552. echo "+ \\" ${icon}Gimp Photo Editor\\" FvwmGimp"; \
  553. echo ""; \
  554. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  555. fi'
  556. PipeRead '\
  557. if [ "$( type Xdialog 2> /dev/null )" ] && \
  558. [ "$( id -u )" = "0" -o "$( type sudo 2> /dev/null )" ]; then \
  559. icon="%mini/collapse.xpm%"; \
  560. echo "+ \\" ${icon}bsdconfig\\" Popup FvwmBsdcfgMenu"; \
  561. echo ""; \
  562. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  563. fi'
  564. PipeRead '\
  565. if [ "$( type xautolock 2> /dev/null )" ]; then \
  566. icon="%mini/lock.xpm%"; \
  567. echo "+ \\" ${icon}Lock Screen\\" FvwmXLock"; \
  568. echo ""; \
  569. echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
  570. fi'
  571. PipeRead '\
  572. icon="%menu/tool-quit.xpm%"; \
  573. echo "+ \\"\\" Nop"; \
  574. echo "+ \\" ${icon}Log Out\\" Popup FvwmQuitVerify"; \
  575. echo ""; \
  576. echo "SetEnv RootMenuHt $((${RootMenuHt}+17))";'
  577. #
  578. ########## FvwmBsdcfgMenu
  579. #
  580. DestroyMenu FvwmBsdcfgMenu
  581. AddToMenu FvwmBsdcfgMenu
  582. + " %mini/beastie.xpm%bsdconfig" FvwmBsdcfg
  583. + " %mini/asterisk.xpm%Documentation Installation" FvwmBsdcfg docsinstall
  584. + " %mini/asterisk.xpm%Packages" FvwmBsdcfg packages
  585. + " %mini/asterisk.xpm%Root Password" FvwmBsdcfg password
  586. + " %mini/asterisk.xpm%Disk Management" FvwmBsdcfg diskmgmt
  587. + " %mini/collapse.xpm%Login/Group Management" Popup FvwmBsdcfgLoginmgmtMenu
  588. + " %mini/collapse.xpm%System Console" Popup FvwmBsdcfgConsoleMenu
  589. + " %mini/asterisk.xpm%Timezone" FvwmBsdcfg timezone
  590. + " %mini/collapse.xpm%Mouse" Popup FvwmBsdcfgMouseMenu
  591. + " %mini/collapse.xpm%Network Management" Popup FvwmBsdcfgNetMenu
  592. + " %mini/collapse.xpm%Security" Popup FvwmBsdcfgSecMenu
  593. + " %mini/collapse.xpm%Startup" Popup FvwmBsdcfgStartupMenu
  594. + " %mini/asterisk.xpm%Ttys" FvwmBsdcfg ttys
  595. #
  596. ########## FvwmBsdcfgLoginmgmtMenu
  597. #
  598. DestroyMenu FvwmBsdcfgLoginmgmtMenu
  599. AddToMenu FvwmBsdcfgLoginmgmtMenu
  600. + " %mini/beastie.xpm%bsdconfig usermgmt" FvwmBsdcfg usermgmt
  601. + " %mini/asterisk.xpm%Add Login" FvwmBsdcfg useradd
  602. + " %mini/asterisk.xpm%Edit/View Login" FvwmBsdcfg useredit
  603. + " %mini/asterisk.xpm%Delete Login" FvwmBsdcfg userdel
  604. + "" Nop
  605. + " %mini/beastie.xpm%bsdconfig groupmgmt" FvwmBsdcfg groupmgmt
  606. + " %mini/asterisk.xpm%Add Group" FvwmBsdcfg groupadd
  607. + " %mini/asterisk.xpm%Edit/View Group" FvwmBsdcfg groupedit
  608. + " %mini/asterisk.xpm%Delete Group" FvwmBsdcfg groupdel
  609. #
  610. ########## FvwmBsdcfgConsoleMenu
  611. #
  612. DestroyMenu FvwmBsdcfgConsoleMenu
  613. AddToMenu FvwmBsdcfgConsoleMenu
  614. + " %mini/beastie.xpm%bsdconfig console" FvwmBsdcfg console
  615. + " %mini/asterisk.xpm%Font" FvwmBsdcfg syscons_font
  616. + " %mini/asterisk.xpm%Keymap" FvwmBsdcfg syscons_keymap
  617. + " %mini/asterisk.xpm%Repeat" FvwmBsdcfg syscons_repeat
  618. + " %mini/asterisk.xpm%Saver" FvwmBsdcfg syscons_saver
  619. + " %mini/asterisk.xpm%Screenmap" FvwmBsdcfg syscons_screenmap
  620. + " %mini/asterisk.xpm%Ttys" FvwmBsdcfg syscons_ttys
  621. #
  622. ########## FvwmBsdcfgMouseMenu
  623. #
  624. DestroyMenu FvwmBsdcfgMouseMenu
  625. AddToMenu FvwmBsdcfgMouseMenu
  626. + " %mini/beastie.xpm%bsdconfig mouse" FvwmBsdcfg mouse
  627. + " %mini/asterisk.xpm%Enable" FvwmBsdcfg mouse_enable
  628. + " %mini/asterisk.xpm%Type" FvwmBsdcfg mouse_type
  629. + " %mini/asterisk.xpm%Port" FvwmBsdcfg mouse_port
  630. + " %mini/asterisk.xpm%Flags" FvwmBsdcfg mouse_flags
  631. #
  632. ########## FvwmBsdcfgNetMenu
  633. #
  634. DestroyMenu FvwmBsdcfgNetMenu
  635. AddToMenu FvwmBsdcfgNetMenu
  636. + " %mini/beastie.xpm%bsdconfig networking" FvwmBsdcfg networking
  637. + " %mini/asterisk.xpm%Hostname/Domain" FvwmBsdcfg hostname
  638. + " %mini/asterisk.xpm%Network Interfaces" FvwmBsdcfg netdev
  639. + " %mini/asterisk.xpm%Default Router/Gateway" FvwmBsdcfg defaultrouter
  640. + " %mini/asterisk.xpm%DNS nameservers" FvwmBsdcfg nameservers
  641. #
  642. ########## FvwmBsdcfgSecMenu
  643. #
  644. DestroyMenu FvwmBsdcfgSecMenu
  645. AddToMenu FvwmBsdcfgSecMenu
  646. + " %mini/beastie.xpm%bsdconfig security" FvwmBsdcfg security
  647. + " %mini/asterisk.xpm%Securelevel" FvwmBsdcfg kern_securelevel
  648. #
  649. ########## FvwmBsdcfgStartupMenu
  650. #
  651. DestroyMenu FvwmBsdcfgStartupMenu
  652. AddToMenu FvwmBsdcfgStartupMenu
  653. + " %mini/beastie.xpm%bsdconfig startup" FvwmBsdcfg startup
  654. + " %mini/asterisk.xpm%Toggle Startup Services" FvwmBsdcfg startup_rcvar
  655. + " %mini/asterisk.xpm%View/Edit Startup Configuration" \
  656. FvwmBsdcfg startup_rcconf
  657. + " %mini/asterisk.xpm%Miscellaneous Startup Services" \
  658. FvwmBsdcfg startup_misc
  659. #
  660. ########## FvwmQuitVerify
  661. #
  662. DestroyFunc QuitFunction
  663. AddToFunc QuitFunction
  664. + I Exec killall xsm
  665. + I Quit
  666.  
  667. DestroyMenu FvwmQuitVerify
  668. AddToMenu FvwmQuitVerify
  669. + "End Session?" Title
  670. + " %menu/tool-quit.xpm%Yes, Really Quit" QuitFunction
  671. + "" Nop
  672. + " %menu/tool-restart.xpm%Restart Session" Restart
  673. + "" Nop
  674. + " %menu/tool-nop.xpm%No, Don't Quit" Nop
  675. #
  676. ########## Fvwm Window Operation Menu
  677. #
  678. # NOTE: if using virtual desktops, uncomment the "(Un)Stick" menu item
  679.  
  680. DestroyMenu FvwmWindowOpsMenu
  681. AddToMenu FvwmWindowOpsMenu
  682. + "Window Operations" Title
  683. + " %mini/collapse.xpm%Animation" Popup MenuFvwmAnimate
  684. + " %mini/collapse.xpm%Opacity" Popup FvwmTransMenu
  685. + " %menu/window-move.xpm%Move" Move
  686. + " %menu/window-resize.xpm%Resize" Resize
  687. + " %menu/window-iconify.xpm%(De)Iconify" Iconify
  688. + " %menu/window-maximize.xpm%(Un)Maximize" Maximize 100 100
  689. + " %menu/window-shade.xpm%(Un)Shade" WindowShade
  690. + " %menu/window-stick.xpm%(Un)Stick" Stick
  691. + "" Nop
  692. + " %menu/window-window.xpm%Window Screenshot" Pick (CirculateHit) \
  693. FvwmWindowScreenshot
  694. + " %menu/window-windows.xpm%Screenshot" FvwmDesktopScreenshot
  695. + "" Nop
  696. + " %menu/window-close.xpm%Close" Close
  697. + " %menu/window-identify.xpm%Identify" Module FvwmIdent
  698.  
  699. DestroyFunc MenuFvwmWindowOpsPoint
  700. AddToFunc MenuFvwmWindowOpsPoint
  701. + I Focus
  702. + I Menu FvwmWindowOpsWindowMenu Mouse 0 -$[WindowOpsMenuHt]p
  703.  
  704. DestroyMenu FvwmWindowOpsWindowMenu
  705. AddToMenu FvwmWindowOpsWindowMenu
  706. + "Window Operations" Title
  707. + " %mini/collapse.xpm%Opacity" Popup FvwmTransWindowMenu
  708. + " %menu/window-move.xpm%Move" Move
  709. + " %menu/window-resize.xpm%Resize" Resize
  710. + " %menu/window-iconify.xpm%(De)Iconify" Iconify
  711. + " %menu/window-maximize.xpm%(Un)Maximize" Maximize 100 100
  712. + " %menu/window-shade.xpm%(Un)Shade" WindowShade
  713. + " %menu/window-stick.xpm%(Un)Stick" Stick
  714. + "" Nop
  715. + " %menu/window-window.xpm%Window Screenshot" Pick (CirculateHit) \
  716. FvwmWindowScreenshot
  717. + " %menu/window-windows.xpm%Screenshot" FvwmDesktopScreenshot
  718. + "" Nop
  719. + " %menu/window-close.xpm%Close" Close
  720. + " %menu/window-identify.xpm%Identify" Module FvwmIdent
  721. #
  722. ########## FvwmTransMenu
  723. #
  724. DestroyMenu FvwmTransMenu
  725. AddToMenu FvwmTransMenu
  726. + " Increase Opacity" FvwmTransset --inc 0.1
  727. + " Decrease Opacity" FvwmTransset --dec 0.1
  728. + "" Nop
  729. + " 10%%" FvwmTransset 0.1
  730. + " 20%%" FvwmTransset 0.2
  731. + " 30%%" FvwmTransset 0.3
  732. + " 40%%" FvwmTransset 0.4
  733. + " 50%%" FvwmTransset 0.5
  734. + " 60%%" FvwmTransset 0.6
  735. + " 70%%" FvwmTransset 0.7
  736. + " 80%%" FvwmTransset 0.8
  737. + " 90%%" FvwmTransset 0.9
  738. + " 100%%" FvwmTransset 1
  739.  
  740. DestroyMenu FvwmTransWindowMenu
  741. AddToMenu FvwmTransWindowMenu
  742. + " Increase Opacity" FvwmTranssetWindow --inc 0.1
  743. + " Decrease Opacity" FvwmTranssetWindow --dec 0.1
  744. + "" Nop
  745. + " 10%%" FvwmTranssetWindow 0.1
  746. + " 20%%" FvwmTranssetWindow 0.2
  747. + " 30%%" FvwmTranssetWindow 0.3
  748. + " 40%%" FvwmTranssetWindow 0.4
  749. + " 50%%" FvwmTranssetWindow 0.5
  750. + " 60%%" FvwmTranssetWindow 0.6
  751. + " 70%%" FvwmTranssetWindow 0.7
  752. + " 80%%" FvwmTranssetWindow 0.8
  753. + " 90%%" FvwmTranssetWindow 0.9
  754. + " 100%%" FvwmTranssetWindow 1
  755. #
  756. ########## FvwmIconMan
  757. #
  758. KillModule FvwmIconMan
  759. DestroyModuleConfig FvwmIconMan
  760. *FvwmIconMan: Colorset 14
  761. *FvwmIconMan: IconColorset 15
  762. *FvwmIconMan: FocusColorset 16
  763. *FvwmIconMan: FocusAndSelectColorset 17
  764. *FvwmIconMan: ManagerGeometry 15x1
  765. *FvwmIconMan: ButtonGeometry 40x32
  766. *FvwmIconMan: ReliefThickness 0
  767. *FvwmIconMan: DrawIcons always
  768. *FvwmIconMan: Font "xft:YaHei Consolas Hybrid:size=10:encoding=iso8859-1"
  769. *FvwmIconMan: Action Mouse 1 N SendCommand Focus, SendCommand Raise, \
  770. SendCommand "Iconify -1"
  771. *FvwmIconMan: Action Mouse 2 N SendCommand "Iconify 1"
  772. *FvwmIconMan: Action Mouse 3 N SendCommand \
  773. "Menu FvwmWindowOpsWindowMenu Rectangle +$left+$top 0 -100m""
  774. #
  775. ########## FvwmButtons
  776. #
  777. Style FvwmButtons !Title, HandleWidth 1, BorderWidth 0, Sticky, \
  778. WindowListSkip, CirculateSkip, !Iconifiable, \
  779. StaysOnBottom, FixedPosition
  780.  
  781. KillModule FvwmButtons
  782. DestroyModuleConfig FvwmButtons: *
  783. *FvwmButtons: Frame 0
  784. *FvwmButtons: ActiveColorset 18
  785. *FvwmButtons: Geometry $[vp.width]x32+0-0
  786. *FvwmButtons: Columns 102
  787. *FvwmButtons: BoxSize smart
  788. *FvwmButtons: Pixmap decor/Panel_Win2-7Basic1280.png
  789. *FvwmButtons: (10x1, Icon buttons/start.xpm, Action \
  790. "Menu FvwmRootMenu Rectangle +$left+$top 0 -100m")
  791. *FvwmButtons: (84x1, Swallow (UseOld) FvwmIconMan 'Module FvwmIconMan')
  792. *FvwmButtons: (3x1, Swallow (UseOld) "Time" \
  793. 'FvwmScript $[fvwm_home]/theme/script/FvwmScript-Time')
  794. #
  795. ########## FvwmPager
  796. #
  797. Style FvwmPager StaysPut, BorderWidth 0, Sticky
  798.  
  799. *FvwmPager: Geometry -0+0
  800. *FvwmPager: Font "none"
  801. *FvwmPager: MiniIcons
  802. *FvwmPager: SolidSeparators
  803. *FvwmPager: Balloons
  804. *FvwmPager: Fore DarkBlue
  805. *FvwmPager: Back LightGrey
  806. *FvwmPager: Hilight SlateBlue
  807. #
  808. ########## FvwmAnimate
  809. #
  810. *FvwmAnimate: Effect Zoom3D
  811. #
  812. ########## Keyboard Bindings
  813. #
  814. # Format: Key Keyname Context Modifiers Function
  815. DestroyFunc MenuFvwmRootMenu
  816. AddToFunc MenuFvwmRootMenu
  817. + I Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
  818.  
  819. # Set Alt+ESC and Windows keys to open the Start Menu
  820. Key Escape A M Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
  821. Key Super_L A A Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
  822. Key Super_R A A Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
  823.  
  824. # Set Alt+F4 to close
  825. Key F4 A M Pick (CirculateHit) Close
  826.  
  827. # Set up Alt+Tab functionality
  828. Key Tab A M WindowList Root c c NoGeometry, CurrentDesk, \
  829. NoDeskSort, CurrentAtEnd
  830.  
  831. # Set up Ctrl+Arrow functionality
  832. # NB: Change values to -100/100 to disable ``Wrap Around'' feature
  833. # Horizontal Vertical
  834. Key Left A C Scroll -100000 0
  835. Key Right A C Scroll 100000 0
  836. # Ctrl+Up/Down if you enable multiple rows in the Virtual Desktops section
  837. Key Up A C Scroll 0 -100000
  838. Key Down A C Scroll 0 100000
  839.  
  840. # Set up Ctrl+1-9 functionality
  841. Key 1 A C GotoPage 0 0
  842. Key 2 A C GotoPage 1 0
  843. Key 3 A C GotoPage 2 0
  844. Key 4 A C GotoPage 0 1
  845. Key 5 A C GotoPage 1 1
  846. Key 6 A C GotoPage 2 1
  847. Key 7 A C GotoPage 0 2
  848. Key 8 A C GotoPage 1 2
  849. Key 9 A C GotoPage 2 2
  850. #
  851. ########## END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement