.fvwm/config
branchfvwm
changeset 381 8e5aae66f57f
parent 380 e5a294b3ebc7
child 383 dee791248193
equal deleted inserted replaced
380:e5a294b3ebc7 381:8e5aae66f57f
     2 
     2 
     3 ############################
     3 ############################
     4 # Set Environment variables.
     4 # Set Environment variables.
     5 ############################
     5 ############################
     6 
     6 
     7 SetEnv fvwm_img $[FVWM_USERDIR]/images
     7 SetEnv fvwm_home $[HOME]/.fvwm
       
     8 SetEnv fvwm_img  $[FVWM_USERDIR]/images
     8 SetEnv fvwm_icon $[FVWM_USERDIR]/icons
     9 SetEnv fvwm_icon $[FVWM_USERDIR]/icons
       
    10 SetEnv screenshot_home $[HOME]/.screenshot
     9 
    11 
    10 #####################
    12 #####################
    11 # Set the image path.
    13 # Set the image path.
    12 #####################
    14 #####################
    13 
    15 
    48 # ############
    50 # ############
    49 # FvwmTaskBar.
    51 # FvwmTaskBar.
    50 # ############
    52 # ############
    51 
    53 
    52 Style "FvwmTaskBar" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
    54 Style "FvwmTaskBar" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
       
    55 
       
    56 ##########################################
       
    57 # Screenshot Functions (uses ImageMagick).
       
    58 ##########################################
       
    59 
       
    60 DestroyFunc FvwmWindowScreenshot
       
    61 AddToFunc   FvwmWindowScreenshot
       
    62 + I Exec import -window $[w.id] -quality 100 -silent \
       
    63          "$[screenshot_home]/$[w.class]-`date +%F[%R]`.jpg"
       
    64 
       
    65 DestroyFunc FvwmDesktopScreenshot
       
    66 AddToFunc   FvwmDesktopScreenshot
       
    67 + I Exec sleep 2; import -window root -quality 100 -silent \
       
    68          "$[screenshot_home]/Desktop-`date +%F-[%H:%M:%S]`.jpg"
       
    69 
       
    70 DestroyFunc FvwmScreenshot
       
    71 AddToFunc   FvwmScreenshot
       
    72 + I Exec import -quality 100 -silent \
       
    73          "$[screenshot_home]/App-`date +%F-[%H:%M:%S]`.jpg"
    53 
    74 
    54 ##################
    75 ##################
    55 # Basic Functions.
    76 # Basic Functions.
    56 ##################
    77 ##################
    57 
    78 
   132 
   153 
   133 # ############
   154 # ############
   134 # Key binding.
   155 # Key binding.
   135 # ############
   156 # ############
   136 
   157 
       
   158 # Key [(window)] Keyname Context Modifiers Function
       
   159 # See Keyname on /usr/include/X11/keysymdef.h, without the XK_ prefix.
       
   160 
   137 Key F1 A M Menu MenuFvwmRoot Root c c
   161 Key F1 A M Menu MenuFvwmRoot Root c c
   138 Key Super_L W CSM Delete
   162 Key Super_L W CSM Delete
   139 
   163 
   140 # Used by WindowList
   164 # Used by WindowList
   141 DestroyFunc WindowListFunc
   165 DestroyFunc WindowListFunc
   151 Key     Tab A M WindowList Root c c NoDeskSort, MaxLabelWidth $[fvwm_winlist_width], SelectOnRelease Meta_L
   175 Key     Tab A M WindowList Root c c NoDeskSort, MaxLabelWidth $[fvwm_winlist_width], SelectOnRelease Meta_L
   152 Key Super_L A N WindowList Root c c NoDeskSort, MaxLabelWidth $[fvwm_winlist_width]
   176 Key Super_L A N WindowList Root c c NoDeskSort, MaxLabelWidth $[fvwm_winlist_width]
   153 
   177 
   154 # Close window on Alt+F4 (send SIGHUP).
   178 # Close window on Alt+F4 (send SIGHUP).
   155 Key F4 A M Delete
   179 Key F4 A M Delete
       
   180 
       
   181 # Make screenshot.
       
   182 Key Print A N  FvwmScreenshot
       
   183 Key Print A S  FvwmDesktopScreenshot
   156 
   184 
   157 ###############
   185 ###############
   158 # Window Decor.
   186 # Window Decor.
   159 ###############
   187 ###############
   160 
   188 
   198 + Emacs           Exec  emacs
   226 + Emacs           Exec  emacs
   199 
   227 
   200 + debian          Popup "/Debian"
   228 + debian          Popup "/Debian"
   201 + my              Popup MenuMy
   229 + my              Popup MenuMy
   202 + fvwm            Popup MenuFvwmRoot
   230 + fvwm            Popup MenuFvwmRoot
       
   231 
       
   232 ########################
       
   233 # Window Operation Menu.
       
   234 ########################
       
   235 
       
   236 # From "FVWM Beginners Guide" by Jaimos F Skriletz.
       
   237 
       
   238 DestroyMenu FvwmWindowOpsMenu
       
   239 AddToMenu   FvwmWindowOpsMenu "Window Operations" Title
       
   240 + "Move%menu/window-move.xpm%"  Move
       
   241 + "Resize%menu/window-resize.xpm%"  Resize
       
   242 + "(De)Iconify%menu/window-iconify.xpm%"  Iconify
       
   243 + "(Un)Maximize%menu/window-maximize.xpm%"  Maximize
       
   244 + "(Un)Shade%menu/window-shade.xpm%"  WindowShade
       
   245 + "(Un)Stick%menu/window-stick.xpm%"  Stick
       
   246 + "" Nop
       
   247 + "Close%menu/window-close.xpm%"  Close
       
   248 + "Delete%menu/window-delete.xpm%"  Delete
       
   249 + "Destroy%menu/window-destroy.xpm%"  Destroy
       
   250 + "" Nop
       
   251 + "StaysOnTop%menu/window-raise.xpm%"  Pick (CirculateHit) Layer 0 6
       
   252 + "Layer +1%menu/window-raise.xpm%"  Pick (CirculateHit) Layer +1
       
   253 + "StaysPut%menu/window.xpm%"  Pick (CirculateHit) Layer 0 4
       
   254 + "Layer -1%menu/window-lower.xpm%"  Pick (CirculateHit) Layer -1
       
   255 + "StaysOnBottom%menu/window-lower.xpm%"  Pick (CirculateHit) Layer 0 2
       
   256 + "" Nop
       
   257 + "%menu/window.xpm%App Screenshot"  Pick (CirculateHit) FvwmWindowScreenshot
       
   258 + "Screenshot" FvwmDesktopScreenshot
       
   259 + "" Nop
       
   260 + "Identify%menu/window-identify.xpm%"  Module FvwmIdent
       
   261 
       
   262 Mouse 3 R A Menu FvwmWindowOpsMenu
   203 
   263 
   204 # ##########
   264 # ##########
   205 # FvwmPager.
   265 # FvwmPager.
   206 # ##########
   266 # ##########
   207 Style "FvwmPager" NoTitle, Handles, Borders, BorderWidth 5, Sticky, WindowListSkip, \
   267 Style "FvwmPager" NoTitle, Handles, Borders, BorderWidth 5, Sticky, WindowListSkip, \