mirror of
https://github.com/morgant/mlvwmrc.git
synced 2024-09-27 16:55:00 +00:00
Split System7/MacOS8 styling, menu bar defintion, init & restart functions, etc., into separate files.
This commit is contained in:
parent
9e48b558b0
commit
f1ab27b30d
6
.mlvwm/.initrc
Normal file
6
.mlvwm/.initrc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Read initrc
|
||||||
|
InitFunction
|
||||||
|
Desk 0
|
||||||
|
Exec "xterm" xterm -ls -geometry 80x25 &
|
||||||
|
Wait xterm
|
||||||
|
END
|
133
.mlvwm/.mlvwmrc
133
.mlvwm/.mlvwmrc
@ -27,18 +27,6 @@ IconifyShade
|
|||||||
## Show the window as shade, when hide shaded window is shown
|
## Show the window as shade, when hide shaded window is shown
|
||||||
#ShadeMap
|
#ShadeMap
|
||||||
|
|
||||||
## Enable MacOS 8 decoration feauture
|
|
||||||
System8
|
|
||||||
|
|
||||||
## Enable Opaque Move
|
|
||||||
OpaqueMove
|
|
||||||
|
|
||||||
## Enable Opaque Resize
|
|
||||||
# OpaqueResize
|
|
||||||
|
|
||||||
## Enable one click menu
|
|
||||||
#OneClickMenu
|
|
||||||
|
|
||||||
# Double click time
|
# Double click time
|
||||||
DoubleClickTime 300
|
DoubleClickTime 300
|
||||||
|
|
||||||
@ -48,9 +36,6 @@ EdgeResistance 50 50
|
|||||||
## Show window name with desktop number on window list
|
## Show window name with desktop number on window list
|
||||||
#DisplayDeskNumber
|
#DisplayDeskNumber
|
||||||
|
|
||||||
## Draw move/resize line with dotted line
|
|
||||||
Compatible
|
|
||||||
|
|
||||||
# Set icon search path. It needs before "Style".
|
# Set icon search path. It needs before "Style".
|
||||||
IconPath /usr/local/include/X11/pixmaps:/home2/tak/bin/pixmap
|
IconPath /usr/local/include/X11/pixmaps:/home2/tak/bin/pixmap
|
||||||
IconMenuIcon label2.xpm
|
IconMenuIcon label2.xpm
|
||||||
@ -76,117 +61,19 @@ Escape M Restart mlvwm
|
|||||||
Escape SM Exit
|
Escape SM Exit
|
||||||
END
|
END
|
||||||
|
|
||||||
# Register the menu
|
# Load Theme from themes/ ('System7', 'MacOS8', or 'MacOS9')
|
||||||
Menu Apple, Icon label1.xpm, Stick
|
Read themes/System7
|
||||||
"About this Workstation..." NonSelect, Gray, Action About
|
|
||||||
"" NonSelect
|
|
||||||
"Terminal" Icon mini-display.xpm, Action Exec "kterm" exec kterm -ls
|
|
||||||
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
|
|
||||||
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu def-File, Label "File", Left
|
# Load the default menu bar
|
||||||
"New Folder" NonSelect, Gray, Action Nop
|
# (IMPORTANT: The Apple menu is defined in the theme, so _must_ be loaded before
|
||||||
"Open" NonSelect, Gray, Action Nop
|
# the default menu bar)
|
||||||
"Print" NonSelect, Gray, Action Nop
|
Read MenuBar
|
||||||
"Close Window" NonSelect, Gray, Action Nop
|
|
||||||
"" NonSelect
|
|
||||||
"Get Info" NonSelect, Gray,Action Nop
|
|
||||||
"Duplicate" NonSelect, Gray, Action Nop
|
|
||||||
"" NonSelect
|
|
||||||
"Find..." NonSelect, Gray, Action Nop
|
|
||||||
"Find Again" NonSelect, Gray, Action Nop
|
|
||||||
"" NonSelect
|
|
||||||
"Page Setup..." NonSelect, Gray, Action Nop
|
|
||||||
"Print Desktop..." NonSelect, Gray, Action Nop
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu def-Edit, Label "Edit"
|
|
||||||
"Undo" NonSelect, Gray, Action Nop
|
|
||||||
"" NonSelect
|
|
||||||
"Cut" NonSelect, Gray
|
|
||||||
"Copy" NonSelect, Gray
|
|
||||||
"Paste" NonSelect, Gray
|
|
||||||
"Clear" NonSelect, Gray
|
|
||||||
"Select All" NonSelect, Gray
|
|
||||||
"" NonSelect
|
|
||||||
"Show Clipboard" NonSelect, Gray
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu def-View, Label "View"
|
|
||||||
"by Small Icon" NonSelect, Gray
|
|
||||||
"by Icon" NonSelect, Gray
|
|
||||||
"by Name" NonSelect, Gray
|
|
||||||
"by Size" NonSelect, Gray
|
|
||||||
"by Kind" NonSelect, Gray
|
|
||||||
"by Date" NonSelect, Gray
|
|
||||||
"by Version" NonSelect, Gray
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu def-Label, Label "Label"
|
|
||||||
"None" NonSelect, Gray
|
|
||||||
"" NonSelect
|
|
||||||
"Essential" NonSelect, Gray
|
|
||||||
"Hot" NonSelect, Gray
|
|
||||||
"In Progress" NonSelect, Gray
|
|
||||||
"Cool" NonSelect, Gray
|
|
||||||
"Personal" NonSelect, Gray
|
|
||||||
"Project 1" NonSelect, Gray
|
|
||||||
"Project 2" NonSelect, Gray
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu restart-sub
|
|
||||||
"Start twm" Action Restart twm
|
|
||||||
"Start fvwm" Action Restart fvwm
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu def-Special, Label "Special"
|
|
||||||
"Clean Up Desktop" Action Refresh
|
|
||||||
"Empty Trash" NonSelect, Gray
|
|
||||||
"" NonSelect
|
|
||||||
"Eject Disk" NonSelect, Gray
|
|
||||||
"Erase Disk..." NonSelect, Gray
|
|
||||||
"" NonSelect
|
|
||||||
"Start" SubMenu restart-sub
|
|
||||||
"Restart" Action Restart mlvwm
|
|
||||||
"Shut down" Action Exit
|
|
||||||
END
|
|
||||||
|
|
||||||
Menu def-Window
|
|
||||||
"Move" Action MoveWindow
|
|
||||||
"Resize" Action ResizeWindow
|
|
||||||
"Toggle Scroll" Action ToggleScroll
|
|
||||||
"" NonSelect
|
|
||||||
"Quit" Action KillWindow
|
|
||||||
END
|
|
||||||
|
|
||||||
# Swallow the application at menu
|
|
||||||
#Swallow "XEyes" Action Exec "xeyes" exec xeyes -geometry 25
|
|
||||||
Swallow "XClock" Action Exec "xclock" exec xclock -geometry 180x25 -digital -padding 5 -update 1
|
|
||||||
|
|
||||||
# Definition MenuBar
|
|
||||||
MenuBar default
|
|
||||||
def-File
|
|
||||||
def-Edit
|
|
||||||
def-View
|
|
||||||
def-Label
|
|
||||||
def-Special
|
|
||||||
def-Window
|
|
||||||
END
|
|
||||||
|
|
||||||
# Define the initial function
|
# Define the initial function
|
||||||
InitFunction
|
Read .initrc
|
||||||
Desk 1
|
|
||||||
Exec "xterm" xterm -ls -geometry 80x25 &
|
|
||||||
Wait xterm
|
|
||||||
Desk 0
|
|
||||||
Exec "xterm" xterm -ls -geometry 80x25 &
|
|
||||||
Wait xterm
|
|
||||||
END
|
|
||||||
|
|
||||||
# Define the restart function
|
# Define the restart function
|
||||||
RestartFunction
|
Read .restartrc
|
||||||
END
|
|
||||||
|
|
||||||
# Define the default window decoration
|
# Define the default window decoration
|
||||||
Style
|
Style
|
||||||
@ -208,5 +95,5 @@ Style
|
|||||||
END
|
END
|
||||||
|
|
||||||
# Read other configuration
|
# Read other configuration
|
||||||
Read Mlvwmrc-Xterm
|
#Read Mlvwmrc-Xterm
|
||||||
Read Mlvwmrc-Netscape
|
#Read Mlvwmrc-Netscape
|
||||||
|
2
.mlvwm/.restartrc
Normal file
2
.mlvwm/.restartrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
RestartFunction
|
||||||
|
END
|
88
.mlvwm/MenuBar
Normal file
88
.mlvwm/MenuBar
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
Menu def-File, Label "File", Left
|
||||||
|
"New Folder" NonSelect, Gray, Action Nop
|
||||||
|
"Open" NonSelect, Gray, Action Nop
|
||||||
|
"Print" NonSelect, Gray, Action Nop
|
||||||
|
"Close Window" NonSelect, Gray, Action Nop
|
||||||
|
"" NonSelect
|
||||||
|
"Get Info" NonSelect, Gray,Action Nop
|
||||||
|
"Duplicate" NonSelect, Gray, Action Nop
|
||||||
|
"" NonSelect
|
||||||
|
"Find..." NonSelect, Gray, Action Nop
|
||||||
|
"Find Again" NonSelect, Gray, Action Nop
|
||||||
|
"" NonSelect
|
||||||
|
"Page Setup..." NonSelect, Gray, Action Nop
|
||||||
|
"Print Desktop..." NonSelect, Gray, Action Nop
|
||||||
|
END
|
||||||
|
|
||||||
|
Menu def-Edit, Label "Edit"
|
||||||
|
"Undo" NonSelect, Gray, Action Nop
|
||||||
|
"" NonSelect
|
||||||
|
"Cut" NonSelect, Gray
|
||||||
|
"Copy" NonSelect, Gray
|
||||||
|
"Paste" NonSelect, Gray
|
||||||
|
"Clear" NonSelect, Gray
|
||||||
|
"Select All" NonSelect, Gray
|
||||||
|
"" NonSelect
|
||||||
|
"Show Clipboard" NonSelect, Gray
|
||||||
|
END
|
||||||
|
|
||||||
|
Menu def-View, Label "View"
|
||||||
|
"by Small Icon" NonSelect, Gray
|
||||||
|
"by Icon" NonSelect, Gray
|
||||||
|
"by Name" NonSelect, Gray
|
||||||
|
"by Size" NonSelect, Gray
|
||||||
|
"by Kind" NonSelect, Gray
|
||||||
|
"by Date" NonSelect, Gray
|
||||||
|
"by Version" NonSelect, Gray
|
||||||
|
END
|
||||||
|
|
||||||
|
Menu def-Label, Label "Label"
|
||||||
|
"None" NonSelect, Gray
|
||||||
|
"" NonSelect
|
||||||
|
"Essential" NonSelect, Gray
|
||||||
|
"Hot" NonSelect, Gray
|
||||||
|
"In Progress" NonSelect, Gray
|
||||||
|
"Cool" NonSelect, Gray
|
||||||
|
"Personal" NonSelect, Gray
|
||||||
|
"Project 1" NonSelect, Gray
|
||||||
|
"Project 2" NonSelect, Gray
|
||||||
|
END
|
||||||
|
|
||||||
|
Menu restart-sub
|
||||||
|
"Start twm" Action Restart twm
|
||||||
|
"Start fvwm" Action Restart fvwm
|
||||||
|
END
|
||||||
|
|
||||||
|
Menu def-Special, Label "Special"
|
||||||
|
"Clean Up Desktop" Action Refresh
|
||||||
|
"Empty Trash" NonSelect, Gray
|
||||||
|
"" NonSelect
|
||||||
|
"Eject Disk" NonSelect, Gray
|
||||||
|
"Erase Disk..." NonSelect, Gray
|
||||||
|
"" NonSelect
|
||||||
|
"Start" SubMenu restart-sub
|
||||||
|
"Restart" Action Restart mlvwm
|
||||||
|
"Shut down" Action Exit
|
||||||
|
END
|
||||||
|
|
||||||
|
Menu def-Window
|
||||||
|
"Move" Action MoveWindow
|
||||||
|
"Resize" Action ResizeWindow
|
||||||
|
"Toggle Scroll" Action ToggleScroll
|
||||||
|
"" NonSelect
|
||||||
|
"Quit" Action KillWindow
|
||||||
|
END
|
||||||
|
|
||||||
|
# Swallow the application at menu
|
||||||
|
#Swallow "XEyes" Action Exec "xeyes" exec xeyes -geometry 25
|
||||||
|
Swallow "XClock" Action Exec "xclock" exec xclock -geometry 180x25 -digital -padding 5 -update 1
|
||||||
|
|
||||||
|
# Definition MenuBar
|
||||||
|
MenuBar default
|
||||||
|
def-File
|
||||||
|
def-Edit
|
||||||
|
def-View
|
||||||
|
def-Label
|
||||||
|
def-Special
|
||||||
|
def-Window
|
||||||
|
END
|
6
.mlvwm/initrc
Normal file
6
.mlvwm/initrc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Read initrc
|
||||||
|
InitFunction
|
||||||
|
Desk 0
|
||||||
|
Exec "xterm" xterm -ls -geometry 80x25 &
|
||||||
|
Wait xterm
|
||||||
|
END
|
26
.mlvwm/themes/MacOS8
Normal file
26
.mlvwm/themes/MacOS8
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
## Enable MacOS 8 decoration feature
|
||||||
|
System8
|
||||||
|
|
||||||
|
## Draw move/resize line with dotted line
|
||||||
|
Compatible
|
||||||
|
|
||||||
|
## Enable Opaque Move
|
||||||
|
OpaqueMove
|
||||||
|
|
||||||
|
## Enable Opaque Resize
|
||||||
|
# OpaqueResize
|
||||||
|
|
||||||
|
## Enable one click menu
|
||||||
|
OneClickMenu
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Apple Menu
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Menu Apple, Icon label1.xpm, Stick
|
||||||
|
"About This Computer..." NonSelect, Gray, Action About
|
||||||
|
"" NonSelect
|
||||||
|
"Terminal" Icon mini-display.xpm, Action Exec "xterm" exec xterm
|
||||||
|
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
|
||||||
|
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
|
||||||
|
END
|
23
.mlvwm/themes/MacOS9
Normal file
23
.mlvwm/themes/MacOS9
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Enable MacOS 8 decoration feature
|
||||||
|
System8
|
||||||
|
|
||||||
|
## Enable Opaque Move
|
||||||
|
OpaqueMove
|
||||||
|
|
||||||
|
## Enable Opaque Resize
|
||||||
|
OpaqueResize
|
||||||
|
|
||||||
|
## Enable one click menu
|
||||||
|
OneClickMenu
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Apple Menu
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Menu Apple, Icon label1.xpm, Stick
|
||||||
|
"About This Computer..." NonSelect, Gray, Action About
|
||||||
|
"" NonSelect
|
||||||
|
"Terminal" Icon mini-display.xpm, Action Exec "xterm" exec xterm
|
||||||
|
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
|
||||||
|
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
|
||||||
|
END
|
14
.mlvwm/themes/System7
Normal file
14
.mlvwm/themes/System7
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## Draw move/resize line with dotted line
|
||||||
|
Compatible
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Apple Menu
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Menu Apple, Icon label1.xpm, Stick
|
||||||
|
"About This Computer..." NonSelect, Gray, Action About
|
||||||
|
"" NonSelect
|
||||||
|
"Terminal" Icon mini-display.xpm, Action Exec "xterm" exec xterm
|
||||||
|
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
|
||||||
|
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
|
||||||
|
END
|
Loading…
Reference in New Issue
Block a user