Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################################################
- #
- # $Header: /cvsroot/druidbsd/home/fvwm2rc,v 1.7 2016/06/21 00:03:48 devinteske Exp $
- #
- ##########################################################################
- # ____________________________
- # ( _________________________) Last Modified:
- # ) (__ _ _ _ _ June 20, 2016
- # ( __)( \/ )( \/\/ )/\/\
- # ) ( \ / \ // \ Version: 5.4
- # (___) \/ \/\/(_/\/\_)
- #
- ####################### Configuration by Devin Teske for FreeBSD/Linux ###
- # /usr/env1/static_data/fvwm2/.fvwm2rc modified in following ways (in order):
- # - Enable 3x3 Virtual Desktops
- # - Enable SloppyFocus
- # - Enable FvwmPager
- ####################### Configuration
- # /usr/env1/static_data/fvwm2/.fvwm2rc
- #
- # The following 3rd-party softwares are detected and used if available...
- #
- # x11-wm/compton (or x11-wm/xcompmgr)
- # - Provides transparency and drop shadows
- # - [compton only] Provides translucent menus
- #
- # x11-wm/transset
- # - Provides opacity menu support for changing window transparency
- #
- # x11/setxkbmap
- # - Required to enable Ctrl-Alt-Backspace feature to kill X11 server
- #
- # graphics/hsetroot
- # - Required to set the desktop if/when using compton or xcompmgr
- # - Provides support for a wider range of wallpaper media
- # - Provides ability to automatically scale wallpaper to fill screen
- #
- # graphics/ImageMagick
- # - Provides Screenshot and Window Screenshot functionality from menu
- #
- # sysutils/conky
- # - Provides system information integrated into the desktop wallpaper
- #
- # x11/xbindkeys
- # - Provides media key (e.g., volume up/down) functionality for laptops
- #
- ##########################################################################
- #
- # The following items effect the Taskbar Main Menu. If installed, additional
- # items are displayed...
- #
- # x11/xterm - XTerm
- # x11-fm/nautilus - Nautilus File Manager
- # www/firefox - Firefox Web Browser
- # mail/evolution - Evolution E-Mail Client
- # graphics/gimp - Gimp Photo Editor
- # security/sudo
- # x11/xdialog - bsdconfig
- # x11/xautolock - Lock Screen
- #
- ##########################################################################
- #
- # Dynamically determine if we are part of an environment by checking the user's
- # login shell. If the user's shell does not exist within some environment,
- # search for a usable environment to pull theme-files from.
- #
- PipeRead '\
- has_environment=""; \
- fvwm_home="${HOME}"; \
- env_fvwm2="static_data/fvwm2"; \
- env_theme="${env_fvwm2}/theme"; \
- env_home=$( echo ${SHELL} | \
- sed -e \'s#\\(^.*/usr/env[0-9][0-9]*\\).*#\\1#\' ); \
- if [ "${env_home}" != "${SHELL}" ]; then \
- has_environment=1; \
- fvwm_home=${env_home}/${env_fvwm2}; \
- else \
- env_home="${HOME}"; \
- env=0; n=${env}; \
- while [ ${n} -lt 99 ]; do \
- n=$(( ${n} + 1 )); \
- [ -d "/usr/env${n}/${env_theme}" ] || continue; \
- env=${n}; \
- break; \
- done; \
- if [ ${env} -gt 0 ]; then \
- env_home=/usr/env${env}; \
- fvwm_home=${env_home}/${env_fvwm2}; \
- fi; \
- fi; \
- for v in has_environment env_home fvwm_home; do \
- eval s=\\"\\${${v}}\\"; \
- echo "SetEnv ${v} \\"${s}\\""; \
- done'
- #
- ########## Set Environment variables
- #
- # Paths
- SetEnv fvwm_theme /usr/local/share/fvwm_theme
- # Menu heights (in pixels)(for positioning the menu)
- SetEnv RootMenuHt 40
- SetEnv WindowOpsMenuHt 251
- #
- ########## Set the image path
- #
- # Search path for finding images
- SetEnv fvwm_search "$[fvwm_theme]:$[fvwm_home]/theme"
- ImagePath $[fvwm_search]
- #
- ########## Virtual Desktops
- #
- # Virtual desktop dimensions (number of physical screens)
- DesktopSize 3x3
- EdgeResistance -1
- Style * EdgeMoveDelay 100
- Style * EdgeMoveResistance 50
- # NB: See Keyboard Bindings section for Ctrl+Arrow/Ctrl+1-9 functionality
- # NB: See Mouse Bindings section for Ctrl+Alt+Mouse1 functionality
- #
- ########## Mouse and Focus Behaviour
- #
- # Mouse click durations in milliseconds
- ClickTime 250
- # Cursor style and features
- CursorStyle root top_left_arrow
- BusyCursor DynamicMenu True, Read True
- # Threshold for moving windows in pixels
- MoveThreshold 1
- #
- # Focus windows based on mouse position or require a click to focus
- #
- # NOTE: These are mutually exclusive. If both are enabled, the later
- # option takes precedence over the preceding one.
- #
- #Style * ClickToFocus
- Style * SloppyFocus
- #
- # If SloppyFocus is enabled, the below options (if enabled) will cause
- # the window to be raised when clicked even if it already has the focus
- # from an earlier MouseOver event.
- #
- Style * MouseFocusClickRaises
- Style * ClickToFocusRaises
- # Focus/Raise a window when clicked
- Style * ClickToFocusPassesClick
- # Cause newly mapped windows to grab the focus
- Style * GrabFocus
- # Ignore Caps-Lock, Num-Lock, and Scroll-Lock as modifier
- IgnoreModifiers L25
- #
- ########## Global Styles and options
- #
- # Do not iconify minimized windows
- # NB: If enabled, FvwmAnimate will have no effect
- Style * NoIcon
- # Intelligently place new windows
- Style * TileCascadePlacement
- Style * NoPPosition
- # Set the position of move/resize feedback window
- # and manual (rubber-band) window placement bahviour
- Emulate Mwm
- # Always show the move/resize feedback window
- HideGeometryWindow Never
- # Set opaque move/resize actions
- Style * ResizeOpaque
- OpaqueMoveSize -1
- # Make windows attract one another while moving/resizing
- # NB: Can be turned off realtime by holding Alt during move/resize
- Style * SnapAttraction 5 SameType Screen
- # Move/Resize grid dimensions
- # NB: Can be turned off realtime by holding Alt during move/resize
- #SnapGrid 3 3
- # Set rubber-band coloring for when moving/resizing
- # NOTE: not really necessary since we use opaque move/resize
- XorValue 55555
- # Windows appear only on parent page of virtual desktop
- Style * SlipperyIcon
- # Non-Transient windows have a title bar (at top of window)
- Style * IconTitle, TitleAtTop
- # Transient window styles
- #Style * DecorateTransient
- #Style * DontLowerTransient, StackTransientParent
- # Set the default mini-icon for all windows
- Style * MiniIcon mini/vicor.xpm
- #
- ########## Basic Functions
- #
- DestroyFunc FvwmMoveOrRaise
- AddToFunc FvwmMoveOrRaise
- + I Raise
- + M Move
- + D Maximize 100 100
- DestroyFunc FvwmMoveOrIconify
- AddToFunc FvwmMoveOrIconify
- + I Raise
- + M Move
- + D Iconify
- DestroyFunc FvwmResizeOrRaise
- AddToFunc FvwmResizeOrRaise
- + I Raise
- + M Resize
- + D Lower
- #
- ########## Program Launching Functions
- #
- DestroyFunc FvwmTransset
- AddToFunc FvwmTransset
- + I Exec exec transset $* > /dev/null 2>&1
- DestroyFunc FvwmTranssetWindow
- AddToFunc FvwmTranssetWindow
- + I Exec exec transset -i $[w.id] $* > /dev/null 2>&1
- DestroyFunc FvwmXTerm
- AddToFunc FvwmXTerm
- PipeRead '\
- cmd="/usr/bin/uxterm"; \
- [ -x "${cmd}" ] || cmd="/usr/local/bin/uxterm"; \
- [ -x "${cmd}" ] || cmd="/usr/X11R6/bin/uxterm"; \
- [ -x "${cmd}" ] || cmd="uxterm"; \
- [ -x "${cmd}" ] || cmd="/usr/bin/xterm"; \
- [ -x "${cmd}" ] || cmd="/usr/local/xterm"; \
- [ -x "${cmd}" ] || cmd="/usr/X11R6/bin/xterm"; \
- [ -x "${cmd}" ] || cmd="xterm"; \
- cmd="${cmd} -sb -sl 400"; \
- if [ "$[has_environment]" ]; then \
- cmd="${cmd} -e $[env_home]/bin/vicor_xterm_login"; \
- else \
- cmd="${cmd} -ls -r -si -sk"; \
- cmd="${cmd} -fn \\"-misc-fixed-medium-r-*-*-13-*\\""; \
- fi; \
- echo "+ I Exec exec ${cmd}"
- if [ "$( type transset 2> /dev/null )" ]; then \
- echo "+ I Exec exec sh -c " \
- "\'sleep 0.33; transset -a 0.9 > /dev/null 2>&1\'"; \
- fi'
- DestroyFunc FvwmNautilus
- AddToFunc FvwmNautilus
- + I Exec exec nautilus
- DestroyFunc FvwmFireFox
- AddToFunc FvwmFireFox
- + I Exec exec firefox
- DestroyFunc FvwmEvolutoin
- AddToFunc FvwmEvolution
- + I Exec exec evolution
- DestroyFunc FvwmGimp
- AddToFunc FvwmGimp
- + I Exec exec gimp --no-shm
- DestroyFunc FvwmBsdcfg
- AddToFunc FvwmBsdcfg
- + I Exec exec bsdconfig -X $*
- # or, with debugging output in an XTerm (good on slow machines):
- # + I Exec exec xterm -e bsdconfig -dX $*
- DestroyFunc FvwmConsole
- AddToFunc FvwmConsole
- + I Exec exec xterm -geometry 80x64+200+200 -sb -T "Debug Console" \
- -e tail -n100 -f /tmp/xsession.out
- DestroyFunc FvwmRHS
- AddToFunc FvwmRHS
- + I Exec exec rids_host_setup -X
- DestroyFunc FvwmXLock
- AddToFunc FvwmXLock
- + I Exec exec xautolock -locknow
- #
- ########## Startup Functions
- #
- # Name of the background image
- SetEnv fvwm_background "wallpaper/active"
- # Name of compton configuration file
- SetEnv fvwm_compton "compton/default.conf"
- #SetEnv fvwm_compton "compton/blur.conf"
- DestroyFunc StartFunction
- AddToFunc StartFunction
- + I Module FvwmButtons
- PipeRead '\
- killall compton 2> /dev/null; \
- killall xcompmgr 2> /dev/null; \
- if [ "$( type compton 2> /dev/null )" ]; then \
- for dir in $( echo "$[fvwm_search]" | tr : " " ); do \
- [ -f "${dir}/$[fvwm_compton]" ] && \
- conf="${dir}/$[fvwm_compton]"; \
- done; \
- [ "${conf}" ] && \
- echo "+ I Exec exec compton --config ${conf}"; \
- elif [ "$( type xcompmgr 2> /dev/null )" ]; then \
- echo "+ I Exec exec " \
- "xcompmgr -cCfF -r8 -t5 -l-11 -o.8 -D6"; \
- fi; \
- setroot="fvwm-root -r"; \
- [ "$( type hsetroot 2> /dev/null )" ] && \
- setroot="hsetroot -fill"; \
- for dir in $( echo "$[fvwm_search]" | tr : " " ); do \
- [ -f "${dir}/$[fvwm_background]" ] && \
- bg="${dir}/$[fvwm_background]"; \
- done; \
- [ "${bg}" ] && echo "+ I Exec exec ${setroot} ${bg}";'
- + I Module FvwmPager * *
- PipeRead '\
- if [ "$( type transset 2> /dev/null )" ]; then \
- echo "+ I Exec exec sh -c \'sleep 1;" \
- "transset -n \\"Desk *\\" 0.5 > /dev/null 2>&1\'"; \
- echo "+ I Exec exec sh -c \'sleep 1;" \
- "transset -n \\"FvwmButtons\\" 0.8 > /dev/null 2>&1\'"; \
- fi'
- # + I Module FvwmAnimate
- PipeRead '\
- if [ "$( type conky 2> /dev/null )" ]; then \
- killall conky 2> /dev/null; \
- echo "+ I Exec exec conky -c " \
- "$[fvwm_home]/theme/conky/ident.conkyrc"; \
- fi'
- PipeRead '\
- if [ "$( type xbindkeys 2> /dev/null )" ]; then \
- echo "+ I Exec exec xbindkeys"; \
- fi'
- DestroyFunc InitFunction
- AddToFunc InitFunction
- + I Exec exec setxkbmap -option terminate:ctrl_alt_bksp
- + I Exec exec nohup xautolock > /dev/null &
- + I Nop
- DestroyFunc RestartFunction
- AddToFunc RestartFunction
- + I Nop
- #
- ########## Screenshot Functions (uses ImageMagick)
- #
- # Note: sleep prevents file clobbering
- DestroyFunc FvwmWindowScreenshot
- AddToFunc FvwmWindowScreenshot
- + I Exec sleep 1; import -window $[w.id] -quality 100 -silent \
- "$[HOME]/screenshot-`date +%Y.%m.%d-%H.%M.%S`.jpg"
- DestroyFunc FvwmDesktopScreenshot
- AddToFunc FvwmDesktopScreenshot
- + I Exec sleep 2; import -window root -quality 100 -silent \
- "$[HOME]/screenshot-`date +%Y.%m.%d-%H.%M.%S`.jpg"
- #
- ########## Mouse Bindings
- #
- # Wrapper function to only activate if mouse is released within target
- DestroyFunc OnlyIfClick
- AddToFunc OnlyIfClick
- + "C" $*
- # Root (desktop) window:
- # Button Context Modifi Function
- Mouse 1 R A Nop
- Mouse 2 R A Menu FvwmWindowOpsMenu
- Mouse 3 R A WindowList NoGeometry
- Mouse 1 A CM Scroll reverse
- # Title bar buttons:
- # Button Context Modifi Function
- Mouse 0 1 A Nop
- Mouse 0 6 A OnlyIfClick Iconify
- Mouse 0 4 A OnlyIfClick Maximize 100 100
- Mouse 0 2 A OnlyIfClick Close
- # Window frame/sides/icons:
- # Button Context Modifi Function
- Mouse 1 FS A FvwmResizeOrRaise
- Mouse 1 I A FvwmMoveOrIconify
- Mouse 1 T A FvwmMoveOrRaise
- Mouse 2 I A Iconify
- Mouse 2 TSIF A RaiseLower
- Mouse 3 FST A Menu FvwmWindowOpsWindowMenu Nop
- #
- ########## Window Decor
- #
- DestroyDecor VicorDecor
- AddToDecor VicorDecor
- + TitleStyle LeftJustified Height 24
- + TitleStyle TiledPixmap decor/titlebar-center.png -- Flat
- + ButtonStyle 1 TiledPixmap decor/titlebar-left.png -- Flat
- + AddButtonStyle 1 MiniIcon -- Flat
- + ButtonStyle 2 ActiveUp Pixmap buttons/close-active.png -- Flat
- + ButtonStyle 4 ActiveUp Pixmap buttons/maximize-active.png -- Flat
- + ButtonStyle 6 ActiveUp Pixmap buttons/minimize-active.png -- Flat
- + ButtonStyle 2 ActiveDown Pixmap buttons/close-pressed.png -- Flat
- + ButtonStyle 4 ActiveDown Pixmap buttons/maximize-pressed.png -- Flat
- + ButtonStyle 6 ActiveDown Pixmap buttons/minimize-pressed.png -- Flat
- + ButtonStyle 2 Inactive Pixmap buttons/close-inactive.png -- Flat
- + ButtonStyle 4 Inactive Pixmap buttons/maximize-inactive.png -- Flat
- + ButtonStyle 6 Inactive Pixmap buttons/minimize-inactive.png -- Flat
- # + BorderStyle 1 TiledPixmap decor/border-left.png -- NoInset HiddenHandles
- # + TitleStyle LeftJustified Height 26
- # + TitleStyle TiledPixmap decor/title.xpm -- Flat
- # + ButtonStyle 1 TiledPixmap decor/title.xpm -- Flat
- # + AddButtonStyle 1 MiniIcon -- Flat
- # + ButtonStyle 2 Pixmap buttons/close.xpm -- Flat
- # + ButtonStyle 4 Pixmap buttons/maximize.xpm -- Flat
- # + ButtonStyle 6 Pixmap buttons/minimize.xpm -- Flat
- # + BorderStyle Simple -- NoInset HiddenHandles
- #
- ########## Window Styles
- #
- # Decor setting
- Style "*" UseDecor VicorDecor
- # Font settings
- #Style "*" Font "xft:Sans:Bold:size=8:minspace=False:antialias=True"
- #Style "*" Font "-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*"
- Style "*" Font "xft:YaHei Consolas Hybrid:size=10:encoding=iso8859-1"
- # Border settings
- Style "*" BorderWidth 0, HandleWidth 0
- Style "*" MwmBorder, FirmBorder
- # Color definitions
- Style "*" HilightFore #ffffff, HilightBack #0000ff
- Style "*" BackColor #0000ff, ForeColor #ffffff
- # Color settings
- Style "*" Colorset 4
- Style "*" HilightColorset 3
- Style "*" BorderColorset 4
- Style "*" HilightBorderColorset 4
- #
- ########## Program Styles
- #
- # Program Icons
- Style "xterm" MiniIcon mini/xterm.xpm
- Style "Firefox-bin" MiniIcon mini/firefox.xpm
- Style "evolution" MiniIcon mini/evolution.xpm
- Style "Firefox" MiniIcon mini/firefox.xpm
- Style "bsdconfig" MiniIcon mini/beastie.xpm
- # Set maximum window size for the Big-Blue-Button screen
- #Style "unixlogin" MaxWindowSize 850p 912p
- #Style "unixlogin" BorderWidth 0, HandleWidth 0
- # Fvwm related tasks (ie., FvwmButtons)
- Style "Fvwm*" NoTitle, WindowListSkip, NoHandles, CirculateSkip, \
- TitleAtBottom, NeverFocus, BorderWidth 0
- # Conky related tasks
- Style "Conky*" NoTitle, WindowListSkip, NoHandles, CirculateSkip, \
- TitleAtBottom, NeverFocus, BorderWidth 0, StaysOnBottom
- # Give these applications a wider handle for easier resizing
- #Style "xterm" HandleWidth 4
- #Style "Firefox-bin" HandleWidth 4
- #Style "Firefox" HandleWidth 4
- #
- ########## Colorsets
- #
- CleanupColorsets
- Colorset 1 TiledPixmap decor/Panel_Win2-7Basic1280.png, fg white, \
- sh DarkSlateGrey, hi LightGrey, RootTransparent buffer
- Colorset 2 bg DarkGrey, fg black, sh DarkSlateGrey, hi LightGrey
- Colorset 4 TiledPixmap decor/border-left.png, fg black, sh black, \
- hi black, RootTransparent buffer
- Colorset 5 RootTransparent buffer
- Colorset 11 RootTransparent buffer
- Colorset 14 TiledPixmap decor/Panel_Win2-7Basic1280.png, fg DarkSlateGrey, \
- sh black, hi black
- Colorset 15 TiledPixmap decor/Panel_Win2-7Murrine-AeroBlack.png, \
- fg DarkSlateGrey, sh black, hi black
- Colorset 16 TiledPixmap decor/Panel_Win2-7Original.png, fg black, sh black, \
- hi black
- Colorset 17 TiledPixmap decor/Panel_Win2-7Green.png, fg black, sh black, \
- hi black
- Colorset 18 TiledPixmap decor/Panel_Win2-7Green.png, fg black, sh black, \
- hi black
- Colorset 22 RootTransparent buffer
- # Colorset 1 TiledPixmap decor/taskbar1.xpm, fg white, sh DarkSlateGrey, \
- # hi LightGrey
- # Colorset 2 bg DarkGrey, fg black, sh DarkSlateGrey, hi LightGrey
- # Colorset 3 TiledPixmap decor/taskbar3.xpm, fg black, sh DarkSlateGrey, \
- # hi LightGrey
- # Colorset 4 TiledPixmap decor/taskbar4.xpm, fg black, sh black, hi black
- # Colorset 5 TiledPixmap decor/taskbar5.xpm, fg white
- # Colorset 11 TiledPixmap decor/taskbar1.xpm, fg blue, sh DarkSlateGrey, \
- # hi LightGrey
- # Colorset 22 Pixmap decor/taskbar22.xpm, fg white
- #
- ########## Menu Styles
- #
- MenuStyle * Win
- Menustyle * font -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*
- MenuStyle * MenuFace VGradient 128 2 darkgrey 60 lightgrey 40 white
- MenuStyle * Hilightback #0077FF
- #
- ########## FvwmRootMenu
- #
- DestroyMenu FvwmRootMenu
- AddToMenu FvwmRootMenu
- PipeRead '\
- if [ "$( type xterm 2> /dev/null )" ]; then \
- icon="%mini/xterm.xpm%"; \
- echo "+ \\" ${icon}XTerm\\" FvwmXTerm"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- if [ "$( type nautilus 2> /dev/null )" ]; then \
- icon="%mini/nautilus.png%"; \
- echo "+ \\" ${icon}Nautilus File Manager\\" FvwmNautilus"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- if [ "$( type firefox 2> /dev/null )" ]; then \
- icon="%mini/firefox.xpm%"; \
- echo "+ \\" ${icon}Firefox Web Browser\\" FvwmFireFox"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- if [ "$( type evolution 2> /dev/null )" ]; then \
- icon="%mini/evolution.xpm%"; \
- echo "+ \\" ${icon}Evolution Mail Client\\" FvwmEvolution"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- if [ "$( type gimp 2> /dev/null )" ]; then \
- icon="%mini/gimp.xpm%"; \
- echo "+ \\" ${icon}Gimp Photo Editor\\" FvwmGimp"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- if [ "$( type Xdialog 2> /dev/null )" ] && \
- [ "$( id -u )" = "0" -o "$( type sudo 2> /dev/null )" ]; then \
- icon="%mini/collapse.xpm%"; \
- echo "+ \\" ${icon}bsdconfig\\" Popup FvwmBsdcfgMenu"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- if [ "$( type xautolock 2> /dev/null )" ]; then \
- icon="%mini/lock.xpm%"; \
- echo "+ \\" ${icon}Lock Screen\\" FvwmXLock"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+20))"; \
- fi'
- PipeRead '\
- icon="%menu/tool-quit.xpm%"; \
- echo "+ \\"\\" Nop"; \
- echo "+ \\" ${icon}Log Out\\" Popup FvwmQuitVerify"; \
- echo ""; \
- echo "SetEnv RootMenuHt $((${RootMenuHt}+17))";'
- #
- ########## FvwmBsdcfgMenu
- #
- DestroyMenu FvwmBsdcfgMenu
- AddToMenu FvwmBsdcfgMenu
- + " %mini/beastie.xpm%bsdconfig" FvwmBsdcfg
- + " %mini/asterisk.xpm%Documentation Installation" FvwmBsdcfg docsinstall
- + " %mini/asterisk.xpm%Packages" FvwmBsdcfg packages
- + " %mini/asterisk.xpm%Root Password" FvwmBsdcfg password
- + " %mini/asterisk.xpm%Disk Management" FvwmBsdcfg diskmgmt
- + " %mini/collapse.xpm%Login/Group Management" Popup FvwmBsdcfgLoginmgmtMenu
- + " %mini/collapse.xpm%System Console" Popup FvwmBsdcfgConsoleMenu
- + " %mini/asterisk.xpm%Timezone" FvwmBsdcfg timezone
- + " %mini/collapse.xpm%Mouse" Popup FvwmBsdcfgMouseMenu
- + " %mini/collapse.xpm%Network Management" Popup FvwmBsdcfgNetMenu
- + " %mini/collapse.xpm%Security" Popup FvwmBsdcfgSecMenu
- + " %mini/collapse.xpm%Startup" Popup FvwmBsdcfgStartupMenu
- + " %mini/asterisk.xpm%Ttys" FvwmBsdcfg ttys
- #
- ########## FvwmBsdcfgLoginmgmtMenu
- #
- DestroyMenu FvwmBsdcfgLoginmgmtMenu
- AddToMenu FvwmBsdcfgLoginmgmtMenu
- + " %mini/beastie.xpm%bsdconfig usermgmt" FvwmBsdcfg usermgmt
- + " %mini/asterisk.xpm%Add Login" FvwmBsdcfg useradd
- + " %mini/asterisk.xpm%Edit/View Login" FvwmBsdcfg useredit
- + " %mini/asterisk.xpm%Delete Login" FvwmBsdcfg userdel
- + "" Nop
- + " %mini/beastie.xpm%bsdconfig groupmgmt" FvwmBsdcfg groupmgmt
- + " %mini/asterisk.xpm%Add Group" FvwmBsdcfg groupadd
- + " %mini/asterisk.xpm%Edit/View Group" FvwmBsdcfg groupedit
- + " %mini/asterisk.xpm%Delete Group" FvwmBsdcfg groupdel
- #
- ########## FvwmBsdcfgConsoleMenu
- #
- DestroyMenu FvwmBsdcfgConsoleMenu
- AddToMenu FvwmBsdcfgConsoleMenu
- + " %mini/beastie.xpm%bsdconfig console" FvwmBsdcfg console
- + " %mini/asterisk.xpm%Font" FvwmBsdcfg syscons_font
- + " %mini/asterisk.xpm%Keymap" FvwmBsdcfg syscons_keymap
- + " %mini/asterisk.xpm%Repeat" FvwmBsdcfg syscons_repeat
- + " %mini/asterisk.xpm%Saver" FvwmBsdcfg syscons_saver
- + " %mini/asterisk.xpm%Screenmap" FvwmBsdcfg syscons_screenmap
- + " %mini/asterisk.xpm%Ttys" FvwmBsdcfg syscons_ttys
- #
- ########## FvwmBsdcfgMouseMenu
- #
- DestroyMenu FvwmBsdcfgMouseMenu
- AddToMenu FvwmBsdcfgMouseMenu
- + " %mini/beastie.xpm%bsdconfig mouse" FvwmBsdcfg mouse
- + " %mini/asterisk.xpm%Enable" FvwmBsdcfg mouse_enable
- + " %mini/asterisk.xpm%Type" FvwmBsdcfg mouse_type
- + " %mini/asterisk.xpm%Port" FvwmBsdcfg mouse_port
- + " %mini/asterisk.xpm%Flags" FvwmBsdcfg mouse_flags
- #
- ########## FvwmBsdcfgNetMenu
- #
- DestroyMenu FvwmBsdcfgNetMenu
- AddToMenu FvwmBsdcfgNetMenu
- + " %mini/beastie.xpm%bsdconfig networking" FvwmBsdcfg networking
- + " %mini/asterisk.xpm%Hostname/Domain" FvwmBsdcfg hostname
- + " %mini/asterisk.xpm%Network Interfaces" FvwmBsdcfg netdev
- + " %mini/asterisk.xpm%Default Router/Gateway" FvwmBsdcfg defaultrouter
- + " %mini/asterisk.xpm%DNS nameservers" FvwmBsdcfg nameservers
- #
- ########## FvwmBsdcfgSecMenu
- #
- DestroyMenu FvwmBsdcfgSecMenu
- AddToMenu FvwmBsdcfgSecMenu
- + " %mini/beastie.xpm%bsdconfig security" FvwmBsdcfg security
- + " %mini/asterisk.xpm%Securelevel" FvwmBsdcfg kern_securelevel
- #
- ########## FvwmBsdcfgStartupMenu
- #
- DestroyMenu FvwmBsdcfgStartupMenu
- AddToMenu FvwmBsdcfgStartupMenu
- + " %mini/beastie.xpm%bsdconfig startup" FvwmBsdcfg startup
- + " %mini/asterisk.xpm%Toggle Startup Services" FvwmBsdcfg startup_rcvar
- + " %mini/asterisk.xpm%View/Edit Startup Configuration" \
- FvwmBsdcfg startup_rcconf
- + " %mini/asterisk.xpm%Miscellaneous Startup Services" \
- FvwmBsdcfg startup_misc
- #
- ########## FvwmQuitVerify
- #
- DestroyFunc QuitFunction
- AddToFunc QuitFunction
- + I Exec killall xsm
- + I Quit
- DestroyMenu FvwmQuitVerify
- AddToMenu FvwmQuitVerify
- + "End Session?" Title
- + " %menu/tool-quit.xpm%Yes, Really Quit" QuitFunction
- + "" Nop
- + " %menu/tool-restart.xpm%Restart Session" Restart
- + "" Nop
- + " %menu/tool-nop.xpm%No, Don't Quit" Nop
- #
- ########## Fvwm Window Operation Menu
- #
- # NOTE: if using virtual desktops, uncomment the "(Un)Stick" menu item
- DestroyMenu FvwmWindowOpsMenu
- AddToMenu FvwmWindowOpsMenu
- + "Window Operations" Title
- + " %mini/collapse.xpm%Animation" Popup MenuFvwmAnimate
- + " %mini/collapse.xpm%Opacity" Popup FvwmTransMenu
- + " %menu/window-move.xpm%Move" Move
- + " %menu/window-resize.xpm%Resize" Resize
- + " %menu/window-iconify.xpm%(De)Iconify" Iconify
- + " %menu/window-maximize.xpm%(Un)Maximize" Maximize 100 100
- + " %menu/window-shade.xpm%(Un)Shade" WindowShade
- + " %menu/window-stick.xpm%(Un)Stick" Stick
- + "" Nop
- + " %menu/window-window.xpm%Window Screenshot" Pick (CirculateHit) \
- FvwmWindowScreenshot
- + " %menu/window-windows.xpm%Screenshot" FvwmDesktopScreenshot
- + "" Nop
- + " %menu/window-close.xpm%Close" Close
- + " %menu/window-identify.xpm%Identify" Module FvwmIdent
- DestroyFunc MenuFvwmWindowOpsPoint
- AddToFunc MenuFvwmWindowOpsPoint
- + I Focus
- + I Menu FvwmWindowOpsWindowMenu Mouse 0 -$[WindowOpsMenuHt]p
- DestroyMenu FvwmWindowOpsWindowMenu
- AddToMenu FvwmWindowOpsWindowMenu
- + "Window Operations" Title
- + " %mini/collapse.xpm%Opacity" Popup FvwmTransWindowMenu
- + " %menu/window-move.xpm%Move" Move
- + " %menu/window-resize.xpm%Resize" Resize
- + " %menu/window-iconify.xpm%(De)Iconify" Iconify
- + " %menu/window-maximize.xpm%(Un)Maximize" Maximize 100 100
- + " %menu/window-shade.xpm%(Un)Shade" WindowShade
- + " %menu/window-stick.xpm%(Un)Stick" Stick
- + "" Nop
- + " %menu/window-window.xpm%Window Screenshot" Pick (CirculateHit) \
- FvwmWindowScreenshot
- + " %menu/window-windows.xpm%Screenshot" FvwmDesktopScreenshot
- + "" Nop
- + " %menu/window-close.xpm%Close" Close
- + " %menu/window-identify.xpm%Identify" Module FvwmIdent
- #
- ########## FvwmTransMenu
- #
- DestroyMenu FvwmTransMenu
- AddToMenu FvwmTransMenu
- + " Increase Opacity" FvwmTransset --inc 0.1
- + " Decrease Opacity" FvwmTransset --dec 0.1
- + "" Nop
- + " 10%%" FvwmTransset 0.1
- + " 20%%" FvwmTransset 0.2
- + " 30%%" FvwmTransset 0.3
- + " 40%%" FvwmTransset 0.4
- + " 50%%" FvwmTransset 0.5
- + " 60%%" FvwmTransset 0.6
- + " 70%%" FvwmTransset 0.7
- + " 80%%" FvwmTransset 0.8
- + " 90%%" FvwmTransset 0.9
- + " 100%%" FvwmTransset 1
- DestroyMenu FvwmTransWindowMenu
- AddToMenu FvwmTransWindowMenu
- + " Increase Opacity" FvwmTranssetWindow --inc 0.1
- + " Decrease Opacity" FvwmTranssetWindow --dec 0.1
- + "" Nop
- + " 10%%" FvwmTranssetWindow 0.1
- + " 20%%" FvwmTranssetWindow 0.2
- + " 30%%" FvwmTranssetWindow 0.3
- + " 40%%" FvwmTranssetWindow 0.4
- + " 50%%" FvwmTranssetWindow 0.5
- + " 60%%" FvwmTranssetWindow 0.6
- + " 70%%" FvwmTranssetWindow 0.7
- + " 80%%" FvwmTranssetWindow 0.8
- + " 90%%" FvwmTranssetWindow 0.9
- + " 100%%" FvwmTranssetWindow 1
- #
- ########## FvwmIconMan
- #
- KillModule FvwmIconMan
- DestroyModuleConfig FvwmIconMan
- *FvwmIconMan: Colorset 14
- *FvwmIconMan: IconColorset 15
- *FvwmIconMan: FocusColorset 16
- *FvwmIconMan: FocusAndSelectColorset 17
- *FvwmIconMan: ManagerGeometry 15x1
- *FvwmIconMan: ButtonGeometry 40x32
- *FvwmIconMan: ReliefThickness 0
- *FvwmIconMan: DrawIcons always
- *FvwmIconMan: Font "xft:YaHei Consolas Hybrid:size=10:encoding=iso8859-1"
- *FvwmIconMan: Action Mouse 1 N SendCommand Focus, SendCommand Raise, \
- SendCommand "Iconify -1"
- *FvwmIconMan: Action Mouse 2 N SendCommand "Iconify 1"
- *FvwmIconMan: Action Mouse 3 N SendCommand \
- "Menu FvwmWindowOpsWindowMenu Rectangle +$left+$top 0 -100m""
- #
- ########## FvwmButtons
- #
- Style FvwmButtons !Title, HandleWidth 1, BorderWidth 0, Sticky, \
- WindowListSkip, CirculateSkip, !Iconifiable, \
- StaysOnBottom, FixedPosition
- KillModule FvwmButtons
- DestroyModuleConfig FvwmButtons: *
- *FvwmButtons: Frame 0
- *FvwmButtons: ActiveColorset 18
- *FvwmButtons: Geometry $[vp.width]x32+0-0
- *FvwmButtons: Columns 102
- *FvwmButtons: BoxSize smart
- *FvwmButtons: Pixmap decor/Panel_Win2-7Basic1280.png
- *FvwmButtons: (10x1, Icon buttons/start.xpm, Action \
- "Menu FvwmRootMenu Rectangle +$left+$top 0 -100m")
- *FvwmButtons: (84x1, Swallow (UseOld) FvwmIconMan 'Module FvwmIconMan')
- *FvwmButtons: (3x1, Swallow (UseOld) "Time" \
- 'FvwmScript $[fvwm_home]/theme/script/FvwmScript-Time')
- #
- ########## FvwmPager
- #
- Style FvwmPager StaysPut, BorderWidth 0, Sticky
- *FvwmPager: Geometry -0+0
- *FvwmPager: Font "none"
- *FvwmPager: MiniIcons
- *FvwmPager: SolidSeparators
- *FvwmPager: Balloons
- *FvwmPager: Fore DarkBlue
- *FvwmPager: Back LightGrey
- *FvwmPager: Hilight SlateBlue
- #
- ########## FvwmAnimate
- #
- *FvwmAnimate: Effect Zoom3D
- #
- ########## Keyboard Bindings
- #
- # Format: Key Keyname Context Modifiers Function
- DestroyFunc MenuFvwmRootMenu
- AddToFunc MenuFvwmRootMenu
- + I Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
- # Set Alt+ESC and Windows keys to open the Start Menu
- Key Escape A M Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
- Key Super_L A A Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
- Key Super_R A A Menu FvwmRootMenu Rectangle +0-0 0 -$[RootMenuHt]p
- # Set Alt+F4 to close
- Key F4 A M Pick (CirculateHit) Close
- # Set up Alt+Tab functionality
- Key Tab A M WindowList Root c c NoGeometry, CurrentDesk, \
- NoDeskSort, CurrentAtEnd
- # Set up Ctrl+Arrow functionality
- # NB: Change values to -100/100 to disable ``Wrap Around'' feature
- # Horizontal Vertical
- Key Left A C Scroll -100000 0
- Key Right A C Scroll 100000 0
- # Ctrl+Up/Down if you enable multiple rows in the Virtual Desktops section
- Key Up A C Scroll 0 -100000
- Key Down A C Scroll 0 100000
- # Set up Ctrl+1-9 functionality
- Key 1 A C GotoPage 0 0
- Key 2 A C GotoPage 1 0
- Key 3 A C GotoPage 2 0
- Key 4 A C GotoPage 0 1
- Key 5 A C GotoPage 1 1
- Key 6 A C GotoPage 2 1
- Key 7 A C GotoPage 0 2
- Key 8 A C GotoPage 1 2
- Key 9 A C GotoPage 2 2
- #
- ########## END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement