From 3aeb1eb052b114200c09430f99fa4730648a8dd4 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 11 Jan 1999 12:39:35 +0000 Subject: [PATCH] Oops... I still forgot to add some files in WindowMaker submenu. Here they go. --- WindowMaker/plmenu | 104 +++++++++++++++++++++ WindowMaker/plmenu.fr | 101 ++++++++++++++++++++ WindowMaker/plmenu.hr | 213 ++++++++++++++++++++++++++++++++++++++++++ WindowMaker/wmmacros | 73 +++++++++++++++ 4 files changed, 491 insertions(+) create mode 100644 WindowMaker/plmenu create mode 100644 WindowMaker/plmenu.fr create mode 100644 WindowMaker/plmenu.hr create mode 100644 WindowMaker/wmmacros diff --git a/WindowMaker/plmenu b/WindowMaker/plmenu new file mode 100644 index 00000000..500bd67d --- /dev/null +++ b/WindowMaker/plmenu @@ -0,0 +1,104 @@ +("Applications", + ("Info", + ("Info Panel...", INFO_PANEL), + ("Legal...", LEGAL_PANEL), + ("System Console", EXEC, "xconsole"), + ("System Load", EXEC, "xosview || xload"), + ("Process List", EXEC, "xterm -e top"), + ("Manual Browser", EXEC, "xman") + ), + ("Run", EXEC, "%a(Run,Type command to run:)"), + ("XTerm", EXEC, "xterm -sb"), + ("Rxvt", EXEC, "rxvt -bg black -fg white -fn fixed"), + ("Workspaces", WORKSPACE_MENU), + ("Applications", + ("Graphics", + ("Gimp", EXEC, "gimp >/dev/null"), + ("XV", EXEC, "xv"), + ("XPaint", EXEC, "xpaint"), + ("XFig", EXEC, "xfig") + ), + ("X File Manager", EXEC, "xfm"), + ("OffiX Files", EXEC, "files"), + ("LyX", EXEC, "lyx"), + ("Netscape", EXEC, "netscape"), + ("Ghostview", EXEC, "ghostview %a(Enter file to view)"), + ("Acrobat", EXEC, "/usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)"), + ("TkDesk", EXEC, "tkdesk") + ), + ("Editors", + ("XFte", EXEC, "xfte"), + ("XEmacs", EXEC, "xemacs || emacs"), + ("XJed", EXEC, "xjed"), + ("NEdit", EXEC, "nedit"), + ("Xedit", EXEC, "xedit"), + ("VI", EXEC, "xterm -e vi") + ), + ("Miscellaneous", + ("Xmcd", EXEC, "xmcd 2> /dev/null"), + ("Xplaycd", EXEC, "xplaycd"), + ("Xmixer", EXEC, "xmixer") + ), + ("Utils", + ("Calculator", EXEC, "xcalc"), + ("Window Properties", EXEC, "xprop | xmessage -center -title 'xprop' -file -"), + ("Font Chooser", EXEC, "xfontsel"), + ("Terminal Emulator", EXEC, "xminicom"), + ("Magnify", EXEC, "xmag"), + ("Colormap", EXEC, "xcmap"), + ("XKill", EXEC, "xkill"), + ("ASClock", EXEC, "asclock -shape"), + ("Clipboard", EXEC, "xclipboard") + ), + ("Selection", + ("Copy", EXEC, "echo '%s' | wxcopy"), + ("Mail To", EXEC, "xterm -name mail -T Pine -e pine %s"), + ("Navigate", EXEC, "netscape %s"), + ("Search in Manual", EXEC, "MANUAL_SEARCH(%s)") + ), + ("Workspace", + ("Hide Others", HIDE_OTHERS), + ("Show All", SHOW_ALL), + ("Arrange Icons", ARRANGE_ICONS), + ("Refresh", REFRESH), + ("Lock", EXEC, "xlock -allowroot -usefirst"), + ("Save Session", SAVE_SESSION), + ("Clear Saved Session", CLEAR_SESSION) + ), + ("Appearance", + ("Themes", OPEN_MENU, "-noext #wmdatadir#/Themes ~/GNUstep/Library/WindowMaker/Themes WITH setstyle"), + ("Styles", OPEN_MENU, "-noext #wmdatadir#/Styles ~/GNUstep/Library/WindowMaker/Styles WITH setstyle"), + ("Icon Sets", OPEN_MENU, "-noext #wmdatadir#/IconSets ~/GNUstep/Library/WindowMaker/IconSets WITH seticons"), + ("Background", + ("Solid", + ("Black", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, black)'"), + ("Blue", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#505075\")'"), + ("Indigo", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#243e6c\")'"), + ("Deep Blue", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#180090\")'"), + ("Purple", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#554466\")'"), + ("Wheat", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, wheat4)'"), + ("Dark Gray", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#333340\")'"), + ("Wine", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#400020\")'") + ), + ("Gradient", + ("Sunset", EXEC, "wdwrite WindowMaker WorkspaceBack '(mvgradient, deepskyblue4, black, deepskyblue4, tomato4)'"), + ("Sky", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, blue4, white)'"), + ("Blue Shades", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#7080a5\", \"#101020\")'"), + ("Indigo Shades", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#746ebc\", \"#242e4c\")'"), + ("Purple Shades", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#654c66\", \"#151426\")'"), + ("Wheat Shades", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#a09060\", \"#302010\")'"), + ("Grey Shades", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#636380\", \"#131318\")'"), + ("Wine Shades", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#600040\", \"#180010\")'") + ), + ("Images", OPEN_MENU, "-noext #wmdatadir#/Backgrounds ~/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t") + ), + ("Save Theme", EXEC, "getstyle -t ~/GNUstep/Library/WindowMaker/Themes/\"%a(Theme name)\""), + ("Save IconSet", EXEC, "geticonset ~/GNUstep/Library/WindowMaker/IconSets/\"%a(IconSet name)\"") + ), + ("Exit", + ("Restart", RESTART), + ("Start AfterStep", RESTART, afterstep), + ("Exit...", EXIT), + ("Kill session...", SHUTDOWN) + ) +) diff --git a/WindowMaker/plmenu.fr b/WindowMaker/plmenu.fr new file mode 100644 index 00000000..602dcacb --- /dev/null +++ b/WindowMaker/plmenu.fr @@ -0,0 +1,101 @@ +("Applications", + ("Informations", + ("Panneau d'informations", INFO_PANEL), + ("Panneau d'informations légales", LEGAL_PANEL), + ("Console système", EXEC, "xconsole"), + ("Charge système", EXEC, "xosview || xload"), + ("Liste des processus", EXEC, "xterm -e top"), + ("Butineur d'aide", EXEC, "xman") + ), + ("Terminal X", EXEC, "xterm -sb"), + ("Rxvt", EXEC, "rxvt -bg black -fg white -fn fixed"), + ("Espaces de travail", WORKSPACE_MENU), + ("Applications", + ("Graphismes", + ("Gimp", EXEC, "gimp >/dev/null"), + ("XV", EXEC, "xv"), + ("XPaint", EXEC, "xpaint"), + ("XFig", EXEC, "xfig") + ), + ("Xfm", EXEC, "xfm"), + ("OffiX Files", EXEC, "files"), + ("LyX", EXEC , "lyx"), + ("Netscape", EXEC, "netscape"), + ("Ghostview", EXEC, "ghostview %a(Entrez un fichier)"), + ("Acrobat", EXEC, "/usr/local/Acrobat3/bin/acroread %a(Entrez un fichier PDF)"), + ("TkDesk", EXEC, "tkdesk") + ), + ("Editeurs", + ("XFte", EXEC, "xfte"), + ("XEmacs", EXEC, "xemacs || emacs"), + ("XJed", EXEC, "xjed"), + ("NEdit", EXEC, "nedit"), + ("Xedit", EXEC, "xedit"), + ("VI", EXEC, "xterm -e vi") + ), + ("Divers", + ("Xmcd", EXEC, "xmcd 2> /dev/null"), + ("Xplaycd", EXEC, "xplaycd"), + ("Xmixer", EXEC, "xmixer") + ), + ("Utilitaires", + ("Calculatrice", EXEC, "xcalc"), + ("Propriétés de la fenêtre", EXEC, "xprop | xmessage -center -title 'xprop' -file -"), + ("Sélecteur de polices", EXEC, "xfontsel"), + ("Emulateur de terminal", EXEC, "xminicom"), + ("Loupe", EXEC, "xmag"), + ("Carte des couleurs", EXEC, "xcmap"), + ("XKill", EXEC, "xkill"), + ("ASClock", EXEC, "asclock -shape"), + ("Sélections", EXEC, "xclipboard") + ), + ("Sélection", + ("Copier", EXEC, "echo '%s' | wxcopy"), + ("Envoyer à", EXEC, "xterm -name mail -T Pine -e pine %s"), + ("Naviguer", EXEC, "netscape %s"), + ("Rechercher dans le manuel", EXEC, "MANUAL_SEARCH(%s)") + ), + ("Espace de travail", + ("Cacher les autres fenêtres", HIDE_OTHERS), + ("Montrer toutes les fenêtres", SHOW_ALL), + ("Arranger les icônes", ARRANGE_ICONS), + ("Retracer l'écran", REFRESH), + ("Vérrouiller", EXEC, "xlock -allowroot -usefirst"), + ("Sauver la session", SAVE_SESSION), + ("Effacer la session", CLEAR_SESSION) + ), + ("Apparence", + ("Thèmes", OPEN_MENU, "#wmdatadir#/Themes ~/GNUstep/Library/WindowMaker/Themes WITH setstyle"), + ("Styles", OPEN_MENU, "#wmdatadir#/Styles ~/GNUstep/Library/WindowMaker/Styles WITH setstyle"), + ("Jeu d'icônes", OPEN_MENU, "#wmdatadir#/IconSets ~/GNUstep/Library/WindowMaker/IconSets WITH seticons"), + ("Fond d'écran", + ("Unifié", + ("Noir", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, black)'"), + ("Bleu", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#505075\")'"), + ("Violet", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#554466\")'"), + ("Blanc crème", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, wheat4)'"), + ("Gris foncé", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#333340\")'"), + ("Bordeaux", EXEC, "wdwrite WindowMaker WorkspaceBack '(solid, \"#400020\")'") + ), + ("Degradé", + ("Coucher de Soleil", EXEC, "wdwrite WindowMaker WorkspaceBack '(mvgradient, deepskyblyblue4, black, deepskyblue4, tomato4)'"), + ("Ciel", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, blue4, white)'"), + ("Dégradés de Bleu", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#7080a5\", \"#101020\")'"), + ("Dégradés d'Indigo", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#746ebc\", \"#242e4c\")'"), + ("Dégradés de Violet", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#654c66\", \"#151426\")'"), + ("Dégradés de Beige", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#a09060\", \"#302010\")'"), + ("Dégradés de Gris", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#636380\", \"#131318\")'"), + ("Dégradés de Bordeau", EXEC, "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#600040\", \"#180010\")'") + ), + ("Images", OPEN_MENU, "#wmdatadir#/Backgrounds ~/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t") + ), + ("Sauver le thème", EXEC, "getstyle -t ~/GNUstep/Library/WindowMaker/Themes /\"%a(Theme name)\""), + ("Sauver le jeu d'icônes", EXEC, "geticonset ~/GNUstep/Library/WindowMaker/IconSets /\"%a(IconSet name)\"") + ), + ("Quitter", + ("Redémarrer", RESTART), + ("Démarrer AfterStep", RESTART, afterstep), + ("Quitter...", EXIT), + ("Tuer la session...", SHUTDOWN) + ) +) diff --git a/WindowMaker/plmenu.hr b/WindowMaker/plmenu.hr new file mode 100644 index 00000000..cd32f8fc --- /dev/null +++ b/WindowMaker/plmenu.hr @@ -0,0 +1,213 @@ +( + Programi, + ( + Info, + ("Info Panel...", INFO_PANEL), + (Legal..., LEGAL_PANEL), + ("Sistemska konzola", EXEC, xconsole), + ("Optere\346enje sistema", EXEC, "xosview || xload"), + ("Lista procesa", EXEC, "xterm -e top"), + ("Pretra\276iva\350 manuala", EXEC, xman) + ), + (XTerm, EXEC, "xterm -sb"), + (Rxvt, EXEC, "rxvt -bg black -fg white -fn fixed"), + ("Radni Prostori", WORKSPACE_MENU), + ( + Programi, + ( + Grafika, + (Gimp, EXEC, "gimp >/dev/null"), + (XV, EXEC, xv), + (XPaint, EXEC, xpaint), + (XFig, EXEC, xfig) + ), + ("X File Manager", EXEC, xfm), + ("OffiX Files", EXEC, files), + (LyX, EXEC, lyx), + (Netscape, EXEC, netscape), + (Ghostview, EXEC, "ghostview %a(Enter file to view)"), + ( + Acrobat, + EXEC, + "/usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)" + ), + (TkDesk, EXEC, tkdesk) + ), + ( + Editori, + (XFte, EXEC, xfte), + (XEmacs, EXEC, "xemacs || emacs"), + (XJed, EXEC, xjed), + (NEdit, EXEC, nedit), + (Xedit, EXEC, xedit), + (VI, EXEC, "xterm -e vi") + ), + ( + Razno, + (Xmcd, EXEC, "xmcd 2> /dev/null"), + (Xplaycd, EXEC, xplaycd), + (Xmixer, EXEC, xmixer) + ), + ( + "Pomo\346ni programi", + (Kalkulator, EXEC, xcalc), + ( + "Postavke prozora", + EXEC, + "xprop | xmessage -center -title 'xprop' -file -" + ), + ("Bira\350 fontova", EXEC, xfontsel), + ("Emulator terminala", EXEC, xminicom), + ("Pove\346alo", EXEC, xmag), + (Colormap, EXEC, xcmap), + (XKill, EXEC, xkill), + (ASClock, EXEC, "asclock -shape"), + (Clipboard, EXEC, xclipboard) + ), + ( + Odabir, + (Kopiraj, EXEC, "echo '%s' | wxcopy"), + ("Po\271alji e-mail", EXEC, "xterm -name mail -T Pine -e pine %s"), + ("Otvori web", EXEC, "netscape %s"), + ("Potra\276i u manualu", EXEC, "MANUAL_SEARCH(%s)") + ), + ( + "Radni prostor", + ("Sakrij ostale", HIDE_OTHERS), + ("Poka\276i sve", SHOW_ALL), + ("Pospremi ikone", ARRANGE_ICONS), + ("Osvje\276i", REFRESH), + ("Zaklju\350aj", EXEC, "xlock -allowroot -usefirst"), + ("Snimi session", SAVE_SESSION), + ("O\350isti snimljeni Session", CLEAR_SESSION) + ), + ( + Izgled, + ( + Teme, + OPEN_MENU, + "-noext /usr/local/share/WindowMaker/Themes ~/GNUstep/Library/WindowMaker/Themes WITH setstyle" + ), + ( + Stilovi, + OPEN_MENU, + "-noext /usr/local/share/WindowMaker/Styles ~/GNUstep/Library/WindowMaker/Styles WITH setstyle" + ), + ( + "Setovi ikona", + OPEN_MENU, + "-noext /usr/local/share/WindowMaker/IconSets ~/GNUstep/Library/WindowMaker/IconSets WITH seticons" + ), + ( + Pozadina, + ( + Boja, + ( + Crna, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, black)'" + ), + ( + Plava, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, \"#505075\")'" + ), + ( + Indigo, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, \"#243e6c\")'" + ), + ( + "Duboko Plava", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, \"#180090\")'" + ), + ( + Purpurna, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, \"#554466\")'" + ), + ( + Pustinjska, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, wheat4)'" + ), + ( + "Tamno siva", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, \"#333340\")'" + ), + ( + Vinska, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(solid, \"#400020\")'" + ) + ), + ( + Preljevi, + ( + "Zalazak sunca", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(mvgradient, deepskyblue4, black, deepskyblue4, tomato4)'" + ), + ( + Nebo, + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, blue4, white)'" + ), + ( + "Plave nijanse", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#7080a5\", \"#101020\")'" + ), + ( + "Indigo nijanse", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#746ebc\", \"#242e4c\")'" + ), + ( + "Purpurne nijanse", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#654c66\", \"#151426\")'" + ), + ( + "Pustinjske nijanse", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#a09060\", \"#302010\")'" + ), + ( + "Sive nijanse", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#636380\", \"#131318\")'" + ), + ( + "Vinske nijanse", + EXEC, + "wdwrite WindowMaker WorkspaceBack '(vgradient, \"#600040\", \"#180010\")'" + ) + ), + ( + Slike, + OPEN_MENU, + "-noext /usr/local/share/WindowMaker/Backgrounds ~/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t" + ) + ), + ( + "Snimi temu", + EXEC, + "getstyle -t ~/GNUstep/Library/WindowMaker/Themes/\"%a(Theme name)\"" + ), + ( + "Snimi set ikona", + EXEC, + "geticonset ~/GNUstep/Library/WindowMaker/IconSets/\"%a(IconSet name)\"" + ) + ), + ( + Izlaz, + ("Ponovo startaj", RESTART), + ("Startaj AfterStep", RESTART, afterstep), + (Izlaz..., EXIT), + ("Izlaz iz sessiona...", SHORTCUT, "Mod1+e", SHUTDOWN, QUICK) + ), +) diff --git a/WindowMaker/wmmacros b/WindowMaker/wmmacros new file mode 100644 index 00000000..fd597414 --- /dev/null +++ b/WindowMaker/wmmacros @@ -0,0 +1,73 @@ +/* + * Some generic macros for WindowMaker configuration files + * + */ + +#ifndef WMMACROS_ +#define WMMACROS_ + +#define HAVE_XLESS + +/* + * WS_BACK - sets the root background texture to VAL + */ +#define WS_BACK EXEC wdwrite WindowMaker WorkspaceBack + +/* + * CLEARROOT - set the root background to nothing + */ +#define CLEARROOT xsetroot + + +/* + * SETSTYLE FILE - loads a style file + */ +#define SETSTYLE EXEC cd $HOME/GNUstep/Library/WindowMaker/Styles; setstyle + + +/* + * + * MANUAL_SEARCH(ITEM) - search manual page for ITEM + * + * You might need to change this according to what's the exit status of your + * man(1). This is for the one that comes with Linux (RedHat) + */ +#ifdef HAVE_XLESS +#define MANUAL_SEARCH(ITEM) \ + if ( man ITEM > /dev/null ); then \ + man ITEM | xless;\ + else \ + xmessage -center -title "Manual Browser" \ + Sorry, but there is no manual page \ + entry for ITEM...;\ + fi +#else +#define MANUAL_SEARCH(ITEM) \ + if ( man ITEM > /dev/null ); then \ + xterm -e man ITEM; \ + else \ + xmessage -center -title "Manual Browser" \ + Sorry, but there is no manual page \ + entry for ITEM...;\ + fi +#endif + + +/* + * Paths to system configuration directories + */ +#define THEMES_DIR #wmdatadir#/Themes +#define STYLES_DIR #wmdatadir#/Styles +#define ICON_SETS_DIR #wmdatadir#/IconSets +#define SOUND_SETS_DIR #wmdatadir#/SoundSets +#define BACKGROUNDS_DIR #wmdatadir#/Backgrounds + + +#define StaticGray 0 +#define GrayScale 1 +#define StaticColor 2 +#define PseudoColor 3 +#define TrueColor 4 +#define DirectColor 5 + +#endif