cancel
Showing results for 
Search instead for 
Did you mean: 

Workspace menu

SOLVED
Go to solution
Onan Coca
Occasional Visitor

Workspace menu

I want to add sreen hardcopy and windows hardcopy (printing capability) to the Workspace Menu drop dow box on a Unix desktop.
Thank you,
Onan
2 REPLIES
Sachin Patel
Honored Contributor

Re: Workspace menu

Hi Onan,
you need a file called sys.dtwmrc in to /etc/dt/config/C directory. I am pasting simple menufile

Menu DtRootMenu
{
"Selection Menu (Generic)" f.title
"User Servers" f.menu "UserServers"
"C-360" f.menu "C-360"
"Screen Dump f.menu "ScreeDump"
}
Menu UserServers
{
"User Server Systems" f.title
no-label f.separator
"Arthur" f.exec " dtterm -title Arthur -n Arthur -e rlogin arthur"
}
Menu C-360
{
"C--360 Systems" f.title
no-label f.separator
"Beadyis" f.exec " dtterm -title Bead -n Bead -e rlogin bead "
}
Menu ScreenDump
{
"ScreenDump" f.title
no-label f.separator
"B&W Printers" f.title
"ps1" f.exec "xwd -nobdrs | xwd2sb | pcltrans -C -P -r 300 | lp -oraw -dps1_1"
}

Sachin

Is photography a hobby or another way to spend $
Wodisch
Honored Contributor
Solution

Re: Workspace menu

Hello Onan,

just copy the "sys.dtwmrc" that Sachin mentions
into you local "$HOME/.dt" directory and name
it "dtwmrc". Then modify it, save it, and do a
right-mouse-click into the workspace/background
to pop up the "Workspace Menu" and select
"Restart Workspace Manager" to activate it.
The modification could look like:

Menu DtRootMenu
{
"Workspace Menu" f.title
"Shuffle Up" f.circle_up
"Shuffle Down" f.circle_down
"Refresh" f.refresh
"Min/Rest Front Panel" f.toggle_frontpanel
no-label f.separator
"Restart Workspace Manager..." f.restart
no-label f.separator
"Print Screen" f.exec "xwd -root|xpr|lp -or"
"Print Window" f.exec "xwd -frame|xpr|lp -or"
no-label f.separator
"Log out..." f.action ExitSession
}

Next time you want to do a print-screen, just
right-mouse click into the background, select
the proper "Print..." and there you are.

HTH,
Wodisch
BTW: this does use the "default" printer.