Difference between revisions of "WindowMaker"

From Hugo Villeneuve
Jump to: navigation, search
(Comment avoir un icone pour une application qu n'en n'a pas)
Line 100: Line 100:
   
 
1. Right click on the title bar
 
1. Right click on the title bar
  +
 
2. Click Attributes
 
2. Click Attributes
  +
 
3. Select Advanced Options from the pull down menu
 
3. Select Advanced Options from the pull down menu
  +
 
4. Select Emulate Application Icon
 
4. Select Emulate Application Icon
  +
 
5. Click Save
 
5. Click Save

Revision as of 22:17, 29 October 2020

Running multiple instances of xterm

Go to the Attributes menu -> Application Specific and select "No application icon" for XTerm.

Then right-click on the docked appicon and select settings. Change the Application Path with arguments section to:

   /bin/sh -c "exec xterm &"

Or:

   /bin/sh -c "exec gnome-terminal &"

Note:

Avec WindowMaker 0.95.4, ça ne semble plus être nécessaire. Il suffit de lancer:

 uxterm


Pour faire capturer un script par le dock

Exemple avec script Kermit

   gnome-terminal --geometry=160x53+380+10 --disable-factory --profile=kermit --title="Kermit   /dev/ttyS0   115200" --name=kermitTerm -e "kermit ~/serial-115200.kermrc"

Exemple connection SSH

   gnome-terminal --disable-factory --name=ssh-hugovil -e "ssh hugo@hugovil.dyndns.org"

Gnome settings

Create the following file if it doesn't exist and change it's permissions:

 chmod 755 ~/GNUstep/Library/WindowMaker/autostart

Content:

#!/bin/sh

gnome-settings-daemon

hvclock

Go to the Attributes menu -> Application Specific and select "Start Hidden".

Emacs

Pour que Emacs lise les valeurs contenues dans ~/.Xdefaults:

 $> xrdb ~/.Xdefaults

Pour prendre en compte les valeurs contenues dans ~/.Xresources:

 $> xrdb ~/.Xresources

Économiseur d'écran

1. Installer xscreensaver

2. Ajouter une entrée dans ~/GNUstep/Defaults/WMRootMenu:

 (Lock, SHORTCUT, "Shift+Delete", EXEC, "xscreensaver-command -lock"),

3. Ajouter une entrée dans ~/GNUstep/Library/WindowMaker/autostart:

 xscreensaver -no-splash &


Themes

Dans le fichier:

   ~/GNUstep/Defaults/WMRootMenu

Remplacer /usr/local/share/WindowMaker par /usr/share/WindowMaker et redémarrer WindowMaker

Raccourcis clavier

Le menu se trouve dans ~/GNUstep/Defaults/WMRootMenu et a une syntaxe simple ; voici pour exemple :

(
Applications,
(Run..., SHORTCUT, F2, EXEC, "%a(Run,Type command to run)"),
(XTerm, SHORTCUT, F3, EXEC, "xterm -sb -sl 2000"),
("Hide All", HIDE_OTHERS),
("Show All", SHOW_ALL),
(Appearance, OPEN_MENU,
"~/GNUstep/Library/WindowMaker/appearance.menu"),
("Gaffe!", (Reboot, EXEC, "sudo reboot"), (Halt, EXEC, "sudo halt")),
("xvnc", EXEC, "xterm -e xvncviewer %a(Enter Host)"),
(Lock, SHORTCUT, "Shift+Delete", EXEC, "xscreensaver-command -lock"),
("Exit Window Maker", SHORTCUT, "Control+Shift+Delete", EXIT)


Comment avoir un icone pour une application qu n'en n'a pas

Utile afin de pouvoir "docker" une application qui ne produit pas d'icône.

1. Right click on the title bar

2. Click Attributes

3. Select Advanced Options from the pull down menu

4. Select Emulate Application Icon

5. Click Save