Files
wmaker/WindowMaker/menu.fi
T

218 lines
8.4 KiB
Plaintext
Raw Normal View History

1998-09-29 22:36:29 +00:00
/*
* Root Menu definition for WindowMaker
*
* Syntax is:
*
2000-04-02 20:47:28 +00:00
* <Title> [SHORTCUT <Shortcut>] <Command> <Parameters>
1998-09-29 22:36:29 +00:00
*
* <Title> is any string to be used as title. Must be enclosed with " if it
* has spaces
2000-04-02 20:47:28 +00:00
*
* SHORTCUT specifies a shortcut for that item. <Shortcut> has the
* same syntax of the shortcuts key options in the
* $HOME/GNUstep/Defaults/WindowMaker file, such as RootMenuKey or MiniaturizeKey.
1998-09-29 22:36:29 +00:00
*
2000-04-02 20:47:28 +00:00
* You can't specify a shortcut for a MENU or OPEN_MENU entry.
*
1998-09-29 22:36:29 +00:00
* <Command> one of the valid commands:
* MENU - starts (sub)menu definition
2000-04-02 20:47:28 +00:00
* END - end (sub)menu definition
1998-09-29 22:36:29 +00:00
* OPEN_MENU - opens a menu from a file, pipe or directory(ies) contents
* and eventually precede each with a command.
2000-04-02 20:47:28 +00:00
* WORKSPACE_MENU - adds a submenu for workspace operations. Only one
* workspace_menu is allowed.
1998-09-29 22:36:29 +00:00
* EXEC <program> - executes an external program
1999-05-01 23:15:43 +00:00
* SHEXEC <command> - executes a shell command (like gimp > /dev/null)
1998-09-29 22:36:29 +00:00
* EXIT - exits the window manager
* RESTART [<window manager>] - restarts WindowMaker or start another
* window manager
* REFRESH - refreshes the desktop
* ARRANGE_ICONS - rearranges the icons on the workspace
* SHUTDOWN - kills all clients (and close the X window session)
* SHOW_ALL - unhides all windows on workspace
* HIDE_OTHERS - hides all windows on the workspace, except the
* focused one (or the last one that received focus)
* SAVE_SESSION - saves the current state of the desktop, which include
* all running applications, all their hints (geometry,
* position on screen, workspace they live on, the dock
* or clip from where they were launched, and
* if minimized, shaded or hidden. Also saves the current
* workspace the user is on. All will be restored on every
* start of windowmaker until another SAVE_SESSION or
* CLEAR_SESSION is used. If SaveSessionOnExit = Yes; in
* WindowMaker domain file, then saving is automatically
* done on every windowmaker exit, overwriting any
* SAVE_SESSION or CLEAR_SESSION (see below).
* CLEAR_SESSION - clears any previous saved session. This will not have
* any effect if SaveSessionOnExit is True.
2000-04-02 20:47:28 +00:00
* INFO - shows the Info Panel
1998-09-29 22:36:29 +00:00
*
* OPEN_MENU syntax:
* 1. File menu handling.
* // opens file.menu which must contain a valid menu file and inserts
* // it in current position
* OPEN_MENU file.menu
* 2. Pipe menu handling.
* // opens command and uses it's stdout to construct menu.
* // Command's output must be a valid menu description.
* // The space between '|' and command itself is optional.
* OPEN_MENU | command
* 3. Directory handling.
* // Opens one or more directories and construct a menu with all
* // the subdirectories and executable files in them sorted
* // alphabetically.
* OPEN_MENU /some/dir [/some/other/dir ...]
* 4. Directory handling with command.
* // Opens one or more directories and construct menu with all
* // subdirectories and readable files in them sorted alphabetically,
* // preceding each of them with command.
2000-04-02 20:47:28 +00:00
* OPEN_MENU [options] /some/dir [/some/other/dir ...] WITH command -options
* Options:
* -noext strip whatever is after the last dot in the
* file name
1998-09-29 22:36:29 +00:00
*
* <Parameters> is the program to execute.
*
* ** Options for command line in EXEC:
* %s - substitute with current selection
2000-04-02 20:47:28 +00:00
* %a(title[,prompt]) - opens a input box with the specified title and the
* optional prompt and do substitution with what you typed
1998-09-29 22:36:29 +00:00
* %w - substitute with XID for the current focused window
2000-04-02 20:47:28 +00:00
* %W - substitute with the number of the current workspace
*
1998-09-29 22:36:29 +00:00
* You can override special characters (as % and ") with the \ character:
* ex: xterm -T "\"Hello World\""
*
* You can also use character escapes, like \n
*
* Each MENU statement must have one mathching END statement at the end.
*
* Example:
*
* "Test" MENU
* "XTerm" EXEC xterm
* // creates a submenu with the contents of /usr/openwin/bin
* "XView apps" OPEN_MENU "/usr/openwin/bin"
* // some X11 apps in different directories
* "X11 apps" OPEN_MENU /usr/X11/bin $HOME/bin/X11
1998-09-29 22:36:29 +00:00
* // set some background images
2000-04-02 20:47:28 +00:00
* "Background" OPEN_MENU -noext $HOME/images /usr/share/images WITH wmsetbg -u -t
1998-09-29 22:36:29 +00:00
* // inserts the style.menu in this entry
* "Style" OPEN_MENU style.menu
* "Test" END
*/
#include "wmmacros"
"Sovellukset" MENU
"Tietoja" MENU
2000-04-02 20:47:28 +00:00
"Tietoja..." INFO_PANEL
"Laillista" LEGAL_PANEL
2004-10-17 04:32:25 +00:00
"Järjestelmäkonsoli" EXEC xconsole
"Järjestelmän rasitus" SHEXEC xosview || xload
2000-04-02 20:47:28 +00:00
"Prosessiluettelo" EXEC xterm -e top
"Ohjeselain" EXEC xman
"Tietoja" END
2004-10-17 04:32:25 +00:00
"Käynnistä..." SHEXEC %a(Käynnistä,Kirjoita suoritettava komento:)
1998-09-29 22:36:29 +00:00
"XTerm" EXEC xterm -sb
"Rxvt" EXEC rxvt -bg black -fg white -fn fixed
2004-10-17 04:32:25 +00:00
"Työtilat" WORKSPACE_MENU
1998-09-29 22:36:29 +00:00
"Sovellukset" MENU
"Grafiikka" MENU
1999-05-01 23:15:43 +00:00
"Gimp" SHEXEC gimp >/dev/null
1998-09-29 22:36:29 +00:00
"XV" EXEC xv
"XPaint" EXEC xpaint
"XFig" EXEC xfig
"Grafiikka" END
2000-04-02 20:47:28 +00:00
"X Tiedostonhallinta" EXEC xfm
"OffiX Tiedostot" EXEC files
1998-09-29 22:36:29 +00:00
"LyX" EXEC lyx
"Netscape" EXEC netscape
2004-10-17 04:32:25 +00:00
"Ghostview" EXEC ghostview %a(GhostView,Kirjoita näytettävän tiedoston nimi:)
"Acrobat" EXEC /usr/local/Acrobat3/bin/acroread %a(Acrobat,Kirjoita näytettävän PDF-tiedoston nimi)
1998-09-29 22:36:29 +00:00
"TkDesk" EXEC tkdesk
"Sovellukset" END
"Editorit" MENU
"XFte" EXEC xfte
1999-05-01 23:15:43 +00:00
"XEmacs" SHEXEC xemacs || emacs
1998-09-29 22:36:29 +00:00
"XJed" EXEC xjed
"NEdit" EXEC nedit
"Xedit" EXEC xedit
"VI" EXEC xterm -e vi
"Editorit" END
2000-04-02 20:47:28 +00:00
"Sekalaiset" MENU
1999-05-01 23:15:43 +00:00
"Xmcd" SHEXEC xmcd 2> /dev/null
1998-09-29 22:36:29 +00:00
"Xplaycd" EXEC xplaycd
"Xmixer" EXEC xmixer
2000-04-02 20:47:28 +00:00
"Sekalaiset" END
"Apuohjelmat" MENU
1998-09-29 22:36:29 +00:00
"Laskin" EXEC xcalc
2000-04-02 20:47:28 +00:00
"Ikkunan ominaisuudet" SHEXEC xprop | xmessage -center -title 'xprop' -file -
"Kirjasinlajivalitsin" EXEC xfontsel
2004-10-17 04:32:25 +00:00
"Pääte" EXEC xminicom
2000-04-02 20:47:28 +00:00
"Suurennuslasi" EXEC xmag
2004-10-17 04:32:25 +00:00
"Värikartta" EXEC xcmap
1998-09-29 22:36:29 +00:00
"XKill" EXEC xkill
2004-10-17 04:32:25 +00:00
"Leikepöytä" EXEC xclipboard
2000-04-02 20:47:28 +00:00
"Apuohjelmat" END
1998-09-29 22:36:29 +00:00
2000-04-02 20:47:28 +00:00
"Valinta" MENU
1999-05-01 23:15:43 +00:00
"Kopioi" SHEXEC echo '%s' | wxcopy
2004-10-17 04:32:25 +00:00
"Lähetä sähköpostina" EXEC xterm -name mail -T "Pine" -e pine %s
2000-04-02 20:47:28 +00:00
"Selaa selaimella" EXEC netscape %s
"Etsi ohjeista" SHEXEC MANUAL_SEARCH(%s)
"Valinta" END
1998-09-29 22:36:29 +00:00
2004-10-17 04:32:25 +00:00
"Työtila" MENU
1998-09-29 22:36:29 +00:00
"Piilota muut" HIDE_OTHERS
2004-10-17 04:32:25 +00:00
"Näytä kaikki ikkunat" SHOW_ALL
"Järjestä kuvakkeet" ARRANGE_ICONS
"Virkistä ruutu" REFRESH
"Lukitse näyttö" EXEC xlock -allowroot -usefirst
2000-04-02 20:47:28 +00:00
"Tallenna istunto" SAVE_SESSION
2004-10-17 04:32:25 +00:00
"Tyhjennä istunto" CLEAR_SESSION
"Työtila" END
1998-09-29 22:36:29 +00:00
2004-10-17 04:32:25 +00:00
"Ulkonäkö" MENU
2000-04-02 20:47:28 +00:00
"Teemat" OPEN_MENU -noext THEMES_DIR $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle
"Tyylit" OPEN_MENU -noext STYLES_DIR $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle
"Kuvakkeet" OPEN_MENU -noext ICON_SETS_DIR $HOME/GNUstep/Library/WindowMaker/IconSets WITH seticons
1998-09-29 22:36:29 +00:00
"Taustat" MENU
2004-10-17 04:32:25 +00:00
"Yksivärinen" MENU
1998-09-29 22:36:29 +00:00
"Musta" WS_BACK '(solid, black)'
"Sininen" WS_BACK '(solid, "#505075")'
"Indigo" WS_BACK '(solid, "#243e6c")'
2000-04-02 20:47:28 +00:00
"Tummansininen" WS_BACK '(solid, "#224477")'
"Violetti" WS_BACK '(solid, "#554466")'
2004-10-17 04:32:25 +00:00
"Kellertävä" WS_BACK '(solid, "wheat4")'
2000-04-02 20:47:28 +00:00
"Tummanharmaa" WS_BACK '(solid, "#333340")'
"Viininpunainen" WS_BACK '(solid, "#400020")'
2004-10-17 04:32:25 +00:00
"Yksivärinen" END
"Liukuväri" MENU
2000-04-02 20:47:28 +00:00
"Auringonlasku" WS_BACK '(mvgradient, deepskyblue4, black, deepskyblue4, tomato4)'
1998-09-29 22:36:29 +00:00
"Taivas" WS_BACK '(vgradient, blue4, white)'
2004-10-17 04:32:25 +00:00
"Sinisen sävyjä" WS_BACK '(vgradient, "#7080a5", "#101020")'
"Indigon sävyjä" WS_BACK '(vgradient, "#746ebc", "#242e4c")'
"Violetin sävyjä" WS_BACK '(vgradient, "#654c66", "#151426")'
"Kellertävän sävyjä" WS_BACK '(vgradient, "#a09060", "#302010")'
"Harmaan sävyjä" WS_BACK '(vgradient, "#636380", "#131318")'
"Viininpunaisen sävyjä" WS_BACK '(vgradient, "#600040", "#180010")'
"Liukuväri" END
2000-04-02 20:47:28 +00:00
"Kuvat" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
1998-09-29 22:36:29 +00:00
"Taustat" END
2000-04-02 20:47:28 +00:00
"Tallenna teema" SHEXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(Teeman nimi,Kirjoita teematiedoston nimi:)"
"Tallenna kuvakkeet" SHEXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(Kuvakesetin nimi,Kirjoita tiedostonnimi:)"
"Asetukset" EXEC /usr/local/GNUstep/Applications/WPrefs.app/WPrefs
2004-10-17 04:32:25 +00:00
"Ulkonäkö" END
1998-09-29 22:36:29 +00:00
2000-04-02 20:47:28 +00:00
"Lopeta" MENU
2004-10-17 04:32:25 +00:00
"Käynnistä WM uudelleen" RESTART
"Käynnistä BlackBox" RESTART blackbox
"Käynnistä kwm" RESTART kwm
"Käynnistä IceWM" RESTART icewm
2000-04-02 20:47:28 +00:00
"Lopeta" EXIT
"Lopeta" END
1998-09-29 22:36:29 +00:00
"Sovellukset" END