first commit

This commit is contained in:
STP
2019-11-26 21:36:24 +01:00
commit d9ad30ccf3
2899 changed files with 168823 additions and 0 deletions

Binary file not shown.

110
README.md Normal file
View File

@@ -0,0 +1,110 @@
# ThinRasPi Konfiguration
## Einrichtung
### default
* Linux Image herunterladen für Raspberry Pi (Linux nach Wahl, empfohlen Ubuntu LTS *
* Image mit `dd` auf eine entsprechende SD-Card spielen
* Bsp.: `dd if=$DEVICE bs=8M | pv | dd of=$DEVICE bs=8M`
* RasPi booten
* Linux durch konfigurieren / Benutzer anlegen für Fernwartungszwecke (zum Beispiel tux-mania)
* zusätzlich Benutzer für default Login anlegen (zum Beispiel thinclient)
* unnötige Pakete deakivieren/deinstallieren um Speicher auf der SD-Card zu sparen <- siehe PDF
* zum Beispiel `mate-screensaver`, diverse Spiele und Programme (vielleicht auch `mate-terminal`?)
* Liste: `dphys-swapfile mate-screensaver fake-hwclock`
* folgende Pakete nach installieren `fuse lsof p910nd remmina freerdp-x11` <- siehe PDF
* `lightdm.conf` in `/etc_org/lichtdm/` erstellen <- Vorlage liegt unter `/usr/share/doc/lightdm`
* Optional: Datei aus gitrepo nehmen
* `mount_overlay` in `/usr/local/bin` ablegen <- siehe Anleitung
* `fstab` anpassen <- siehe Anleitung
### Image kopieren / Script ###
* `backup.sh $DEVICEwithFULLPATH` <- Backup erstellen
* `restore.sh $DEVICEwithFULLPATH` <- Backup zurück spielen
### Image kopieren / Alternative!
Diese Variante sollte verwendet werden, wenn die Ausgangs SDCard eine andere größe hat als die Ziel SDCard.
* also erstes sollten die Daten von der Quell-SD-Card gesichert werden.
```
sfdisk -d /dev/$DEV > part_table #Partitionstabelle sichern
mount /dev/$PART1 /mnt #BOOT-Partition mounten
cd /mnt #in das Mountverzeichnis wechseln
tar cvfj $ZielVerzeichnis/part1.tbz2 * #Daten von BOOT-Partition sichern
cd / #aus Mountverzeichnis wechseln
umount /mnt #BOOT-Partition aushängen
mount /dev/$PART2 /mnt * #ROOT-Partition einhängen
cd /mnt #in das Mountverzeichnis wechseln
tar cvfj $ZielVerzeichnis/part2.tbz2 #Daten von ROOT-Partition sichern
umount /mnt #ROOT-Partition aushängen
```
* Jetzt sind die Daten unter `$ZielVerzeichnis` gesichert. Einfach die Quell-SDCard entnehmen und die Ziel-SDCard einstecken.
```
sfdisk /dev/$DEV < part_table #Partitionstabelle auf Ziel-SDCard spielen
#Wichtig! Vor dem weiter machen prüfen, ob die neue Partitionstabelle erkannt wurde.
#Das kann man mit "cat /proc/partitions."
#Sollte das nicht der Fall sein, die SDCard entweder entnehmen und wieder einstecken oder "kpartx" verwenden.
#Dann das Dateisystem für $PART1 und $PART2 erzeugen.
mkfs.vfat -n PI_BOOT /dev/$PART1
mkfs.ext4 -L PI_ROOT /dev/$PART2
mount /dev/$PART1 /mnt #BOOT-Partition einhängen
cd /mnt #in das mount-Verzeichniswechseln
tar xvfj $ZielVerzeichnis/part1.tbz2 ./ #Sicherung in /mnt entpacken
cd / #in das Root-Verzeichnis des lokalen Systems wechseln
umount /mnt #BOOT-Verzeichnis aushängen
mount /dev/PART2 /mnt #ROOT-Partition der SDCard einhängen
cd /mnt # in das Mountverzeichnis wechseln
tar xvfj $ZielVerzeichnis/part2.tbz2 ./ #Sicherung von PART2 in /mnt entpacken
cd / #wieder in das lokale ROOT-Verzeichnis wechseln
umount /mnt #Partition wieder aushängen
```
## ACL Einstellungen sichern und zurückschreiben
* Einstellungen für `etc_org` und `home_org` sichern
`getfacl -R $DIR > $FILE`
## Autostart / Hintergundbild
* `.xession`, `.xsessionrc` und `.xinitrc` haben unter mate keinen Effekt gezeigt oder ging nur sporadisch
* Autostart wird jetzt über `~/.config/autostart` ausgefüht -> dafür muss ein Desktop Icon erstellt werden / optional kann es über Einstellung (autostart/startup) konfiguriert werden
## git
* sync wie folgt gemacht
* root Berechtigung
* Image loop mounten
* in git Ordner wechseln
* Änderung in `etc_org` und/oder `home_org` anpassen
* Änderung mit `git` adden
* Änderung in `git` commiten
* Änderung in `gogs` pushen <- optional in den entsprechenden User voher wechseln
## autoupdater deaktivieren!
* `/home_org/thinclient/.settings.sh/` <- Update Notifier deaktiviert (allgemeine Settings für User unter Ubuntu <- von tux-mania erstellt
* unter `$HOME/.config/autostart` eine `*desktop` für den autostart in Mate erstellt
* update-manager `/etc_org/update-manager`
* ^^ auf "never" setzen <- führt nicht zum Erfolg (01.02.2016)
`chmod 644 /usr/bin/update-notifier`
* ^^ rechte entzogen <- führt nicht zum Erfolg (01.02.2016)
* editing `/etc/apt/apt.conf.d/10periodi`c and changeing und `20auto-upgrades`
`APT::Periodic::Update-Package-Lists "1";`
`APT::Periodic::Update-Package-Lists "0";`
^^ alls von `1` auf `0` setzen
^^ erfolgreich
* `nano /etc/apt/apt.conf.d/99update-notifier`
* `#DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "; };`
* `/etc_org/cron.daily/update-notifier-common`
* ^^ `exit 0`
* `/etc/cron.daily/apt-compat`
* ^^ `exec /usr/lib/apt/apt.systemd.daily <- auskommentieren`
* systemctl disable apt-daily.service
* systemctl stop apt-daily.service
* ^^ Verzeichnis Schreibrechte gesetzt und in der Bash ausgeführt
* ^^sicherheitshalber in der rc.local eingetragen / damit bei reboot es per default deaktiviert wird
* ^^/etc_org/* nach /etc/ kopieren

53
backup.sh Executable file
View File

@@ -0,0 +1,53 @@
#!/bin/bash
#Backupscript für SDCards
#made bei STP - tux-mania Support
#Licence GPL
#Date: 14.02.2017
#Important: not tested!
set -e
DEV=$1
COUNT=1
if [[ $(which test > /dev/null) == true ]]; then
echo "Do yoe need test for this script!"
exit 1
fi
if [[ $USERNAME != root ]]; then
echo "You have no root access. Please logon as root and retry!"
exit 1
fi
if [[ $# -eq 0 ]]; then
echo "Please add the SDCard Device the command line to restore the SDCard!"
exit 1
fi
if [ ! -e $DEV ]; then
echo "Device does not exist!"
exit 1
fi
if [ -d $PWD/backup ]; then
echo "Backup directory exist. Please move or delete!"
exit 1
fi
mkdir backup
mkdir mnt
sfdisk -d $DEV > $PWD/backup/partitiontables
while [[ $COUNT -lt 3 ]]; do
if [ ! -b $DEV$COUNT ]; then
DEV=$DEV"p"
fi
mount $DEV$COUNT $PWD/mnt
tar cvfz $PWD/backup/thinpi$COUNT.tar.gz --directory="$PWD/mnt/" .
umount $PWD/mnt
let COUNT=COUNT+1
done
rm -rf $PWD/mnt
exit 0

7
etc_org.acl Normal file
View File

@@ -0,0 +1,7 @@
# file: ../etc_org
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

View File

0
etc_org/.pwd.lock Normal file
View File

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE codermap [
<!ELEMENT codermap (coder)*>
<!ELEMENT coder (#PCDATA)>
<!ATTLIST coder magick CDATA #REQUIRED>
<!ATTLIST coder name CDATA #REQUIRED>
]>
<!--
Associate an image format with the specified coder module.
ImageMagick has a number of coder modules to support the reading and/or
writing of an image format (e.g. JPEG). Some coder modules support more
than one associated image format and the mapping between an associated
format and its respective coder module is defined in this configuration
file. For example, the PNG coder module not only supports the PNG image
format, but the JNG and MNG formats as well.
-->
<codermap>
<!-- <coder magick="GIF87" name="GIF"/> -->
<!-- <coder magick="JPG" name="JPEG"/> -->
<!-- <coder magick="PGM" name="PNM"/> -->
</codermap>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE colormap [
<!ELEMENT colormap (color)+>
<!ELEMENT color (#PCDATA)>
<!ATTLIST color name CDATA "0">
<!ATTLIST color color CDATA "rgb(0,0,0)">
<!ATTLIST color compliance CDATA "SVG">
]>
<!--
Associate a color name with its red, green, blue, and alpha intensities.
A number of methods and options require a color parameter. It is often
convenient to refer to a color by name (e.g. white) rather than by hex
value (e.g. #fff). This file maps a color name to its equivalent red,
green, blue, and alpha intensities (e.g. for white, red = 255, green =
255, blue = 255, and alpha = 0).
-->
<colormap>
<!-- <color name="none" color="rgba(0,0,0,0)" compliance="SVG, XPM"/> -->
<!-- <color name="black" color="rgb(0,0,0)" compliance="SVG, X11, XPM"/> -->
<!-- <color name="red" color="rgb(255,0,0)" compliance="SVG, X11, XPM"/> -->
<!-- <color name="magenta" color="rgb(255,0,255)" compliance="SVG, X11, XPM"/> -->
<!-- <color name="green" color="rgb(0,128,0)" compliance="SVG"/> -->
<!-- <color name="cyan" color="rgb(0,255,255)" compliance="SVG, X11, XPM"/> -->
<!-- <color name="blue" color="rgb(0,0,255)" compliance="SVG, X11, XPM"/> -->
<!-- <color name="yellow" color="rgb(255,255,0)" compliance="SVG, X11, XPM"/> -->
<!-- <color name="white" color="rgb(255,255,255)" compliance="SVG, X11"/> -->
</colormap>

View File

@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE delegatemap [
<!ELEMENT delegatemap (delegate)+>
<!ELEMENT delegate (#PCDATA)>
<!ATTLIST delegate decode CDATA #IMPLIED>
<!ATTLIST delegate encode CDATA #IMPLIED>
<!ATTLIST delegate mode CDATA #IMPLIED>
<!ATTLIST delegate spawn CDATA #IMPLIED>
<!ATTLIST delegate stealth CDATA #IMPLIED>
<!ATTLIST delegate thread-support CDATA #IMPLIED>
<!ATTLIST delegate command CDATA #REQUIRED>
]>
<!--
Delegate command file.
Commands which specify
decode="in_format" encode="out_format"
specify the rules for converting from in_format to out_format These
rules may be used to translate directly between formats.
Commands which specify only
decode="in_format"
specify the rules for converting from in_format to some format that
ImageMagick will automatically recognize. These rules are used to
decode formats.
Commands which specify only
encode="out_format"
specify the rules for an "encoder" which may accept any input format.
For delegates other than ps:*, pcl:*, and mpeg:* the substitution rules are
as follows:
%i input image filename
%o output image filename
%u unique temporary filename
%Z unique temporary filename
%# input image signature
%b image file size
%c input image comment
%g image geometry
%h image rows (height)
%k input image number colors
%l image label
%m input image format
%p page number
%q input image depth
%s scene number
%w image columns (width)
%x input image x resolution
%y input image y resolution
%F sanitized original input filename
Set option delegate:bimodal=true to process bimodal delegates otherwise they
are ignored.
If stealth="True" the delegate is not listed in user requested
"-list delegate" listings. These are typically special internal delegates.
If spawn="True" ImageMagick will not way for the delegate to finish,
nor will it read any output image. It will only wait for either the input
file to be removed (See "ephemeral:" coder) indicating that the input file
has been read, or a maximum time limit of 2 seconds.
-->
<delegatemap>
<delegate decode="autotrace" stealth="True" command="&quot;convert&quot; &quot;%i&quot; &quot;pnm:%u&quot;\n&quot;autotrace&quot; -input-format pnm -output-format svg -output-file &quot;%o&quot; &quot;%u&quot;"/>
<delegate decode="blender" command="&quot;blender&quot; -b &quot;%i&quot; -F PNG -o &quot;%o&quot;&quot;\n&quot;convert&quot; -concatenate &quot;%o*.png&quot; &quot;%o&quot;"/>
<delegate decode="browse" stealth="True" spawn="True" command="&quot;xdg-open&quot; http://www.imagemagick.org/; rm &quot;%i&quot;"/>
<delegate decode="cdr" command="&quot;uniconvertor&quot; &quot;%i&quot; &quot;%o.svg&quot;; mv &quot;%o.svg&quot; &quot;%o&quot;"/>
<delegate decode="cgm" command="&quot;uniconvertor&quot; &quot;%i&quot; &quot;%o.svg&quot;; mv &quot;%o.svg&quot; &quot;%o&quot;"/>
<delegate decode="dng:decode" command="&quot;ufraw-batch&quot; --silent --create-id=also --out-type=png --out-depth=16 &quot;--output=%u.png&quot; &quot;%i&quot;"/>
<delegate decode="doc" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="docx" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="dot" command='&quot;dot&quot; -Tsvg &quot;%i&quot; -o &quot;%o&quot;' />
<delegate decode="dvi" command="&quot;dvips&quot; -q -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="dxf" command="&quot;uniconvertor&quot; &quot;%i&quot; &quot;%o.svg&quot;; mv &quot;%o.svg&quot; &quot;%o&quot;"/>
<delegate decode="edit" stealth="True" command="&quot;/etc/alternatives/x-terminal-emulator&quot; -title &quot;Edit Image Comment&quot; -e vi &quot;%o&quot;"/>
<delegate decode="eps" encode="pdf" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 &quot;-sDEVICE=pdfwrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="eps" encode="ps" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ps2write&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="fig" command="&quot;uniconvertor&quot; &quot;%i&quot; &quot;%o.svg&quot;; mv &quot;%o.svg&quot; &quot;%o&quot;"/>
<delegate decode="hpg" command="&quot;hp2xx&quot; -q -m eps -f `basename &quot;%o&quot;` &quot;%i&quot;; mv -f `basename &quot;%o&quot;` &quot;%o&quot;"/>
<delegate decode="hpgl" command="&quot;hp2xx&quot; -q -m eps -f `basename &quot;%o&quot;` &quot;%i&quot;; mv -f `basename &quot;%o&quot;` &quot;%o&quot;"/>
<delegate decode="htm" command="&quot;html2ps&quot; -U -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="html" command="&quot;html2ps&quot; -U -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="https" command="&quot;curl&quot; -s -k -L -o &quot;%o&quot; &quot;https:%F&quot;"/>
<delegate decode="ilbm" command="&quot;ilbmtoppm&quot; &quot;%i&quot; &gt; &quot;%o&quot;"/>
<delegate decode="jxr" command="mv &quot;%i&quot; &quot;%i.jxr&quot;; &quot;JxrDecApp&quot; -i &quot;%i.jxr&quot; -o &quot;%o.bmp&quot; -c 0; mv &quot;%i.jxr&quot; &quot;%i&quot;; mv &quot;%o.bmp&quot; &quot;%o&quot;"/>
<delegate decode="man" command="&quot;groff&quot; -man -Tps &quot;%i&quot; &gt; &quot;%o&quot;"/>
<delegate decode="miff" encode="show" spawn="True" command="&quot;display&quot; -delay 0 -window-group %[group] -title &quot;%l &quot; &quot;ephemeral:%i&quot;"/>
<delegate decode="miff" encode="win" stealth="True" spawn="True" command="&quot;display&quot; -immutable -delay 0 -window-group %[group] -title &quot;%l &quot; &quot;ephemeral:%i&quot;"/>
<delegate decode="mpeg:decode" command="&quot;ffmpeg&quot; -v -1 -i &quot;%i&quot; -vframes %S -vcodec pam -an -f rawvideo -y &quot;%u.pam&quot; 2&gt; &quot;%Z&quot;"/>
<delegate decode="odt" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="pcl:cmyk" stealth="True" command="&quot;pcl6&quot; -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pamcmyk32&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
<delegate decode="pcl:color" stealth="True" command="&quot;pcl6&quot; -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ppmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
<delegate decode="pcl:mono" stealth="True" command="&quot;pcl6&quot; -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
<delegate decode="pdf" encode="eps" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=nodevice&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="pdf" encode="ps" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ps2write&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="png" encode="webp" command="&quot;cwebp&quot; -quiet -q %Q &quot;%i&quot; -o &quot;%o&quot;"/>
<delegate decode="pnm" encode="ilbm" mode="encode" command="&quot;ppmtoilbm&quot; -24if &quot;%i&quot; &gt; &quot;%o&quot;"/>
<delegate decode="bmp" encode="jxr" command="mv &quot;%i&quot; &quot;%i.bmp&quot;; &quot;JxrEncApp&quot; -i &quot;%i.bmp&quot; -o &quot;%o.jxr&quot;; mv &quot;%i.bmp&quot; &quot;%i&quot;; mv &quot;%o.jxr&quot; &quot;%o&quot;"/>
<delegate decode="bmp" encode="wdp" command="mv &quot;%i&quot; &quot;%i.bmp&quot;; &quot;JxrEncApp&quot; -i &quot;%i.bmp&quot; -o &quot;%o.jxr&quot;; mv &quot;%i.bmp&quot; &quot;%i&quot;; mv &quot;%o.jxr&quot; &quot;%o&quot;"/>
<delegate decode="pov" command="&quot;povray&quot; &quot;+i%i&quot; -D0 &quot;+o%o&quot; +fn%q +w%w +h%h +a -q9 &quot;-kfi%s&quot; &quot;-kff%n&quot;;&quot;convert&quot; -concatenate &quot;%o*.png&quot; &quot;%o&quot;"/>
<delegate decode="ppt" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="pptx" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="ps:alpha" stealth="True" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pngalpha&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
<delegate decode="ps:cmyk" stealth="True" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pam&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
<delegate decode="ps:color" stealth="True" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pnmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
<delegate decode="ps" encode="eps" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=nodevice&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="ps" encode="pdf" mode="bi" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pdfwrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
<delegate decode="ps" encode="print" mode="encode" command="lpr &quot;%i&quot;"/>
<delegate decode="ps:mono" stealth="True" command="&quot;gs&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
<delegate decode="rgba" encode="rle" mode="encode" command="&quot;rawtorle&quot; -o &quot;%o&quot; -v &quot;%i&quot;"/>
<delegate decode="scan" command="&quot;scanimage&quot; -d &quot;%i&quot; &gt; &quot;%o&quot;"/>
<delegate decode="scanx" command="&quot;scanimage&quot; &gt; &quot;%o&quot;"/>
<delegate decode="shtml" command="&quot;html2ps&quot; -U -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="sid" command="&quot;mrsidgeodecode&quot; -if sid -i &quot;%i&quot; -of tif -o &quot;%o&quot; &gt; &quot;%u&quot;"/>
<delegate decode="svg" command="&quot;rsvg-convert&quot; -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="svg:decode" stealth="True" command="&quot;inkscape&quot; &quot;%s&quot; --export-eps=&quot;%s&quot; --export-dpi=&quot;%s&quot; --export-background=&quot;%s&quot; --export-background-opacity=&quot;%s&quot; &gt; &quot;%s&quot; 2&gt;&amp;1"/>
<delegate decode="tiff" encode="launch" mode="encode" command="&quot;gimp&quot; &quot;%i&quot;"/>
<delegate decode="txt" encode="ps" mode="bi" command="&quot;enscript&quot; -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="wdp" command="mv &quot;%i&quot; &quot;%i.jxr&quot;; &quot;JxrDecApp&quot; -i &quot;%i.jxr&quot; -o &quot;%o.bmp&quot;; mv &quot;%i.jxr&quot; &quot;%i&quot;; mv &quot;%o.bmp&quot; &quot;%o&quot;"/>
<delegate decode="webp" command="&quot;dwebp&quot; -pam &quot;%i&quot; -o &quot;%o&quot;"/>
<delegate decode="wmf" command="&quot;wmf2eps&quot; -o &quot;%o&quot; &quot;%i&quot;"/>
<delegate decode="xls" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="xlsx" command="&quot;soffice&quot; --headless --convert-to pdf --outdir `dirname &quot;%i&quot;` &quot;%i&quot; 2&gt; &quot;%Z&quot;; mv &quot;%i.pdf&quot; &quot;%o&quot;"/>
<delegate decode="xps:cmyk" stealth="True" command="&quot;gxps&quot; -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=bmpsep8&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
<delegate decode="xps:color" stealth="True" command="&quot;gxps&quot; -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ppmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
<delegate decode="xps:mono" stealth="True" command="&quot;gxps&quot; -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
<delegate encode="mpeg:encode" stealth="True" command="&quot;ffmpeg&quot; -v -1 -i &quot;%F%%d.jpg&quot; &quot;%u.%m&quot; 2&gt; &quot;%Z&quot;"/>
</delegatemap>

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE logmap [
<!ELEMENT logmap (log)+>
<!ELEMENT log (#PCDATA)>
<!ATTLIST log events CDATA #IMPLIED>
<!ATTLIST log output CDATA #IMPLIED>
<!ATTLIST log filename CDATA #IMPLIED>
<!ATTLIST log generations CDATA #IMPLIED>
<!ATTLIST log limit CDATA #IMPLIED>
<!ATTLIST log format CDATA #IMPLIED>
]>
<!--
The format of the log is defined by embedding special format characters:
%c client
%d domain
%e event
%f function
%g generation
%i thread id
%l line
%m module
%n log name
%p process id
%r real CPU time
%t wall clock time
%u user CPU time
%v version
%% percent sign
\n newline
\r carriage return
-->
<logmap>
<log events="None"/>
<log output="console"/>
<log filename="Magick-%g.log"/>
<log generations="3"/>
<log limit="2000"/>
<log format="%t %r %u %v %d %c[%p]: %m/%f/%l/%d\n %e"/>
</logmap>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE magicmap [
<!ELEMENT magicmap (magic)+>
<!ELEMENT magic (#PCDATA)>
<!ATTLIST magic name CDATA #REQUIRED>
<!ATTLIST magic offset CDATA "0">
<!ATTLIST magic target CDATA #REQUIRED>
]>
<!--
Associate an image format with a unique identifier.
Many image formats have identifiers that uniquely identify a particular
image format. For example, the GIF image format always begins with GIF8
as the first 4 characters of the image. ImageMagick uses this information
to quickly determine the type of image it is dealing with when it reads
an image.
-->
<magicmap>
<!-- <magic name="GIF" offset="0" target="GIF8"/> -->
<!-- <magic name="JPEG" offset="0" target="\377\330\377"/> -->
<!-- <magic name="PNG" offset="0" target="\211PNG\r\n\032\n"/> -->
<!-- <magic name="TIFF" offset="0" target="\115\115\000\052"/> -->
</magicmap>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
<!ELEMENT policymap (policy)+>
<!ELEMENT policy (#PCDATA)>
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
<!ATTLIST policy name CDATA #IMPLIED>
<!ATTLIST policy rights CDATA #IMPLIED>
<!ATTLIST policy pattern CDATA #IMPLIED>
<!ATTLIST policy value CDATA #IMPLIED>
]>
<!--
Configure ImageMagick policies.
Domains include system, delegate, coder, filter, path, or resource.
Rights include none, read, write, and execute. Use | to combine them,
for example: "read | write" to permit read from, or write to, a path.
Use a glob expression as a pattern.
Suppose we do not want users to process MPEG video images:
<policy domain="delegate" rights="none" pattern="mpeg:decode" />
Here we do not want users reading images from HTTP:
<policy domain="coder" rights="none" pattern="HTTP" />
Lets prevent users from executing any image filters:
<policy domain="filter" rights="none" pattern="*" />
The /repository file system is restricted to read only. We use a glob
expression to match all paths that start with /repository:
<policy domain="path" rights="read" pattern="/repository/*" />
Any large image is cached to disk rather than memory:
<policy domain="resource" name="area" value="1GB"/>
Define arguments for the memory, map, area, and disk resources with
SI prefixes (.e.g 100MB). In addition, resource policies are maximums for
each instance of ImageMagick (e.g. policy memory limit 1GB, -limit 2GB
exceeds policy maximum so memory limit is 1GB).
-->
<policymap>
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
<!-- <policy domain="resource" name="memory" value="2GiB"/> -->
<!-- <policy domain="resource" name="map" value="4GiB"/> -->
<!-- <policy domain="resource" name="area" value="1GB"/> -->
<!-- <policy domain="resource" name="disk" value="16EB"/> -->
<!-- <policy domain="resource" name="file" value="768"/> -->
<!-- <policy domain="resource" name="thread" value="4"/> -->
<!-- <policy domain="resource" name="throttle" value="0"/> -->
<!-- <policy domain="resource" name="time" value="3600"/> -->
<!-- <policy domain="system" name="precision" value="6"/> -->
<policy domain="cache" name="shared-secret" value="passphrase"/>
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="URL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
<policy domain="coder" rights="none" pattern="TEXT" />
<policy domain="coder" rights="none" pattern="SHOW" />
<policy domain="coder" rights="none" pattern="WIN" />
<policy domain="coder" rights="none" pattern="PLT" />
<policy domain="path" rights="none" pattern="@*" />
</policymap>

View File

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE quantization-tables [
<!ELEMENT quantization-tables (table)+>
<!ELEMENT table (description , levels)>
<!ELEMENT description (CDATA)>
<!ELEMENT levels (CDATA)>
<!ATTLIST table slot ID #REQUIRED>
<!ATTLIST levels width CDATA #REQUIRED>
<!ATTLIST levels height CDATA #REQUIRED>
<!ATTLIST levels divisor CDATA #REQUIRED>
]>
<!--
JPEG quantization table created by Dr. Nicolas Robidoux, Senior Research
Scientist at Phase One (www.phaseone.com) for use with 2x2 Chroma
subsampling and (IJG-style, hence ImageMagick-style) quality level
around 75.
It is based on the one recommended in
Relevance of human vision to JPEG-DCT compression by Stanley A. Klein,
Amnon D. Silverstein and Thom Carney. In Human Vision, Visual
Processing and Digital Display III, 1992.
for 1 minute per pixel viewing.
Specifying only one table in this xml file has two effects when used with
the ImageMagick option
-define jpeg:q-table=PATH/TO/THIS/FILE
1) This quantization table is automatically used for all three channels;
2) Only one copy is embedded in the JPG file, which saves a few bits
(only worthwhile for very small thumbnails).
-->
<quantization-tables>
<table slot="0" alias="luma">
<description>Luma Quantization Table</description>
<levels width="8" height="8" divisor="1">
16, 16, 16, 18, 25, 37, 56, 85,
16, 17, 20, 27, 34, 40, 53, 75,
16, 20, 24, 31, 43, 62, 91, 135,
18, 27, 31, 40, 53, 74, 106, 156,
25, 34, 43, 53, 69, 94, 131, 189,
37, 40, 62, 74, 94, 124, 169, 238,
56, 53, 91, 106, 131, 169, 226, 311,
85, 75, 135, 156, 189, 238, 311, 418
</levels>
</table>
<!--
If you want to use a different quantization table for Chroma (say), just add
<table slot="1" alias="chroma">
<description>Chroma Quantization Table</description>
INSERT 64 POSITIVE INTEGERS HERE, COMMA-SEPARATED
</levels>
</table>
here (but outside of these comments).
-->
</quantization-tables>

View File

@@ -0,0 +1,334 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE thresholds [
<!ELEMENT thresholds (threshold)+>
<!ELEMENT threshold (description , levels)>
<!ELEMENT description (CDATA)>
<!ELEMENT levels (CDATA)>
<!ATTLIST threshold map ID #REQUIRED>
<!ATTLIST levels width CDATA #REQUIRED>
<!ATTLIST levels height CDATA #REQUIRED>
<!ATTLIST levels divisor CDATA #REQUIRED>
]>
<!--
Threshold Maps for Ordered Posterized Dither
Each "<threshold>" element defines the map name, description, and an array
of "levels" used to provide the threshold map for ordered dithering and
digital halftoning.
The "alias" attribute provides a backward compatible name for this threshold
map (pre-dating IM v6.2.9-6), and are deprecated.
The description is a english description of what the threshold map achieves
and is only used for 'listing' the maps.
The map itself is a rectangular array of integers or threshold "levels"
of the given "width" and "height" declared within the enclosing <levels>
element. That is "width*height" integers or "levels" *must* be provided
within each map.
Each of the "levels" integer values (each value representing the threshold
intensity "level/divisor" at which that pixel is turned on. The "levels"
integers given can be any postive integers between "0" and the "divisor",
excluding those limits.
The "divisor" not only defines the upper limit and threshold divisor for each
"level" but also the total number of pseudo-levels the threshold mapping
creates and fills with a dither pattern. That is a ordered bitmap dither
of a pure greyscale gradient will use a maximum of "divisor" ordered bitmap
patterns, including the patterns with all the pixels 'on' and all the pixel
'off'. It may define less patterns than that, but the color channels will
be thresholded in units based on "divisor".
Alternatively for a multi-level posterization, ImageMagick inserts
"divisor-2" dither patterns (as defined by the threshold map) between each of
channel color level produced.
For example the map "o2x2" has a divisor of 5, which will define 3 bitmap
patterns plus the patterns with all pixels 'on' and 'off'. A greyscale
gradient will thus have 5 distinct areas.
-->
<thresholds>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Minimal Dither and Non-Dither Threshold Maps
-->
<threshold map="threshold" alias="1x1">
<description>Threshold 1x1 (non-dither)</description>
<levels width="1" height="1" divisor="2">
1
</levels>
</threshold>
<threshold map="checks" alias="2x1">
<description>Checkerboard 2x1 (dither)</description>
<levels width="2" height="2" divisor="3">
1 2
2 1
</levels>
</threshold>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(dispersed) Ordered Dither Patterns
-->
<threshold map="o2x2" alias="2x2">
<description>Ordered 2x2 (dispersed)</description>
<levels width="2" height="2" divisor="5">
1 3
4 2
</levels>
</threshold>
<threshold map="o3x3" alias="3x3">
<description>Ordered 3x3 (dispersed)</description>
<levels width="3" height="3" divisor="10">
3 7 4
6 1 9
2 8 5
</levels>
</threshold>
<threshold map="o4x4" alias="4x4">
<!--
From "Dithering Algorithms"
http://www.efg2.com/Lab/Library/ImageProcessing/DHALF.TXT
-->
<description>Ordered 4x4 (dispersed)</description>
<levels width="4" height="4" divisor="17">
1 9 3 11
13 5 15 7
4 12 2 10
16 8 14 6
</levels>
</threshold>
<threshold map="o8x8" alias="8x8">
<!-- Extracted from original 'OrderedDither()' Function -->
<description>Ordered 8x8 (dispersed)</description>
<levels width="8" height="8" divisor="65">
1 49 13 61 4 52 16 64
33 17 45 29 36 20 48 32
9 57 5 53 12 60 8 56
41 25 37 21 44 28 40 24
3 51 15 63 2 50 14 62
35 19 47 31 34 18 46 30
11 59 7 55 10 58 6 54
43 27 39 23 42 26 38 22
</levels>
</threshold>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Halftones - Angled 45 degrees
Initially added to ImageMagick by Glenn Randers-Pehrson, IM v6.2.8-6,
modified to be more symmetrical with intensity by Anthony, IM v6.2.9-7
These patterns initially start as circles, but then form diamonds
pattern at the 50% threshold level, before forming negated circles,
as it approached the other threshold extereme.
-->
<threshold map="h4x4a" alias="4x1">
<description>Halftone 4x4 (angled)</description>
<levels width="4" height="4" divisor="9">
4 2 7 5
3 1 8 6
7 5 4 2
8 6 3 1
</levels>
</threshold>
<threshold map="h6x6a" alias="6x1">
<description>Halftone 6x6 (angled)</description>
<levels width="6" height="6" divisor="19">
14 13 10 8 2 3
16 18 12 7 1 4
15 17 11 9 6 5
8 2 3 14 13 10
7 1 4 16 18 12
9 6 5 15 17 11
</levels>
</threshold>
<threshold map="h8x8a" alias="8x1">
<description>Halftone 8x8 (angled)</description>
<levels width="8" height="8" divisor="33">
13 7 8 14 17 21 22 18
6 1 3 9 28 31 29 23
5 2 4 10 27 32 30 24
16 12 11 15 20 26 25 19
17 21 22 18 13 7 8 14
28 31 29 23 6 1 3 9
27 32 30 24 5 2 4 10
20 26 25 19 16 12 11 15
</levels>
</threshold>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Halftones - Orthogonally Aligned, or Un-angled
Initially added by Anthony Thyssen, IM v6.2.9-5 using techniques from
"Dithering & Halftoning" by Gernot Haffmann
http://www.fho-emden.de/~hoffmann/hilb010101.pdf
These patterns initially start as circles, but then form square
pattern at the 50% threshold level, before forming negated circles,
as it approached the other threshold extereme.
-->
<threshold map="h4x4o">
<description>Halftone 4x4 (orthogonal)</description>
<levels width="4" height="4" divisor="17">
7 13 11 4
12 16 14 8
10 15 6 2
5 9 3 1
</levels>
</threshold>
<threshold map="h6x6o">
<description>Halftone 6x6 (orthogonal)</description>
<levels width="6" height="6" divisor="37">
7 17 27 14 9 4
21 29 33 31 18 11
24 32 36 34 25 22
19 30 35 28 20 10
8 15 26 16 6 2
5 13 23 12 3 1
</levels>
</threshold>
<threshold map="h8x8o">
<description>Halftone 8x8 (orthogonal)</description>
<levels width="8" height="8" divisor="65">
7 21 33 43 36 19 9 4
16 27 51 55 49 29 14 11
31 47 57 61 59 45 35 23
41 53 60 64 62 52 40 38
37 44 58 63 56 46 30 22
15 28 48 54 50 26 17 10
8 18 34 42 32 20 6 2
5 13 25 39 24 12 3 1
</levels>
</threshold>
<threshold map="h16x16o">
<!--
Direct extract from "Dithering & Halftoning" by Gernot Haffmann.
This may need some fine tuning for symmetry of the halftone dots,
as it was a mathematically formulated pattern.
-->
<description>Halftone 16x16 (orthogonal)</description>
<levels width="16" height="16" divisor="257">
4 12 24 44 72 100 136 152 150 134 98 70 42 23 11 3
7 16 32 52 76 104 144 160 158 142 102 74 50 31 15 6
19 27 40 60 92 132 168 180 178 166 130 90 58 39 26 18
36 48 56 80 124 176 188 204 203 187 175 122 79 55 47 35
64 68 84 116 164 200 212 224 223 211 199 162 114 83 67 63
88 96 112 156 192 216 232 240 239 231 214 190 154 111 95 87
108 120 148 184 208 228 244 252 251 243 226 206 182 147 119 107
128 140 172 196 219 235 247 256 255 246 234 218 194 171 139 127
126 138 170 195 220 236 248 253 254 245 233 217 193 169 137 125
106 118 146 183 207 227 242 249 250 241 225 205 181 145 117 105
86 94 110 155 191 215 229 238 237 230 213 189 153 109 93 85
62 66 82 115 163 198 210 221 222 209 197 161 113 81 65 61
34 46 54 78 123 174 186 202 201 185 173 121 77 53 45 33
20 28 37 59 91 131 167 179 177 165 129 89 57 38 25 17
8 13 29 51 75 103 143 159 157 141 101 73 49 30 14 5
1 9 21 43 71 99 135 151 149 133 97 69 41 22 10 2
</levels>
</threshold>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Halftones - Orthogonally Expanding Circle Patterns
Added by Glenn Randers-Pehrson, 4 Nov 2010, ImageMagick 6.6.5-6
Rather than producing a diamond 50% threshold pattern, these
continue to generate larger (overlapping) circles. They are
more like a true halftone pattern formed by covering a surface
with either pure white or pure black circular dots.
WARNING: true halftone patterns only use true circles even in
areas of highly varying intensity. Threshold dither patterns
can generate distorted circles in such areas.
-->
<threshold map="c5x5b" alias="c5x5">
<description>Circles 5x5 (black)</description>
<levels width="5" height="5" divisor="26">
1 21 16 15 4
5 17 20 19 14
6 21 25 24 12
7 18 22 23 11
2 8 9 10 3
</levels>
</threshold>
<threshold map="c5x5w">
<description>Circles 5x5 (white)</description>
<levels width="5" height="5" divisor="26">
25 21 10 11 22
20 9 6 7 12
19 5 1 2 13
18 8 4 3 14
24 17 16 15 23
</levels>
</threshold>
<threshold map="c6x6b" alias="c6x6">
<description>Circles 6x6 (black)</description>
<levels width="6" height="6" divisor="37">
1 5 14 13 12 4
6 22 28 27 21 11
15 29 35 34 26 20
16 30 36 33 25 19
7 23 31 32 24 10
2 8 17 18 9 3
</levels>
</threshold>
<threshold map="c6x6w">
<description>Circles 6x6 (white)</description>
<levels width="6" height="6" divisor="37">
36 32 23 24 25 33
31 15 9 10 16 26
22 8 2 3 11 17
21 7 1 4 12 18
30 14 6 5 13 27
35 29 20 19 28 34
</levels>
</threshold>
<threshold map="c7x7b" alias="c7x7">
<description>Circles 7x7 (black)</description>
<levels width="7" height="7" divisor="50">
3 9 18 28 17 8 2
10 24 33 39 32 23 7
19 34 44 48 43 31 16
25 40 45 49 47 38 27
20 35 41 46 42 29 15
11 21 36 37 28 22 6
4 12 13 26 14 5 1
</levels>
</threshold>
<threshold map="c7x7w">
<description>Circles 7x7 (white)</description>
<levels width="7" height="7" divisor="50">
47 41 32 22 33 42 48
40 26 17 11 18 27 43
31 16 6 2 7 19 34
25 10 5 1 3 12 23
30 15 9 4 8 20 35
39 29 14 13 21 28 44
46 38 37 24 36 45 49
</levels>
</threshold>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Special Purpose Dithers
-->
</thresholds>

View File

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE typemap [
<!ELEMENT typemap (type)+>
<!ELEMENT type (#PCDATA)>
<!ELEMENT include (#PCDATA)>
<!ATTLIST type name CDATA #REQUIRED>
<!ATTLIST type fullname CDATA #IMPLIED>
<!ATTLIST type fullname="" family CDATA #IMPLIED>
<!ATTLIST type foundry CDATA #IMPLIED>
<!ATTLIST type weight CDATA #IMPLIED>
<!ATTLIST type style CDATA #IMPLIED>
<!ATTLIST type stretch CDATA #IMPLIED>
<!ATTLIST type format CDATA #IMPLIED>
<!ATTLIST type metrics CDATA #IMPLIED>
<!ATTLIST type glyphs CDATA #REQUIRED>
<!ATTLIST type version CDATA #IMPLIED>
<!ATTLIST include file CDATA #REQUIRED>
]>
<typemap>
<type name="DejaVu-LGC-Sans-Bold" fullname="DejaVu LGC Sans Bold" family="DejaVuGC Sans" style="Normal" stretch="Normal" weight="700" glyphs="DejaVuLGCSans-Bold.ttf"/>
<type name="DejaVu-LGC-Sans-Bold-Oblique" fullname="DejaVu LGC Sans Bold Oblique" family="DejaVuGC Sans" style="Oblique" stretch="Normal" weight="700" glyphs="DejaVuLGCSans-BoldOblique.ttf"/>
<type name="DejaVu-LGC-Sans-Book" fullname="DejaVu LGC Sans Book" family="DejaVuGC Sans" style="Normal" stretch="Normal" weight="400" glyphs="DejaVuLGCSans.ttf"/>
<type name="DejaVu-LGC-Sans-Condensed" fullname="DejaVu LGC Sans Condensed" family="DejaVuGC Sans" style="Normal" stretch="SemiCondensed" weight="400" glyphs="DejaVuLGCSansCondensed.ttf"/>
<type name="DejaVu-LGC-Sans-Condensed-Bold" fullname="DejaVu LGC Sans Condensed Bold" family="DejaVuGC Sans" style="Normal" stretch="SemiCondensed" weight="700" glyphs="DejaVuLGCSansCondensed-Bold.ttf"/>
<type name="DejaVu-LGC-Sans-Condensed-Bold-Oblique" fullname="DejaVu LGC Sans Condensed Bold Oblique" family="DejaVuGC Sans" style="Oblique" stretch="SemiCondensed" weight="700" glyphs="DejaVuLGCSansCondensed-BoldOblique.ttf"/>
<type name="DejaVu-LGC-Sans-Condensed-Oblique" fullname="DejaVu LGC Sans Condensed Oblique" family="DejaVuGC Sans" style="Oblique" stretch="SemiCondensed" weight="400" glyphs="DejaVuLGCSansCondensed-Oblique.ttf"/>
<type name="DejaVu-LGC-Sans-ExtraLight" fullname="DejaVu LGC Sans ExtraLight" family="DejaVuGC Sans" style="Normal" stretch="Normal" weight="200" glyphs="DejaVuLGCSans-ExtraLight.ttf"/>
<type name="DejaVu-LGC-Sans-Mono-Bold" fullname="DejaVu LGC Sans Mono Bold" family="DejaVuGC Sans Mono" style="Normal" stretch="Normal" weight="700" glyphs="DejaVuLGCSansMono-Bold.ttf"/>
<type name="DejaVu-LGC-Sans-Mono-Bold-Oblique" fullname="DejaVu LGC Sans Mono Bold Oblique" family="DejaVuGC Sans Mono" style="Oblique" stretch="Normal" weight="700" glyphs="DejaVuLGCSansMono-BoldOblique.ttf"/>
<type name="DejaVu-LGC-Sans-Mono-Book" fullname="DejaVu LGC Sans Mono Book" family="DejaVuGC Sans Mono" style="Normal" stretch="Normal" weight="400" glyphs="DejaVuLGCSansMono.ttf"/>
<type name="DejaVu-LGC-Sans-Mono-Oblique" fullname="DejaVu LGC Sans Mono Oblique" family="DejaVuGC Sans Mono" style="Oblique" stretch="Normal" weight="400" glyphs="DejaVuLGCSansMono-Oblique.ttf"/>
<type name="DejaVu-LGC-Sans-Oblique" fullname="DejaVu LGC Sans Oblique" family="DejaVuGC Sans" style="Oblique" stretch="Normal" weight="400" glyphs="DejaVuLGCSans-Oblique.ttf"/>
<type name="DejaVu-LGC-Serif-Bold" fullname="DejaVu LGC Serif Bold" family="DejaVuGC Serif" style="Normal" stretch="Normal" weight="700" glyphs="DejaVuLGCSerif-Bold.ttf"/>
<type name="DejaVu-LGC-Serif-Bold-Italic" fullname="DejaVu LGC Serif Bold Italic" family="DejaVuGC Serif" style="Italic" stretch="Normal" weight="700" glyphs="DejaVuLGCSerif-BoldItalic.ttf"/>
<type name="DejaVu-LGC-Serif-Book" fullname="DejaVu LGC Serif Book" family="DejaVuGC Serif" style="Normal" stretch="Normal" weight="400" glyphs="DejaVuLGCSerif.ttf"/>
<type name="DejaVu-LGC-Serif-Condensed" fullname="DejaVu LGC Serif Condensed" family="DejaVuGC Serif" style="Normal" stretch="SemiCondensed" weight="400" glyphs="DejaVuLGCSerifCondensed.ttf"/>
<type name="DejaVu-LGC-Serif-Condensed-Bold" fullname="DejaVu LGC Serif Condensed Bold" family="DejaVuGC Serif" style="Normal" stretch="SemiCondensed" weight="700" glyphs="DejaVuLGCSerifCondensed-Bold.ttf"/>
<type name="DejaVu-LGC-Serif-Condensed-Bold-Italic" fullname="DejaVu LGC Serif Condensed Bold Italic" family="DejaVuGC Serif" style="Italic" stretch="SemiCondensed" weight="700" glyphs="DejaVuLGCSerifCondensed-BoldItalic.ttf"/>
<type name="DejaVu-LGC-Serif-Condensed-Italic" fullname="DejaVu LGC Serif -Condensed Italic" family="DejaVuGC Serif" style="Italic" stretch="SemiCondensed" weight="400" glyphs="DejaVuLGCSerifCondensed-Italic.ttf"/>
<type name="DejaVu-LGC-Serif-Italic" fullname="DejaVu LGC Serif Italic" family="DejaVuGC Serif" style="Italic" stretch="Normal" weight="400" glyphs="DejaVuLGCSerif-Italic.ttf"/>
<type name="DejaVu-Sans-Bold" fullname="DejaVu Sans Bold" family="DejaVu Sans" style="Normal" stretch="Normal" weight="700" glyphs="DejaVuSans-Bold.ttf"/>
<type name="DejaVu-Sans-Bold-Oblique" fullname="DejaVu Sans Bold Oblique" family="DejaVu Sans" style="Oblique" stretch="Normal" weight="700" glyphs="DejaVuSans-BoldOblique.ttf"/>
<type name="DejaVu-Sans-Book" fullname="DejaVu Sans Book" family="DejaVu Sans" style="Normal" stretch="Normal" weight="400" glyphs="DejaVuSans.ttf"/>
<type name="DejaVu-Sans-Condensed" fullname="DejaVu Sans Condensed" family="DejaVu Sans" style="Normal" stretch="SemiCondensed" weight="400" glyphs="DejaVuSansCondensed.ttf"/>
<type name="DejaVu-Sans-Condensed-Bold" fullname="DejaVu Sans Condensed Bold" family="DejaVu Sans" style="Normal" stretch="SemiCondensed" weight="700" glyphs="DejaVuSansCondensed-Bold.ttf"/>
<type name="DejaVu-Sans-Condensed-Bold-Oblique" fullname="DejaVu Sans Condensed Bold Oblique" family="DejaVu Sans" style="Oblique" stretch="SemiCondensed" weight="700" glyphs="DejaVuSansCondensed-BoldOblique.ttf"/>
<type name="DejaVu-Sans-Condensed-Oblique" fullname="DejaVu Sans Condensed Oblique" family="DejaVu Sans" style="Oblique" stretch="SemiCondensed" weight="400" glyphs="DejaVuSansCondensed-Oblique.ttf"/>
<type name="DejaVu-Sans-ExtraLight" fullname="DejaVu Sans ExtraLight" family="DejaVu Sans" style="Normal" stretch="Normal" weight="200" glyphs="DejaVuSans-ExtraLight.ttf"/>
<type name="DejaVu-Sans-Mono-Bold" fullname="DejaVu Sans Mono Bold" family="DejaVu Sans Mono" style="Normal" stretch="Normal" weight="700" glyphs="DejaVuSansMono-Bold.ttf"/>
<type name="DejaVu-Sans-Mono-Bold-Oblique" fullname="DejaVu Sans Mono Bold Oblique" family="DejaVu Sans Mono" style="Oblique" stretch="Normal" weight="700" glyphs="DejaVuSansMono-BoldOblique.ttf"/>
<type name="DejaVu-Sans-Mono-Book" fullname="DejaVu Sans Mono Book" family="DejaVu Sans Mono" style="Normal" stretch="Normal" weight="400" glyphs="DejaVuSansMono.ttf"/>
<type name="DejaVu-Sans-Mono-Oblique" fullname="DejaVu Sans Mono Oblique" family="DejaVu Sans Mono" style="Oblique" stretch="Normal" weight="400" glyphs="DejaVuSansMono-Oblique.ttf"/>
<type name="DejaVu-Sans-Oblique" fullname="DejaVu Sans Oblique" family="DejaVu Sans" style="Oblique" stretch="Normal" weight="400" glyphs="DejaVuSans-Oblique.ttf"/>
<type name="DejaVu-Serif-Bold" fullname="DejaVu Serif Bold" family="DejaVu Serif" style="Normal" stretch="Normal" weight="700" glyphs="DejaVuSerif-Bold.ttf"/>
<type name="DejaVu-Serif-Bold-Italic" fullname="DejaVu Serif Bold Italic" family="DejaVu Serif" style="Italic" stretch="Normal" weight="700" glyphs="DejaVuSerif-BoldItalic.ttf"/>
<type name="DejaVu-Serif-Book" fullname="DejaVu Serif Book" family="DejaVu Serif" style="Normal" stretch="Normal" weight="400" glyphs="DejaVuSerif.ttf"/>
<type name="DejaVu-Serif-Condensed" fullname="DejaVu Serif Condensed" family="DejaVu Serif" style="Normal" stretch="SemiCondensed" weight="400" glyphs="DejaVuSerifCondensed.ttf"/>
<type name="DejaVu-Serif-Condensed-Bold" fullname="DejaVu Serif Condensed Bold" family="DejaVu Serif" style="Normal" stretch="SemiCondensed" weight="700" glyphs="DejaVuSerifCondensed-Bold.ttf"/>
<type name="DejaVu-Serif-Condensed-Bold-Italic" fullname="DejaVu Serif Condensed Bold Italic" family="DejaVu Serif" style="Italic" stretch="SemiCondensed" weight="700" glyphs="DejaVuSerifCondensed-BoldItalic.ttf"/>
<type name="DejaVu-Serif-Condensed-Italic" fullname="DejaVu Serif Condensed Italic" family="DejaVu Serif" style="Italic" stretch="SemiCondensed" weight="400" glyphs="DejaVuSerifCondensed-Italic.ttf"/>
<type name="DejaVu-Serif-Italic" fullname="DejaVu Serif Italic" family="DejaVu Serif" style="Italic" stretch="Normal" weight="400" glyphs="DejaVuSerif-Italic.ttf"/>
</typemap>

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE typemap [
<!ELEMENT typemap (type)+>
<!ELEMENT type (#PCDATA)>
<!ELEMENT include (#PCDATA)>
<!ATTLIST type name CDATA #REQUIRED>
<!ATTLIST type fullname CDATA #IMPLIED>
<!ATTLIST type family CDATA #IMPLIED>
<!ATTLIST type foundry CDATA #IMPLIED>
<!ATTLIST type weight CDATA #IMPLIED>
<!ATTLIST type style CDATA #IMPLIED>
<!ATTLIST type stretch CDATA #IMPLIED>
<!ATTLIST type format CDATA #IMPLIED>
<!ATTLIST type metrics CDATA #IMPLIED>
<!ATTLIST type glyphs CDATA #REQUIRED>
<!ATTLIST type version CDATA #IMPLIED>
<!ATTLIST include file CDATA #REQUIRED>
]>
<typemap>
<type name="AvantGarde-Book" fullname="AvantGarde Book" family="AvantGarde" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/a010013l.afm" glyphs="/usr/share/fonts/type1/gsfonts/a010013l.pfb"/>
<type name="AvantGarde-BookOblique" fullname="AvantGarde Book Oblique" family="AvantGarde" foundry="URW" weight="400" style="oblique" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/a010033l.afm" glyphs="/usr/share/fonts/type1/gsfonts/a010033l.pfb"/>
<type name="AvantGarde-Demi" fullname="AvantGarde DemiBold" family="AvantGarde" foundry="URW" weight="600" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/a010015l.afm" glyphs="/usr/share/fonts/type1/gsfonts/a010015l.pfb"/>
<type name="AvantGarde-DemiOblique" fullname="AvantGarde DemiOblique" family="AvantGarde" foundry="URW" weight="600" style="oblique" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/a010035l.afm" glyphs="/usr/share/fonts/type1/gsfonts/a010035l.pfb"/>
<type name="Bookman-Demi" fullname="Bookman DemiBold" family="Bookman" foundry="URW" weight="600" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/b018015l.afm" glyphs="/usr/share/fonts/type1/gsfonts/b018015l.pfb"/>
<type name="Bookman-DemiItalic" fullname="Bookman DemiBold Italic" family="Bookman" foundry="URW" weight="600" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/b018035l.afm" glyphs="/usr/share/fonts/type1/gsfonts/b018035l.pfb"/>
<type name="Bookman-Light" fullname="Bookman Light" family="Bookman" foundry="URW" weight="300" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/b018012l.afm" glyphs="/usr/share/fonts/type1/gsfonts/b018012l.pfb"/>
<type name="Bookman-LightItalic" fullname="Bookman Light Italic" family="Bookman" foundry="URW" weight="300" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/b018032l.afm" glyphs="/usr/share/fonts/type1/gsfonts/b018032l.pfb"/>
<type name="Courier" fullname="Courier Regular" family="Courier" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n022003l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n022003l.pfb"/>
<type name="Courier-Bold" fullname="Courier Bold" family="Courier" foundry="URW" weight="700" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n022004l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n022004l.pfb"/>
<type name="Courier-Oblique" fullname="Courier Regular Oblique" family="Courier" foundry="URW" weight="400" style="oblique" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n022023l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n022023l.pfb"/>
<type name="Courier-BoldOblique" fullname="Courier Bold Oblique" family="Courier" foundry="URW" weight="700" style="oblique" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n022024l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n022024l.pfb"/>
<type name="fixed" fullname="Helvetica Regular" family="Helvetica" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019003l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019003l.pfb"/>
<type name="Helvetica" fullname="Helvetica Regular" family="Helvetica" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019003l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019003l.pfb"/>
<type name="Helvetica-Bold" fullname="Helvetica Bold" family="Helvetica" foundry="URW" weight="700" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019004l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019004l.pfb"/>
<type name="Helvetica-Oblique" fullname="Helvetica Regular Italic" family="Helvetica" foundry="URW" weight="400" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019023l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019023l.pfb"/>
<type name="Helvetica-BoldOblique" fullname="Helvetica Bold Italic" family="Helvetica" foundry="URW" weight="700" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019024l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019024l.pfb"/>
<type name="Helvetica-Narrow" fullname="Helvetica Narrow" family="Helvetica Narrow" foundry="URW" weight="400" style="normal" stretch="condensed" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019043l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019043l.pfb"/>
<type name="Helvetica-Narrow-Oblique" fullname="Helvetica Narrow Oblique" family="Helvetica Narrow" foundry="URW" weight="400" style="oblique" stretch="condensed" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019063l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019063l.pfb"/>
<type name="Helvetica-Narrow-Bold" fullname="Helvetica Narrow Bold" family="Helvetica Narrow" foundry="URW" weight="700" style="normal" stretch="condensed" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019044l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019044l.pfb"/>
<type name="Helvetica-Narrow-BoldOblique" fullname="Helvetica Narrow Bold Oblique" family="Helvetica Narrow" foundry="URW" weight="700" style="oblique" stretch="condensed" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n019064l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n019064l.pfb"/>
<type name="NewCenturySchlbk-Roman" fullname="New Century Schoolbook" family="NewCenturySchlbk" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/c059013l.afm" glyphs="/usr/share/fonts/type1/gsfonts/c059013l.pfb"/>
<type name="NewCenturySchlbk-Italic" fullname="New Century Schoolbook Italic" family="NewCenturySchlbk" foundry="URW" weight="400" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/c059033l.afm" glyphs="/usr/share/fonts/type1/gsfonts/c059033l.pfb"/>
<type name="NewCenturySchlbk-Bold" fullname="New Century Schoolbook Bold" family="NewCenturySchlbk" foundry="URW" weight="700" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/c059016l.afm" glyphs="/usr/share/fonts/type1/gsfonts/c059016l.pfb"/>
<type name="NewCenturySchlbk-BoldItalic" fullname="New Century Schoolbook Bold Italic" family="NewCenturySchlbk" foundry="URW" weight="700" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/c059036l.afm" glyphs="/usr/share/fonts/type1/gsfonts/c059036l.pfb"/>
<type name="Palatino-Roman" fullname="Palatino Regular" family="Palatino" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/p052003l.afm" glyphs="/usr/share/fonts/type1/gsfonts/p052003l.pfb"/>
<type name="Palatino-Italic" fullname="Palatino Italic" family="Palatino" foundry="URW" weight="400" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/p052023l.afm" glyphs="/usr/share/fonts/type1/gsfonts/p052023l.pfb"/>
<type name="Palatino-Bold" fullname="Palatino Bold" family="Palatino" foundry="URW" weight="700" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/p052004l.afm" glyphs="/usr/share/fonts/type1/gsfonts/p052004l.pfb"/>
<type name="Palatino-BoldItalic" fullname="Palatino Bold Italic" family="Palatino" foundry="URW" weight="700" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/p052024l.afm" glyphs="/usr/share/fonts/type1/gsfonts/p052024l.pfb"/>
<type name="Times-Roman" fullname="Times Regular" family="Times" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n021003l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n021003l.pfb"/>
<type name="Times-Bold" fullname="Times Medium" family="Times" foundry="URW" weight="700" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n021004l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n021004l.pfb"/>
<type name="Times-Italic" fullname="Times Regular Italic" family="Times" foundry="URW" weight="400" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n021023l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n021023l.pfb"/>
<type name="Times-BoldItalic" fullname="Times Medium Italic" family="Times" foundry="URW" weight="700" style="italic" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/n021024l.afm" glyphs="/usr/share/fonts/type1/gsfonts/n021024l.pfb"/>
<type name="Symbol" fullname="Symbol" family="Symbol" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/type1/gsfonts/s050000l.afm" glyphs="/usr/share/fonts/type1/gsfonts/s050000l.pfb" version="0.1" encoding="AdobeCustom"/>
</typemap>

View File

@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE typemap [
<!ELEMENT typemap (type)+>
<!ELEMENT type (#PCDATA)>
<!ELEMENT include (#PCDATA)>
<!ATTLIST type name CDATA #REQUIRED>
<!ATTLIST type fullname CDATA #IMPLIED>
<!ATTLIST type family CDATA #IMPLIED>
<!ATTLIST type foundry CDATA #IMPLIED>
<!ATTLIST type weight CDATA #IMPLIED>
<!ATTLIST type style CDATA #IMPLIED>
<!ATTLIST type stretch CDATA #IMPLIED>
<!ATTLIST type format CDATA #IMPLIED>
<!ATTLIST type metrics CDATA #IMPLIED>
<!ATTLIST type glyphs CDATA #REQUIRED>
<!ATTLIST type version CDATA #IMPLIED>
<!ATTLIST include file CDATA #REQUIRED>
]>
<typemap>
<type name="Arial" fullname="Arial" family="Arial" weight="400" style="normal" stretch="normal" glyphs="arial.ttf"/>
<type name="Arial-Black" fullname="Arial Black" family="Arial" weight="900" style="normal" stretch="normal" glyphs="ariblk.ttf"/>
<type name="Arial-Bold" fullname="Arial Bold" family="Arial" weight="700" style="normal" stretch="normal" glyphs="arialbd.ttf"/>
<type name="Arial-Bold-Italic" fullname="Arial Bold Italic" family="Arial" weight="700" style="italic" stretch="normal" glyphs="arialbi.ttf"/>
<type name="Arial-Italic" fullname="Arial Italic" family="Arial" weight="400" style="italic" stretch="normal" glyphs="ariali.ttf"/>
<type name="Arial-Narrow" fullname="Arial Narrow" family="Arial Narrow" weight="400" style="normal" stretch="condensed" glyphs="arialn.ttf"/>
<type name="Arial-Narrow-Bold" fullname="Arial Narrow Bold" family="Arial Narrow" weight="700" style="normal" stretch="condensed" glyphs="arialnb.ttf"/>
<type name="Arial-Narrow-Bold-Italic" fullname="Arial Narrow Bold Italic" family="Arial Narrow" weight="700" style="italic" stretch="condensed" glyphs="arialnbi.ttf"/>
<type name="Arial-Narrow-Italic" fullname="Arial Narrow Italic" family="Arial Narrow" weight="400" style="italic" stretch="condensed" glyphs="arnari.ttf"/>
<type name="Arial-Narrow-Special-G1" fullname="Arial Narrow Special G1" family="Arial Narrow Special G1" weight="400" style="normal" stretch="condensed" glyphs="msgeonr1.ttf"/>
<type name="Arial-Narrow-Special-G1-Bold" fullname="Arial Narrow Special G1 Bold" family="Arial Narrow Special G1" weight="700" style="normal" stretch="condensed" glyphs="msgeonb1.ttf"/>
<type name="Arial-Narrow-Special-G1-Italic" fullname="Arial Narrow Special G1 Italic" family="Arial Narrow Special G1" weight="400" style="italic" stretch="condensed" glyphs="msgeoni1.ttf"/>
<type name="Arial-Narrow-Special-G2" fullname="Arial Narrow Special G2" family="Arial Narrow Special G2" weight="400" style="normal" stretch="condensed" glyphs="msgeonr2.ttf"/>
<type name="Arial-Narrow-Special-G2-Bold" fullname="Arial Narrow Special G2 Bold" family="Arial Narrow Special G2" weight="700" style="Narrow" stretch="normal" glyphs="msgeonb2.ttf"/>
<type name="Arial-Narrow-Special-G2-Italic" fullname="Arial Narrow Special G2 Italic" family="Arial Narrow Special G2" weight="400" style="italic" stretch="condensed" glyphs="msgeoni2.ttf"/>
<type name="Arial-Rounded-MT-Bold" fullname="Arial Rounded MT Bold" family="Arial Rounded MT" weight="700" style="normal" stretch="normal" glyphs="arlrdbd.ttf"/>
<type name="Arial-Special-G1" fullname="Arial Special G1" family="Arial Special G1" weight="400" style="normal" stretch="normal" glyphs="msgeor1.ttf"/>
<type name="Arial-Special-G1-Bold" fullname="Arial Special G1 Bold" family="Arial Special G1" weight="700" style="normal" stretch="normal" glyphs="msgeoab1.ttf"/>
<type name="Arial-Special-G1-Bold-Italic" fullname="Arial Special G1 Bold Italic" family="Arial Special G1" weight="700" style="italic" stretch="normal" glyphs="msgeoax1.ttf"/>
<type name="Arial-Special-G1-Italic" fullname="Arial Special G1 Italic" family="Arial Special G1" weight="400" style="italic" stretch="normal" glyphs="msgeoai1.ttf"/>
<type name="Arial-Special-G2" fullname="Arial Special G2" family="Arial Special G2" weight="400" style="normal" stretch="normal" glyphs="msgeoar2.ttf"/>
<type name="Arial-Special-G2-Bold" fullname="Arial Special G2 Bold" family="Arial Special G2" weight="700" style="normal" stretch="normal" glyphs="msgeoab2.ttf"/>
<type name="Arial-Special-G2-Bold-Italic" fullname="Arial Special G2 Bold Italic" family="Arial Special G2" weight="700" style="italic" stretch="normal" glyphs="msgeoax2.ttf"/>
<type name="Arial-Special-G2-Italic" fullname="Arial Special G2 Italic" family="Arial Special G2" weight="400" style="italic" stretch="normal" glyphs="msgeoai2.ttf"/>
<type name="Bookman-Old-Style" fullname="Bookman Old Style" family="Bookman Old Style" weight="400" style="normal" stretch="normal" glyphs="bkmnos.ttf"/>
<type name="Bookman-Old-Style-Bold" fullname="Bookman Old Style Bold" family="Bookman Old Style" weight="700" style="normal" stretch="normal" glyphs="bookosb.ttf"/>
<type name="Bookman-Old-Style-Bold-Italic" fullname="Bookman Old Style Bold Italic" family="Bookman Old Style" weight="400" style="italic" stretch="normal" glyphs="bookosbi.ttf"/>
<type name="Bookman-Old-Style-Italic" fullname="Bookman Old Style Italic" family="Bookman Old Style" weight="400" style="italic" stretch="normal" glyphs="boookosi.ttf"/>
<type name="Century-Schoolbook" fullname="Century Schoolbook" family="Century Schoolbook" weight="400" style="normal" stretch="normal" glyphs="censcbk.ttf"/>
<type name="Century-Schoolbook-Bold" fullname="Century Schoolbook Bold" family="Century Schoolbook" weight="700" style="normal" stretch="normal" glyphs="schlbkb.ttf"/>
<type name="Century-Schoolbook-Bold-Italic" fullname="Century Schoolbook Bold Italic" family="Century Schoolbook" weight="700" style="italic" stretch="normal" glyphs="schlbkbi.ttf"/>
<type name="Century-Schoolbook-Italic" fullname="Century Schoolbook Italic" family="Century Schoolbook" weight="400" style="italic" stretch="normal" glyphs="schlbki.ttf"/>
<type name="Comic-Sans-MS" fullname="Comic Sans MS" family="Comic Sans MS" weight="400" style="normal" stretch="normal" glyphs="comic.ttf"/>
<type name="Comic-Sans-MS-Bold" fullname="Comic Sans MS Bold" family="Comic Sans MS" weight="700" style="normal" stretch="normal" glyphs="comicbd.ttf"/>
<type name="Courier-New" fullname="Courier New" family="Courier New" weight="400" style="normal" stretch="normal" glyphs="cour.ttf"/>
<type name="Courier-New-Bold" fullname="Courier New Bold" family="Courier New" weight="700" style="normal" stretch="normal" glyphs="courbd.ttf"/>
<type name="Courier-New-Bold-Italic" fullname="Courier New Bold Italic" family="Courier New" weight="700" style="italic" stretch="normal" glyphs="courbi.ttf"/>
<type name="Courier-New-Italic" fullname="Courier New Italic" family="Courier New" weight="400" style="italic" stretch="normal" glyphs="couri.ttf"/>
<type name="Garamond" fullname="Garamond" family="Garamond" weight="400" style="normal" stretch="normal" glyphs="gara.ttf"/>
<type name="Garamond-Bold" fullname="Garamond Bold" family="Garamond" weight="700" style="normal" stretch="normal" glyphs="garabd.ttf"/>
<type name="Garamond-Italic" fullname="Garamond Italic" family="Garamond" weight="400" style="italic" stretch="normal" glyphs="Italic"/>
<type name="Gill-Sans-MT-Ext-Condensed-Bold" fullname="Gill Sans MT Ext Condensed Bold" family="Gill Sans MT" weight="700" style="normal" stretch="extra-condensed" glyphs="glsnecb.ttf"/>
<type name="Impact" fullname="Impact" family="Impact" weight="400" style="normal" stretch="normal" glyphs="impact.ttf"/>
<type name="Lucida-Blackletter" fullname="Lucida Blackletter" family="Lucida Blackletter" weight="400" style="normal" stretch="normal" glyphs="lblack.ttf"/>
<type name="Lucida-Bright" fullname="Lucida Bright" family="Lucida Bright" weight="400" style="normal" stretch="normal" glyphs="lbrite.ttf"/>
<type name="Lucida-Bright-Demibold" fullname="Lucida Bright Demibold" family="Lucida Bright" weight="600" style="normal" stretch="normal" glyphs="lbrited.ttf"/>
<type name="Lucida-Bright-Demibold-Italic" fullname="Lucida Bright Demibold Italic" family="Lucida Bright" weight="600" style="italic" stretch="normal" glyphs="lbritedi.ttf"/>
<type name="Lucida-Bright-Italic" fullname="Lucida Bright Italic" family="Lucida Bright" weight="400" style="italic" stretch="normal" glyphs="lbritei.ttf"/>
<type name="Lucida-Caligraphy-Italic" fullname="Lucida Caligraphy Italic" family="Lucida Caligraphy" weight="400" style="italic" stretch="normal" glyphs="lcalig.ttf"/>
<type name="Lucida-Console, Lucida-Console" fullname="Lucida Console, Lucida Console" family="Regular" weight="400" style="lucon.ttf" stretch="normal" glyphs=""/>
<type name="Lucida-Fax-Demibold" fullname="Lucida Fax Demibold" family="Lucida Fax" weight="600" style="normal" stretch="normal" glyphs="lfaxd.ttf"/>
<type name="Lucida-Fax-Demibold-Italic" fullname="Lucida Fax Demibold Italic" family="Lucida Fax" weight="600" style="italic" stretch="normal" glyphs="lfaxdi.ttf"/>
<type name="Lucida-Fax-Italic" fullname="Lucida Fax Italic" family="Lucida Fax" weight="400" style="italic" stretch="normal" glyphs="lfaxi.ttf"/>
<type name="Lucida-Fax-Regular" fullname="Lucida Fax Regular" family="Lucida Fax" weight="400" style="normal" stretch="normal" glyphs="lfax.ttf"/>
<type name="Lucida-Handwriting-Italic" fullname="Lucida Handwriting Italic" family="Lucida Handwriting" weight="400" style="italic" stretch="normal" glyphs="lhandw.ttf"/>
<type name="Lucida-Sans-Demibold-Italic" fullname="Lucida Sans Demibold Italic" family="Lucida Sans" weight="600" style="italic" stretch="normal" glyphs="lsansdi.ttf"/>
<type name="Lucida-Sans-Demibold-Roman" fullname="Lucida Sans Demibold Roman" family="Lucida Sans Demibold" weight="400" style="normal" stretch="normal" glyphs="lsansd.ttf"/>
<type name="Lucida-Sans-Regular" fullname="Lucida Sans Regular" family="Lucida Sans" weight="400" style="normal" stretch="normal" glyphs="lsans.ttf"/>
<type name="Lucida-Sans-Typewriter-Bold" fullname="Lucida Sans Typewriter Bold" family="Lucida Sans Typewriter" weight="700" style="normal" stretch="normal" glyphs="ltypeb.ttf"/>
<type name="Lucida-Sans-Typewriter-Bold-Oblique" fullname="Lucida Sans Typewriter Bold Oblique" family="Lucida Sans Typewriter" weight="700" style="normal" stretch="normal" glyphs="ltypebo.ttf"/>
<type name="Lucida-Sans-Typewriter-Oblique" fullname="Lucida Sans Typewriter Oblique" family="Lucida Sans Typewriter" weight="700" style="normal" stretch="normal" glyphs="ltypeo.ttf"/>
<type name="Lucida-Sans-Typewriter-Regular" fullname="Lucida Sans Typewriter Regular" family="Lucida Sans Typewriter" weight="400" style="normal" stretch="normal" glyphs="ltype.ttf"/>
<type name="MS-Sans-Serif" fullname="MS Sans Serif" family="MS Sans Serif" weight="400" style="normal" stretch="normal" glyphs="sseriff.ttf"/>
<type name="MS-Serif" fullname="MS Serif" family="MS Serif" weight="400" style="normal" stretch="normal" glyphs="seriff.ttf"/>
<type name="Modern" fullname="Modern" family="Modern" weight="400" style="normal" stretch="normal" glyphs="modern.ttf"/>
<type name="Monotype-Corsiva" fullname="Monotype Corsiva" family="Monotype Corsiva" weight="400" style="normal" stretch="normal" glyphs="mtcorsva.ttf"/>
<type name="Small-Fonts" fullname="Small Fonts" family="Small Fonts" weight="400" style="normal" stretch="normal" glyphs="smallf.ttf"/>
<type name="Symbol" fullname="Symbol" family="Symbol" weight="400" style="normal" stretch="normal" glyphs="symbol.ttf" encoding="AppleRoman"/>
<type name="Tahoma" fullname="Tahoma" family="Tahoma" weight="400" style="normal" stretch="normal" glyphs="tahoma.ttf"/>
<type name="Tahoma-Bold" fullname="Tahoma Bold" family="Tahoma" weight="700" style="normal" stretch="normal" glyphs="tahomabd.ttf"/>
<type name="Times-New-Roman" fullname="Times New Roman" family="Times New Roman" weight="400" style="normal" stretch="normal" glyphs="times.ttf"/>
<type name="Times-New-Roman-Bold" fullname="Times New Roman Bold" family="Times New Roman" weight="700" style="normal" stretch="normal" glyphs="timesbd.ttf"/>
<type name="Times-New-Roman-Bold-Italic" fullname="Times New Roman Bold Italic" family="Times New Roman" weight="700" style="italic" stretch="normal" glyphs="timesbi.ttf"/>
<type name="Times-New-Roman-Italic" fullname="Times New Roman Italic" family="Times New Roman" weight="400" style="italic" stretch="normal" glyphs="timesi.ttf"/>
<type name="Times-New-Roman-MT-Extra-Bold" fullname="Times New Roman MT Extra Bold" family="Times New Roman MT" weight="800" style="normal" stretch="normal" glyphs="timnreb.ttf"/>
<type name="Verdana" fullname="Verdana" family="Verdana" weight="400" style="normal" stretch="normal" glyphs="verdana.ttf"/>
<type name="Verdana-Bold" fullname="Verdana Bold" family="Verdana" weight="700" style="normal" stretch="normal" glyphs="verdanab.ttf"/>
<type name="Verdana-Bold-Italic" fullname="Verdana Bold Italic" family="Verdana" weight="700" style="italic" stretch="normal" glyphs="verdanaz.ttf"/>
<type name="Verdana-Italic" fullname="Verdana Italic" family="Verdana" weight="400" style="italic" stretch="normal" glyphs="verdanai.ttf"/>
<type name="Wingdings" fullname="Wingdings" family="Wingdings" weight="400" style="normal" stretch="normal" glyphs="wingding.ttf" encoding="AppleRoman"/>
<type name="Wingdings-2" fullname="Wingdings 2" family="Wingdings 2" weight="400" style="normal" stretch="normal" glyphs="wingdng2.ttf" encoding="AppleRoman"/>
<type name="Wingdings-3" fullname="Wingdings 3" family="Wingdings 3" weight="400" style="normal" stretch="normal" glyphs="wingdng3.ttf" encoding="AppleRoman"/>
</typemap>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE typemap [
<!ELEMENT typemap (type)+>
<!ELEMENT type (#PCDATA)>
<!ELEMENT include (#PCDATA)>
<!ATTLIST type name CDATA #REQUIRED>
<!ATTLIST type fullname CDATA #IMPLIED>
<!ATTLIST type family CDATA #IMPLIED>
<!ATTLIST type foundry CDATA #IMPLIED>
<!ATTLIST type weight CDATA #IMPLIED>
<!ATTLIST type style CDATA #IMPLIED>
<!ATTLIST type stretch CDATA #IMPLIED>
<!ATTLIST type format CDATA #IMPLIED>
<!ATTLIST type metrics CDATA #IMPLIED>
<!ATTLIST type glyphs CDATA #REQUIRED>
<!ATTLIST type version CDATA #IMPLIED>
<!ATTLIST include file CDATA #REQUIRED>
]>
<typemap>
<include file="type-ghostscript.xml" />
</typemap>

View File

@@ -0,0 +1,6 @@
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false

View File

@@ -0,0 +1,13 @@
[VPN Connection]
name=pptp
service=org.freedesktop.NetworkManager.pptp
program=/usr/lib/NetworkManager/nm-pptp-service
supports-multiple-connections=true
[libnm]
plugin=/usr/lib/arm-linux-gnueabihf/NetworkManager/libnm-vpn-plugin-pptp.so
[GNOME]
auth-dialog=/usr/lib/NetworkManager/nm-pptp-auth-dialog
properties=/usr/lib/arm-linux-gnueabihf/NetworkManager/libnm-pptp-properties
supports-external-ui-mode=true

View File

@@ -0,0 +1,2 @@
[connection]
wifi.powersave = 3

View File

@@ -0,0 +1,76 @@
#!/bin/sh -e
# Script to dispatch NetworkManager events
#
# Runs ifupdown scripts when NetworkManager fiddles with interfaces.
# See NetworkManager(8) for further documentation of the dispatcher events.
if [ -z "$1" ]; then
echo "$0: called with no interface" 1>&2
exit 1;
fi
if [ -n "$IP4_NUM_ADDRESSES" ] && [ "$IP4_NUM_ADDRESSES" -gt 0 ]; then
ADDRESS_FAMILIES="$ADDRESS_FAMILIES inet"
fi
if [ -n "$IP6_NUM_ADDRESSES" ] && [ "$IP6_NUM_ADDRESSES" -gt 0 ]; then
ADDRESS_FAMILIES="$ADDRESS_FAMILIES inet6"
fi
# If we have a VPN connection ignore the underlying IP address(es)
if [ "$2" = "vpn-up" ] || [ "$2" = "vpn-down" ]; then
ADDRESS_FAMILIES=""
fi
if [ -n "$VPN_IP4_NUM_ADDRESSES" ] && [ "$VPN_IP4_NUM_ADDRESSES" -gt 0 ]; then
ADDRESS_FAMILIES="$ADDRESS_FAMILIES inet"
fi
if [ -n "$VPN_IP6_NUM_ADDRESSES" ] && [ "$VPN_IP6_NUM_ADDRESSES" -gt 0 ]; then
ADDRESS_FAMILIES="$ADDRESS_FAMILIES inet6"
fi
# We're probably bringing the interface down.
[ -n "$ADDRESS_FAMILIES" ] || ADDRESS_FAMILIES="inet"
# Fake ifupdown environment
export IFACE="$1"
export LOGICAL="$1"
export METHOD="NetworkManager"
export VERBOSITY="0"
for i in $ADDRESS_FAMILIES; do
export ADDRFAM="$i"
# Run the right scripts
case "$2" in
up|vpn-up)
export MODE="start"
export PHASE="post-up"
run-parts /etc/network/if-up.d
;;
down|vpn-down)
export MODE="stop"
export PHASE="post-down"
run-parts /etc/network/if-post-down.d
;;
# pre-up/pre-down not implemented. See
# https://bugzilla.gnome.org/show_bug.cgi?id=387832
# pre-up)
# export MODE="start"
# export PHASE="pre-up"
# run-parts /etc/network/if-pre-up.d
# ;;
# pre-down)
# export MODE="stop"
# export PHASE="pre-down"
# run-parts /etc/network/if-down.d
# ;;
hostname|dhcp4-change|dhcp6-change)
# Do nothing
;;
*)
echo "$0: called with unknown action \`$2'" 1>&2
exit 1
;;
esac
done

View File

@@ -0,0 +1,119 @@
#!/bin/sh
# tlp-rdw - network manager dispatcher hook:
# enable/disable radios on ifup/ifdown
#
# Copyright (c) 2015 Thomas Koch <linrunner at gmx.net>
# This software is licensed under the GPL v2 or later.
# --- Constants
readonly LIBDIRS="/usr/lib/tlp-pm /usr/lib64/tlp-pm"
readonly LIBS="tlp-functions tlp-rf-func"
readonly RDW_NM_LOCK="rdw_nm"
readonly RDW_NM_LOCKTIME=2
# --- Locate and source libraries
for libdir in $LIBDIRS; do [ -d $libdir ] && break; done
[ -d $libdir ] || exit 0
for lib in $LIBS; do
[ -f $libdir/$lib ] || exit 0
. $libdir/$lib
done
# --- MAIN
read_defaults
check_tlp_enabled || exit 0
add_sbin2path
# Get args
iface="$1"
action="$2"
itype="unknown"
# Quit for invalid interfaces
[ -n "$iface" ] && [ "$iface" != "none" ] || exit 0
echo_debug "nm" "rdw_nm($iface).$action"
if [ -n "$addpath" ]; then
echo_debug "path" "PATH=$oldpath[$addpath]"
else
echo_debug "path" "PATH=$oldpath"
fi
# Quit if timed lock in progress
check_timed_lock $RDW_NM_LOCK && exit 0
# Determine interface type
if cmd_exists $NMCLI ; then
# nmcli is available --> check if nmcli dev output matches interface
itype="$($NMCLI dev | awk '$1 ~ /'$iface'/ { print $2; }')"
if [ -z "$itype" ]; then
# iface is not found in nmcli dev output: many WWAN devices have
# different devices for control and the actual network connection
# --> check if interface matches a WWAN device
get_wwan_ifaces
if wordinlist "$iface" "$wanifaces"; then
itype="wwan"
else
itype="unknown"
fi
fi
echo_debug "nm" "rdw_nm($iface).$action: type=$itype [nmcli]"
else
# nmcli is not available
echo_debug "nm" "rdw_nm($iface)$action.nmcli_not_available"
fi
case $action in
up) # interface up, disable configured interfaces
set_timed_lock $RDW_NM_LOCK $RDW_NM_LOCKTIME # lock rdw events
case $itype in
*ethernet)
for dev in $DEVICES_TO_DISABLE_ON_LAN_CONNECT; do
[ -n "$dev" ] && device_switch $dev off
done
;;
*wireless|wifi)
for dev in $DEVICES_TO_DISABLE_ON_WIFI_CONNECT; do
[ -n "$dev" ] && [ "$dev" != wifi ] && device_switch $dev off
done
;;
gsm|wwan)
for dev in $DEVICES_TO_DISABLE_ON_WWAN_CONNECT; do
[ -n "$dev" ] && [ "$dev" != wwan ] && device_switch $dev off
done
;;
esac
;; # up
down) # interface down, enable configured interfaces
case $itype in
*ethernet)
for dev in $DEVICES_TO_ENABLE_ON_LAN_DISCONNECT; do
[ -n "$dev" ] && device_switch $dev on
done
;;
*wireless|wifi)
for dev in $DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT; do
[ -n "$dev" ] && [ "$dev" != wifi ] && device_switch $dev on
done
;;
gsm)
for dev in $DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT; do
[ -n "$dev" ] && [ "$dev" != wwan ] && device_switch $dev on
done
;;
esac
;; # down
esac
exit 0

View File

@@ -0,0 +1,94 @@
# Only the system vendor should modify this file, ordinary users
# should not have to change anything.
[UPower]
# Enable the Watts Up Pro device.
#
# The Watts Up Pro contains a generic FTDI USB device without a specific
# vendor and product ID. When we probe for WUP devices, we can cause
# the user to get a perplexing "Device or resource busy" error when
# attempting to use their non-WUP device.
#
# The generic FTDI device is known to also be used on:
#
# - Sparkfun FT232 breakout board
# - Parallax Propeller
#
# default=false
EnableWattsUpPro=false
# Don't poll the kernel for battery level changes.
#
# Some hardware will send us battery level changes through
# events, rather than us having to poll for it. This option
# allows disabling polling for hardware that sends out events.
#
# default=false
NoPollBatteries=false
# Do we ignore the lid state
#
# Some laptops are broken. The lid state is either inverted, or stuck
# on or off. We can't do much to fix these problems, but this is a way
# for users to make the laptop panel vanish, a state that might be used
# by a couple of user-space daemons. On Linux systems, see also
# logind.conf(5).
#
# default=false
IgnoreLid=false
# Policy for warnings and action based on battery levels
#
# Whether battery percentage based policy should be used. The default
# is to use the time left, change to true to use the percentage, which
# should work around broken firmwares. It is also more reliable than
# the time left (frantically saving all your files is going to use more
# battery than letting it rest for example).
# default=true
UsePercentageForPolicy=true
# When UsePercentageForPolicy is true, the levels at which UPower will
# consider the battery low, critical, or take action for the critical
# battery level.
#
# This will also be used for batteries which don't have time information
# such as that of peripherals.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# PercentageLow=10
# PercentageCritical=3
# PercentageAction=2
PercentageLow=10
PercentageCritical=3
PercentageAction=2
# When UsePercentageForPolicy is false, the time remaining at which UPower
# will consider the battery low, critical, or take action for the critical
# battery level.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# TimeLow=1200
# TimeCritical=300
# TimeAction=120
TimeLow=1200
TimeCritical=300
TimeAction=120
# The action to take when "TimeAction" or "PercentageAction" above has been
# reached for the batteries (UPS or laptop batteries) supplying the computer
#
# Possible values are:
# PowerOff
# Hibernate
# HybridSleep
#
# If HybridSleep isn't available, Hibernate will be used
# If Hibernate isn't available, PowerOff will be used
CriticalPowerAction=HybridSleep

34
etc_org/X11/Xreset Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/sh
#
# /etc/X11/Xreset
#
# global Xreset file -- for use by display managers
# $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
set -e
PROGNAME=Xreset
SYSSESSIONDIR=/etc/X11/Xreset.d
if [ ! -d "$SYSSESSIONDIR" ]; then
# Nothing to do, exiting
exit 0
fi
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
set +e
for SESSIONFILE in $SESSIONFILES; do
. $SESSIONFILE
done
set -e
fi
exit 0
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,4 @@
# Scripts in this directory are executed as root when a user log out from
# a display manager using /etc/X11/Xreset.
# The username of the user logging out is provided in the $USER environment
# variable.

View File

@@ -0,0 +1,10 @@
! $Id$
! load color-specific resources for clients that have them
#ifdef COLOR
*customization: -color
#endif
! make Xaw (Athena widget set) clients understand the delete key
! this causes problems with some non-Xaw apps, use with care
! *Text.translations: #override ~Shift ~Meta <Key>Delete: delete-next-character()

119
etc_org/X11/Xsession Executable file
View File

@@ -0,0 +1,119 @@
#!/bin/sh
#
# /etc/X11/Xsession
#
# global Xsession file -- used by display managers and xinit (startx)
# $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
set -e
PROGNAME=Xsession
message () {
# pretty-print messages of arbitrary length; use xmessage if it
# is available and $DISPLAY is set
MESSAGE="$PROGNAME: $*"
echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2
if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file -
fi
}
message_nonl () {
# pretty-print messages of arbitrary length (no trailing newline); use
# xmessage if it is available and $DISPLAY is set
MESSAGE="$PROGNAME: $*"
echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2;
if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file -
fi
}
errormsg () {
# exit script with error
message "$*"
exit 1
}
internal_errormsg () {
# exit script with error; essentially a "THIS SHOULD NEVER HAPPEN" message
# One big call to message() for the sake of xmessage; if we had two then
# the user would have dismissed the error we want reported before seeing the
# request to report it.
errormsg "$*" \
"Please report the installed version of the \"x11-common\"" \
"package and the complete text of this error message to" \
"<debian-x@lists.debian.org>."
}
# initialize variables for use by all session scripts
OPTIONFILE=/etc/X11/Xsession.options
SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources
SYSSESSIONDIR=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc
ALTUSERXSESSION=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors
# attempt to create an error file; abort if we cannot
if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] &&
[ ! -L "$ERRFILE" ]; then
chmod 600 "$ERRFILE"
elif ERRFILE=$(tempfile 2> /dev/null); then
if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
"\"$ERRFILE\"; look for session log/errors in" \
"\"$TMPDIR/xsession-$USER\"."
fi
else
errormsg "unable to create X session log/error file; aborting."
fi
# truncate ERRFILE if it is too big to avoid disk usage DoS
if [ "`stat -c%s \"$ERRFILE\"`" -gt 500000 ]; then
T=`mktemp -p "$HOME"`
tail -c 500000 "$ERRFILE" > "$T" && mv -f "$T" "$ERRFILE" || rm -f "$T"
fi
exec >>"$ERRFILE" 2>&1
echo "$PROGNAME: X session started for $LOGNAME at $(date)"
# sanity check; is our session script directory present?
if [ ! -d "$SYSSESSIONDIR" ]; then
errormsg "no \"$SYSSESSIONDIR\" directory found; aborting."
fi
# Attempt to create a file of non-zero length in /tmp; a full filesystem can
# cause mysterious X session failures. We do not use touch, :, or test -w
# because they won't actually create a file with contents. We also let standard
# error from tempfile and echo go to the error file to aid the user in
# determining what went wrong.
WRITE_TEST=$(tempfile)
if ! echo "*" >>"$WRITE_TEST"; then
message "warning: unable to write to ${WRITE_TEST%/*}; X session may exit" \
"with an error"
fi
rm -f "$WRITE_TEST"
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
set +e
for SESSIONFILE in $SESSIONFILES; do
. $SESSIONFILE
done
set -e
fi
exit 0
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,70 @@
# $Id: 20x11-common_process-args 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
# read OPTIONFILE
OPTIONS=$(cat "$OPTIONFILE") || true
has_option() {
if [ "${OPTIONS#*
$1}" != "$OPTIONS" ]; then
return 0
else
return 1
fi
}
# Determine how many arguments were provided.
case $# in
0)
# No arguments given; use default behavior.
;;
1)
# One argument given; see what it was.
case "$1" in
failsafe)
# Failsafe session was requested.
if has_option allow-failsafe; then
if [ -e /usr/bin/x-terminal-emulator ]; then
if [ -x /usr/bin/x-terminal-emulator ]; then
exec x-terminal-emulator -geometry +1+1
else
# fatal error
errormsg "unable to launch failsafe X session ---" \
"x-terminal-emulator not executable; aborting."
fi
else
# fatal error
errormsg "unable to launch failsafe X session ---" \
"x-terminal-emulator not found; aborting."
fi
fi
;;
default)
# Default behavior was requested.
;;
*)
# Specific program was requested.
STARTUP_FULL_PATH=$(/usr/bin/which "${1%% *}" || true)
if [ -n "$STARTUP_FULL_PATH" ] && [ -e "$STARTUP_FULL_PATH" ]; then
if [ -x "$STARTUP_FULL_PATH" ]; then
STARTUP="$1"
else
message "unable to launch \"$1\" X session ---" \
"\"$1\" not executable; falling back to default session."
fi
else
message "unable to launch \"$1\" X session ---" \
"\"$1\" not found; falling back to default session."
fi
;;
esac
;;
*)
# More than one argument given; we don't know what to do.
message "unsupported number of arguments ($#); falling back to default" \
"session."
;;
esac
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,26 @@
# $Id: 30x11-common_xresources 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
# If xrdb (from xbase-clients) is installed, merge system-wide X resources.
# Then merge the user's X resources, if the options file is so configured.
if [ -d "$SYSRESOURCES" ] && type xrdb >/dev/null 2>&1; then
RESOURCEFILES=$(run-parts --list $SYSRESOURCES)
if [ -n "$RESOURCEFILES" ]; then
for RESOURCEFILE in $RESOURCEFILES; do
xrdb -merge $RESOURCEFILE
done
fi
fi
if has_option allow-user-resources && [ -f "$USRRESOURCES" ]; then
if type xrdb >/dev/null 2>&1; then
xrdb -merge $USRRESOURCES
else
# Comment out this command if you desire a legacy-free X environment, and find
# the warning spurious.
message "warning: xrdb command not found; X resources not merged."
fi
fi
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,10 @@
# This file is sourced by Xsession(5), not executed.
# If xhost (from x11-xserver-utils) is installed, use it to give access
# to the X server to any process from the same user on the local host.
# Unlike other uses of xhost, this is safe since the kernel can check
# the actual owner of the calling process.
if type xhost >/dev/null 2>&1; then
xhost +si:localuser:$(id -un) || :
fi

View File

@@ -0,0 +1,6 @@
# This file is sourced by Xsession(5), not executed.
#Source user defined xsessionrc (locales and other environment variables)
if [ -r "$USERXSESSIONRC" ]; then
. "$USERXSESSIONRC"
fi

View File

@@ -0,0 +1,47 @@
# $Id: 50x11-common_determine-startup 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
# If no X session startup program was passed to the Xsession script as an
# argument (e.g., by the display manager), or if that program was not
# executable, fall back to looking for a user's custom X session script, if
# allowed by the options file.
if [ -z "$STARTUP" ]; then
if has_option allow-user-xsession; then
for STARTUPFILE in "$USERXSESSION" "$ALTUSERXSESSION"; do
if [ -e "$STARTUPFILE" ]; then
if [ -x "$STARTUPFILE" ]; then
STARTUP="$STARTUPFILE"
else
shell=${SHELL:-sh}
STARTUP="$shell $STARTUPFILE"
fi
break
fi
done
fi
fi
# If there is still nothing to use for a startup program, try the system
# default session manager, window manager, and terminal emulator.
if [ -z "$STARTUP" ]; then
if [ -x /usr/bin/x-session-manager ]; then
STARTUP=x-session-manager
elif [ -x /usr/bin/x-window-manager ]; then
STARTUP=x-window-manager
elif [ -x /usr/bin/x-terminal-emulator ]; then
STARTUP=x-terminal-emulator
fi
fi
# If we still have not found a startup program, give up.
if [ -z "$STARTUP" ]; then
ERRMSG="unable to start X session ---"
if has_option allow-user-xsession; then
ERRMSG="$ERRMSG no \"$USERXSESSION\" file, no \"$ALTUSERXSESSION\" file,"
fi
errormsg "$ERRMSG no session managers, no window managers, and no terminal" \
"emulators found; aborting."
fi
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,23 @@
# If we are running the MATE session, source ~/.materc
BASESTARTUP=${STARTUP%% *}
BASESTARTUP=${BASESTARTUP##*/}
if [ "$BASESTARTUP" = x-session-manager ]; then
BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
fi
case "$BASESTARTUP" in
mate-session*)
MATERC=$HOME/.materc
if [ -r "$MATERC" ]; then
. "$MATERC"
fi
# We prepend /usr/share/mate since its defaults.list actually points
# to /etc so it is configurable.
if [ -z "$XDG_DATA_DIRS" ]; then
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
else
XDG_DATA_DIRS=/usr/share/mate:"$XDG_DATA_DIRS"
fi
export XDG_DATA_DIRS
;;
esac

View File

@@ -0,0 +1,4 @@
# This file is sourced by Xsession(5), not executed.
[ -x /usr/bin/xhost ] && [ -x /usr/bin/id ] &&
xhost +si:localuser:`id -un` > /dev/null

View File

@@ -0,0 +1,22 @@
# This file is sourced by Xsession(5), not executed.
# Add additionnal xdg paths depending on selected desktop session
DEFAULT_XDG_CONFIG_DIRS='/etc/xdg'
DEFAULT_XDG_DATA_DIRS='/usr/local/share/:/usr/share/'
if [ -n "$DESKTOP_SESSION" ]; then
# readd default if was empty
if [ -z "$XDG_CONFIG_DIRS" ]; then
XDG_CONFIG_DIRS="$DEFAULT_XDG_CONFIG_DIRS"
fi
XDG_CONFIG_DIRS="$DEFAULT_XDG_CONFIG_DIRS"/xdg-"$DESKTOP_SESSION":"$XDG_CONFIG_DIRS"
export XDG_CONFIG_DIRS
# gnome is already added if gnome-session installed
if [ "$DESKTOP_SESSION" != "gnome" ]; then
if [ -z "$XDG_DATA_DIRS" ]; then
XDG_DATA_DIRS="$DEFAULT_XDG_DATA_DIRS"
fi
XDG_DATA_DIRS=/usr/share/"$DESKTOP_SESSION":"$XDG_DATA_DIRS"
export XDG_DATA_DIRS
fi
fi

View File

@@ -0,0 +1 @@
if [ -x /usr/bin/xbrlapi ]; then /usr/bin/xbrlapi -q & fi

View File

@@ -0,0 +1,3 @@
if [ -x /usr/bin/xdg-user-dirs-update ]; then
/usr/bin/xdg-user-dirs-update
fi

View File

@@ -0,0 +1,9 @@
# This file is sourced by Xsession(5), not executed.
# Add additional gconf path depending on selected desktop session
GCONF_PREFIX="/usr/share/gconf"
if [ -n "$DESKTOP_SESSION" ]; then
export MANDATORY_PATH=${GCONF_PREFIX}/${DESKTOP_SESSION}.mandatory.path
export DEFAULTS_PATH=${GCONF_PREFIX}/${DESKTOP_SESSION}.default.path
fi

View File

@@ -0,0 +1,46 @@
#!/bin/sh
# vim: set sts=4 expandtab:
# Copyright (C) 2012 Osamu Aoki <osamu@debian.org>
# Copyright (C) 2012 Aron Xu <aron@debian.org>
# GNU General Public License version 2 or later.
#
# Input Method launcher hook ... see im-launch(1).
# The hook script for dbus-launch is in 75 which changes $STARTUP string.
# This shuld be befor this dbus-launch hook to ensure the working dbus
# for input method. Thus moved from 80 to 70.
IMLAUNCH=/usr/bin/im-launch
# If already tweaked, keep hands off :-)
# If im-config is removed but not purged, keep hands off :-)
if [ -z "$XMODIFIERS" ] && \
[ -z "$GTK_IM_MODULE" ] && \
[ -z "$QT_IM_MODULE" ] && \
[ -z "$QT4_IM_MODULE" ] && \
[ -z "$CLUTTER_IM_MODULE" ] && \
[ -r /usr/share/im-config/xinputrc.common ]; then
IM_CONFIG_PHASE=1
export IM_CONFIG_PHASE
# initialize all im-config common functions and parameters
. /usr/share/im-config/xinputrc.common
unset TEXTDOMAIN
unset TEXTDOMAINDIR
# source the first found configuration file
if [ -r "$IM_CONFIG_XINPUTRC_USR" ]; then
. $IM_CONFIG_XINPUTRC_USR
elif [ -r "$IM_CONFIG_XINPUTRC_SYS" ]; then
. $IM_CONFIG_XINPUTRC_SYS
fi
# always export variables even for manual configuration.
export XMODIFIERS
export GTK_IM_MODULE
export QT_IM_MODULE
export QT4_IM_MODULE
export CLUTTER_IM_MODULE
fi
# Change $STARTUP string to im-launch while keeping the old $STARTUP string
# as its arguments
if [ -x "$IMLAUNCH" ]; then
STARTUP="$IMLAUNCH $STARTUP"
fi

View File

@@ -0,0 +1,17 @@
# $Id:$
# In order to activate the session bus at X session launch
# simply place use-session-dbus into your /etc/X11/Xsession.options file
#
STARTDBUS=
DBUSLAUNCH=/usr/bin/dbus-launch
if has_option use-session-dbus; then
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x "$DBUSLAUNCH" ]; then
STARTDBUS=yes
fi
fi
if [ -n "$STARTDBUS" ]; then
STARTUP="$DBUSLAUNCH --exit-with-session $STARTUP"
fi

View File

@@ -0,0 +1,25 @@
# -*- sh -*-
# Xsession.d script to set the GTK_MODULES env variable to load atk
#
# This file is sourced by Xsession(5), not executed.
add_module()
{
case :$GTK_MODULES: in
*:$1:*)
;;
*)
if [ -z "$GTK_MODULES" ]
then
GTK_MODULES=$1
else
GTK_MODULES=$GTK_MODULES:$1
fi
;;
esac
}
add_module gail
add_module atk-bridge
export GTK_MODULES

View File

@@ -0,0 +1,19 @@
: ${GNUPGHOME=$HOME/.gnupg}
GPGAGENT=/usr/bin/gpg-agent
if grep -qs '^[[:space:]]*use-agent' "$GNUPGHOME/gpg.conf" "$GNUPGHOME/options" &&
test -x $GPGAGENT; then
# Invoking gpg-agent with no arguments exits successfully if the agent
# is already running on the standard socket
if ! $GPGAGENT 2>/dev/null; then
"$GPGAGENT" --daemon
fi
GPG_AGENT_INFO="${GNUPGHOME}/S.gpg-agent:0:1"
export GPG_AGENT_INFO
if grep -qs '^[[:space:]]*enable-ssh-support' "${GNUPGHOME}/gpg-agent.conf"; then
SSH_AUTH_SOCK="${GNUPGHOME}/S.gpg-agent.ssh"
export SSH_AUTH_SOCK
fi
fi

View File

@@ -0,0 +1,9 @@
# -*- sh -*-
# Xsession.d script to set the env variables to enable accessibility for Qt
#
# This file is sourced by Xsession(5), not executed.
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
export QT_ACCESSIBILITY QT_LINUX_ACCESSIBILITY_ALWAYS_ON

View File

@@ -0,0 +1,24 @@
# $Id: 90x11-common_ssh-agent 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
STARTSSH=
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS=
if has_option use-ssh-agent; then
if [ -x "$SSHAGENT" ] && [ -z "$SSH_AUTH_SOCK" ] \
&& [ -z "$SSH2_AUTH_SOCK" ]; then
STARTSSH=yes
if [ -f /usr/bin/ssh-add1 ] && cmp -s $SSHAGENT /usr/bin/ssh-agent2; then
# use ssh-agent2's ssh-agent1 compatibility mode
SSHAGENTARGS=-1
fi
fi
fi
if [ -n "$STARTSSH" ]; then
STARTUP="$SSHAGENT $SSHAGENTARGS ${TMPDIR:+env TMPDIR=$TMPDIR} $STARTUP"
fi
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,17 @@
# vim:set ft=sh sw=2 sts=2 et:
if [ -n "$DBUS_SESSION_BUS_ADDRESS" ] && \
[ -x "/usr/bin/dbus-update-activation-environment" ]; then
# subshell so we can unset environment variables
(
# unset login-session-specifics
unset XDG_SEAT
unset XDG_SESSION_ID
unset XDG_VTNR
# tell dbus-daemon --session (and systemd --user, if running)
# to put the Xsession's environment in activated services'
# environments
dbus-update-activation-environment --verbose --systemd --all
)
fi

View File

@@ -0,0 +1,19 @@
# This file is sourced by Xsession(5), not executed.
if [ "x$DESKTOP_SESSION" = "xmate" ] || [ "x$XDG_SESSION_DESKTOP" == "xmate" ]; then
if [ -z "$GTK_MODULES" ] ; then
GTK_MODULES="canberra-gtk-module:topmenu-gtk-module"
else
GTK_MODULES="$GTK_MODULES:canberra-gtk-module:topmenu-gtk-module"
fi
export GTK_MODULES
# Disable GTK3 overlay scrollbars
export GTK_OVERLAY_SCROLLING=0
# QT apps to use GTK styling
export QT_STYLE_OVERRIDE=gtk
# Workaround clutter issue (LP: #1462445)
export CLUTTER_BACKEND=x11
fi

View File

@@ -0,0 +1,7 @@
# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
exec $STARTUP
# vim:set ai et sts=2 sw=2 tw=80:

View File

@@ -0,0 +1,9 @@
# $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus

View File

@@ -0,0 +1,228 @@
! The App-defaults file for Bitmap.
*TransientShell.allowShellResize: True
*shapeStyle: oval
*cursor: left_ptr
*pane.orientation: horizontal
*Form*top: ChainTop
*Form*bottom: ChainTop
*Form*left: ChainLeft
*Form*right: ChainLeft
*MenuButton.leftBitmap: menu12
*form*width: 120
*form*height: 15
*baseTranslations:#override\
Ctrl<Key>c: do-quit()\n\
<Key>q: do-quit()\n\
Ctrl<Key>n: do-new()\n\
Ctrl<Key>f: do-load()\n\
Ctrl<Key>i: do-insert()\n\
Ctrl<Key>s: do-save()\n\
Ctrl<Key>w: do-save-as()\n\
Ctrl<Key>r: do-resize()\n\
Ctrl<Key>x: do-rescale()\n\
Ctrl<Key>e: do-filename()\n\
Ctrl<Key>b: do-basename()\n\
Meta<Key>i: switch-image()\n\
Meta<Key>g: switch-grid()\n\
Meta<Key>d: switch-dashed()\n\
Meta<Key>a: switch-axes()\n\
Meta<Key>s: switch-stippled()\n\
Meta<Key>p: switch-proportional()\n\
Meta<Key>z: switch-zoom()\n\
Meta<Key>c: do-cut()\n\
Meta<Key>w: do-copy()\n\
Meta<Key>y: do-paste()
*Toggle.translations: <EnterWindow>: highlight(WhenUnset)\n\
<LeaveWindow>: unhighlight()\n\
<Btn1Down>,<Btn1Up>: set() notify()
*MenuButton.translations:<EnterWindow>: highlight()\n\
<LeaveWindow>: reset()\n\
Any<BtnDown>: reset() fix-menu() PopupMenu()
*Dialog*baseTranslations:#override\
<Key>Return: set-dialog-button(okay, yes, retry)\n\
Ctrl<Key>g: set-dialog-button(cancel, abort)
*image*baseTranslations:#override\
<Btn1Down>,<Btn1Up>: switch-image()
*image*width: 0
*image*height: 0
*image*Label.internalWidth: 0
*image*Label.internalHeight: 0
*image*normalImage.foreground: white
*image*normalImage.background: black
*image*invertedImage.foreground: black
*image*invertedImage.background: white
*bitmap.cursor: tcross
*bitmap.dashes: Dashes
*bitmap.stipple: Stipple
*bitmap.stippled: on
*TransientShell.width: 300
*input*icon: Term
*qsave*icon: Term
*error*icon: Excl
*Dialog.yes.label: Yes
*Dialog.no.label: No
*Dialog.okay.label: OK
*Dialog.abort.label: Abort
*Dialog.cancel.label: Cancel
*Dialog.retry.label: Retry
*MenuButton.width: 58
*SimpleMenu.width: 0
*SimpleMenu.height: 0
*SimpleMenu.cursor: hand2
*SimpleMenu.line.height: 0
*fileButton.label: File
*fileButton.menuName: fileMenu
*editButton.label: Edit
*editButton.fromHoriz: fileButton
*editButton.menuName: editMenu
*formy.status*top: ChainTop
*formy.status*bottom: ChainTop
*formy.status*left: ChainLeft
*formy.status*right: ChainRight
*status.fromHoriz: editButton
*status.borderWidth: 0
*SmeBSB.HorizontalMargins: 32
*fileMenu.new.label: New (Ctrl-N)...
*fileMenu.load.label: Load (Ctrl-F)...
*fileMenu.insert.label: Insert (Ctrl-I)...
*fileMenu.save.label: Save (Ctrl-S)
*fileMenu.saveAs.label: Save As (Ctrl-W)...
*fileMenu.resize.label: Resize (Ctrl-R)...
*fileMenu.rescale.label: Rescale (Ctrl-X)...
*fileMenu.filename.label: Filename (Ctrl-E)...
*fileMenu.basename.label: Basename (Ctrl-B)...
*fileMenu.quit.label: Quit (Ctrl-C, Q)
*editMenu.image.label: Image (Meta-I)
*editMenu.grid.label: Grid (Meta-G)
*editMenu.dashed.label: Dashed (Meta-D)
*editMenu.axes.label: Axes (Meta-A)
*editMenu.stippled.label: Stippled (Meta-S)
*editMenu.proportional.label: Proportional (Meta-P)
*editMenu.zoom.label: Zoom (Meta-Z)
*editMenu.cut.label: Cut (Meta-C)
*editMenu.copy.label: Copy (Meta-W)
*editMenu.paste.label: Paste (Meta-Y, Ctrl-mb)
*form.clear.label: Clear
*form.set.fromVert: clear
*form.set.label: Set
*form.invert.fromVert: set
*form.invert.label: Invert
*form.mark.vertDistance: 10
*form.mark.fromVert: invert
*form.mark.label: Mark
*form.unmark.fromVert: mark
*form.unmark.label: Unmark
*form.copy.vertDistance: 10
*form.copy.fromVert: unmark
*form.copy.radioGroup: mark
*form.copy.label: Copy
*form.move.fromVert: copy
*form.move.radioGroup: copy
*form.move.label: Move
*form.flipHoriz.vertDistance: 10
*form.flipHoriz.width: 36
*form.flipHoriz.height: 36
*form.flipHoriz.fromVert: move
*form.flipHoriz.bitmap: FlipHoriz
*form.up.vertDistance: 10
*form.up.width: 36
*form.up.height: 36
*form.up.fromVert: move
*form.up.fromHoriz: flipHoriz
*form.up.bitmap: Up
*form.flipVert.vertDistance: 10
*form.flipVert.width: 36
*form.flipVert.height: 36
*form.flipVert.fromVert: move
*form.flipVert.fromHoriz: up
*form.flipVert.bitmap: FlipVert
*form.left.width: 36
*form.left.height: 36
*form.left.fromVert: flipHoriz
*form.left.bitmap: Left
*form.fold.width: 36
*form.fold.height: 36
*form.fold.fromVert: up
*form.fold.fromHoriz: left
*form.fold.bitmap: Fold
*form.right.width: 36
*form.right.height: 36
*form.right.fromVert: flipVert
*form.right.fromHoriz: fold
*form.right.bitmap: Right
*form.rotateLeft.width: 36
*form.rotateLeft.height: 36
*form.rotateLeft.fromVert: left
*form.rotateLeft.bitmap: RotateLeft
*form.down.width: 36
*form.down.height: 36
*form.down.fromVert: fold
*form.down.fromHoriz: rotateLeft
*form.down.bitmap: Down
*form.rotateRight.width: 36
*form.rotateRight.height: 36
*form.rotateRight.fromVert: right
*form.rotateRight.fromHoriz: down
*form.rotateRight.bitmap: RotateRight
*form.point.vertDistance: 10
*form.point.fromVert: rotateLeft
*form.point.radioGroup: move
*form.point.label: Point
*form.curve.fromVert: point
*form.curve.radioGroup: point
*form.curve.label: Curve
*form.line.fromVert: curve
*form.line.radioGroup: curve
*form.line.label: Line
*form.rectangle.fromVert: line
*form.rectangle.radioGroup: line
*form.rectangle.label: Rectangle
*form.filledRectangle.fromVert: rectangle
*form.filledRectangle.radioGroup: rectangle
*form.filledRectangle.label: Filled Rectangle
*form.circle.fromVert: filledRectangle
*form.circle.radioGroup: filledRectangle
*form.circle.label: Circle
*form.filledCircle.fromVert: circle
*form.filledCircle.radioGroup: circle
*form.filledCircle.label: Filled Circle
*form.floodFill.fromVert: filledCircle
*form.floodFill.radioGroup: filledCircle
*form.floodFill.label: Flood Fill
*form.setHotSpot.vertDistance: 10
*form.setHotSpot.fromVert: floodFill
*form.setHotSpot.radioGroup: floodFill
*form.setHotSpot.label: Set Hot Spot
*form.clearHotSpot.fromVert: setHotSpot
*form.clearHotSpot.label: Clear Hot Spot
*form.undo.vertDistance: 10
*form.undo.fromVert: clearHotSpot
*form.undo.label: Undo

View File

@@ -0,0 +1,18 @@
! The App-defaults file for Bitmap on a color screen.
#include "Bitmap"
*background: medium blue
*foreground: cyan
*borderColor: plum
*frame: deep sky blue
*highlight: magenta
*Command.background: purple
*Toggle.background: purple
*MenuButton.background: purple
*Command.foreground: white
*Toggle.foreground: white
*MenuButton.foreground: white
*status.foreground: green
*Dialog.icon.foreground: pale green
*bitmap.stippled: off

View File

@@ -0,0 +1,231 @@
!
!
! The App-defaults file for Bitmap for use on file systems
! that are not case sensitive.
*TransientShell.allowShellResize: True
*shapeStyle: oval
*cursor: left_ptr
*pane.orientation: horizontal
*Form*top: ChainTop
*Form*bottom: ChainTop
*Form*left: ChainLeft
*Form*right: ChainLeft
*MenuButton.leftBitmap: menu12
*form*width: 120
*form*height: 15
*baseTranslations:#override\
Ctrl<Key>c: do-quit()\n\
<Key>q: do-quit()\n\
Ctrl<Key>n: do-new()\n\
Ctrl<Key>f: do-load()\n\
Ctrl<Key>i: do-insert()\n\
Ctrl<Key>s: do-save()\n\
Ctrl<Key>w: do-save-as()\n\
Ctrl<Key>r: do-resize()\n\
Ctrl<Key>x: do-rescale()\n\
Ctrl<Key>e: do-filename()\n\
Ctrl<Key>b: do-basename()\n\
Meta<Key>i: switch-image()\n\
Meta<Key>g: switch-grid()\n\
Meta<Key>d: switch-dashed()\n\
Meta<Key>a: switch-axes()\n\
Meta<Key>s: switch-stippled()\n\
Meta<Key>p: switch-proportional()\n\
Meta<Key>z: switch-zoom()\n\
Meta<Key>c: do-cut()\n\
Meta<Key>w: do-copy()\n\
Meta<Key>y: do-paste()
*Toggle.translations: <EnterWindow>: highlight(WhenUnset)\n\
<LeaveWindow>: unhighlight()\n\
<Btn1Down>,<Btn1Up>: set() notify()
*MenuButton.translations:<EnterWindow>: highlight()\n\
<LeaveWindow>: reset()\n\
Any<BtnDown>: reset() fix-menu() PopupMenu()
*Dialog*baseTranslations:#override\
<Key>Return: set-dialog-button(okay, yes, retry)\n\
Ctrl<Key>g: set-dialog-button(cancel, abort)
*image*baseTranslations:#override\
<Btn1Down>,<Btn1Up>: switch-image()
*image*width: 0
*image*height: 0
*image*Label.internalWidth: 0
*image*Label.internalHeight: 0
*image*normalImage.foreground: white
*image*normalImage.background: black
*image*invertedImage.foreground: black
*image*invertedImage.background: white
*bitmap.cursor: tcross
*bitmap.dashes: Dashes
*bitmap.stipple: Stippler
*bitmap.stippled: on
*TransientShell.width: 300
*input*icon: Term
*qsave*icon: Term
*error*icon: Excl
*Dialog.yes.label: Yes
*Dialog.no.label: No
*Dialog.okay.label: OK
*Dialog.abort.label: Abort
*Dialog.cancel.label: Cancel
*Dialog.retry.label: Retry
*MenuButton.width: 58
*SimpleMenu.width: 0
*SimpleMenu.height: 0
*SimpleMenu.cursor: hand2
*SimpleMenu.line.height: 0
*fileButton.label: File
*fileButton.menuName: fileMenu
*editButton.label: Edit
*editButton.fromHoriz: fileButton
*editButton.menuName: editMenu
*formy.status*top: ChainTop
*formy.status*bottom: ChainTop
*formy.status*left: ChainLeft
*formy.status*right: ChainRight
*status.fromHoriz: editButton
*status.borderWidth: 0
*SmeBSB.HorizontalMargins: 32
*fileMenu.new.label: New (Ctrl-N)...
*fileMenu.load.label: Load (Ctrl-F)...
*fileMenu.insert.label: Insert (Ctrl-I)...
*fileMenu.save.label: Save (Ctrl-S)
*fileMenu.saveAs.label: Save As (Ctrl-W)...
*fileMenu.resize.label: Resize (Ctrl-R)...
*fileMenu.rescale.label: Rescale (Ctrl-X)...
*fileMenu.filename.label: Filename (Ctrl-E)...
*fileMenu.basename.label: Basename (Ctrl-B)...
*fileMenu.quit.label: Quit (Ctrl-C, Q)
*editMenu.image.label: Image (Meta-I)
*editMenu.grid.label: Grid (Meta-G)
*editMenu.dashed.label: Dashed (Meta-D)
*editMenu.axes.label: Axes (Meta-A)
*editMenu.stippled.label: Stippled (Meta-S)
*editMenu.proportional.label: Proportional (Meta-P)
*editMenu.zoom.label: Zoom (Meta-Z)
*editMenu.cut.label: Cut (Meta-C)
*editMenu.copy.label: Copy (Meta-W)
*editMenu.paste.label: Paste (Meta-Y, Ctrl-mb)
*form.clear.label: Clear
*form.set.fromVert: clear
*form.set.label: Set
*form.invert.fromVert: set
*form.invert.label: Invert
*form.mark.vertDistance: 10
*form.mark.fromVert: invert
*form.mark.label: Mark
*form.unmark.fromVert: mark
*form.unmark.label: Unmark
*form.copy.vertDistance: 10
*form.copy.fromVert: unmark
*form.copy.radioGroup: mark
*form.copy.label: Copy
*form.move.fromVert: copy
*form.move.radioGroup: copy
*form.move.label: Move
*form.flipHoriz.vertDistance: 10
*form.flipHoriz.width: 36
*form.flipHoriz.height: 36
*form.flipHoriz.fromVert: move
*form.flipHoriz.bitmap: FlipHoriz
*form.up.vertDistance: 10
*form.up.width: 36
*form.up.height: 36
*form.up.fromVert: move
*form.up.fromHoriz: flipHoriz
*form.up.bitmap: Up
*form.flipVert.vertDistance: 10
*form.flipVert.width: 36
*form.flipVert.height: 36
*form.flipVert.fromVert: move
*form.flipVert.fromHoriz: up
*form.flipVert.bitmap: FlipVert
*form.left.width: 36
*form.left.height: 36
*form.left.fromVert: flipHoriz
*form.left.bitmap: Left
*form.fold.width: 36
*form.fold.height: 36
*form.fold.fromVert: up
*form.fold.fromHoriz: left
*form.fold.bitmap: Fold
*form.right.width: 36
*form.right.height: 36
*form.right.fromVert: flipVert
*form.right.fromHoriz: fold
*form.right.bitmap: Right
*form.rotateLeft.width: 36
*form.rotateLeft.height: 36
*form.rotateLeft.fromVert: left
*form.rotateLeft.bitmap: RotateLeft
*form.down.width: 36
*form.down.height: 36
*form.down.fromVert: fold
*form.down.fromHoriz: rotateLeft
*form.down.bitmap: Down
*form.rotateRight.width: 36
*form.rotateRight.height: 36
*form.rotateRight.fromVert: right
*form.rotateRight.fromHoriz: down
*form.rotateRight.bitmap: RotateRight
*form.point.vertDistance: 10
*form.point.fromVert: rotateLeft
*form.point.radioGroup: move
*form.point.label: Point
*form.curve.fromVert: point
*form.curve.radioGroup: point
*form.curve.label: Curve
*form.line.fromVert: curve
*form.line.radioGroup: curve
*form.line.label: Line
*form.rectangle.fromVert: line
*form.rectangle.radioGroup: line
*form.rectangle.label: Rectangle
*form.filledRectangle.fromVert: rectangle
*form.filledRectangle.radioGroup: rectangle
*form.filledRectangle.label: Filled Rectangle
*form.circle.fromVert: filledRectangle
*form.circle.radioGroup: filledRectangle
*form.circle.label: Circle
*form.filledCircle.fromVert: circle
*form.filledCircle.radioGroup: circle
*form.filledCircle.label: Filled Circle
*form.floodFill.fromVert: filledCircle
*form.floodFill.radioGroup: filledCircle
*form.floodFill.label: Flood Fill
*form.setHotSpot.vertDistance: 10
*form.setHotSpot.fromVert: floodFill
*form.setHotSpot.radioGroup: floodFill
*form.setHotSpot.label: Set Hot Spot
*form.clearHotSpot.fromVert: setHotSpot
*form.clearHotSpot.label: Clear Hot Spot
*form.undo.vertDistance: 10
*form.undo.fromVert: clearHotSpot
*form.undo.label: Undo

View File

@@ -0,0 +1,5 @@
Clock*Background: grey
Clock*BorderColor: light blue
Clock*hour: yellow
Clock*jewel: yellow
Clock*minute: yellow

View File

@@ -0,0 +1,285 @@
! The App-defaults file for Editres.
Editres.Geometry: 500x568
*ShapeStyle: Oval
*Tree*ShapeStyle: Rectangle
! The rest of this file are either button names, or important for
! functionality, modifying these values may cause strange program
! behavior.
*flash.BorderWidth: 0
! Menu Button Names
*Box.commands.Label: Commands
*Box.treeCommands.Label: Tree
*porthole.tree.width: 500
*porthole.tree.height: 480
! Universal Menu Entry Names
*xt.sendTree.Label: Get Tree
*xt.quit.Label: Quit
*xt.selectAll.Label: Select All
*xt.unselectAll.Label: Unselect All
*xt.invertAll.Label: Invert All
*xt.selectChildren.Label: Select Children
*xt.selectParent.Label: Select Parent
*xt.selectDescendants.Label: Select Descendants
*xt.selectAncestors.Label: Select Ancestors
! Xt Menu Entry Names
*xt.refreshTree.Label: Refresh Current Widget Tree
*xt.dumpTreeToFile.Label: Dump Widget Tree to a File
*xt.getResourceList.Label: Show Resource Box
*xt.setValues.Label: Set Resource
*xt.showClientWidget.Label: Select Widget in Client
*xt.showWidgetNames.Label: Show Widget Names
*xt.showClassNames.Label: Show Class Names
*xt.showWidgetIDs.Label: Show Widget IDs
*xt.showWidgetWindows.Label: Show Widget Windows
*xt.flashActiveWidgets.Label: Flash Active Widgets
! InterViews Menu Entry Names
*iv*refreshTree.Label: Refresh Current Style Tree
*iv*dumpTreeToFile.Label: Dump Style Tree to a File
*iv*getResourceList.Label: Show Attribute Box
*iv*setValues.Label: Set Attribute
*iv*showClientWidget.Label: Select Style in Client
*iv*showWidgetNames.Label: Show Style Names
*iv*showClassNames.Label: Show Class Names
*iv*showWidgetIDs.Label: Show Style IDs
*iv*showWidgetWindows.Label: Show Style Windows
*iv*flashActiveWidgets.Label: Flash Active Styles
! Universal Toolkit Messages
*label0: Action `%s' must have the Editres Protocol.
*label1: Action %s's argument must be either `cancel' or `okay'.
*label2: Action `%s' must have exactly one argument.
*label3: Unknown parameter to action `%s' must be one of:\n
*label4: It appears that this client does not understand\nthe Editres Protocol.
*label5: Can't grab the mouse.\n
*label6: Click the mouse pointer on any toolkit client.
*label8: Message sent to client%s.
*label9: Incorrectly formatted message from client.
*label10: Unable to own the Resource Editor Command Selection
*label11: Unknown Error code %d
*label13: Welcome to the X Resource Editor version 1.1
*label15: That window does not appear to be\nin the currently displayed client.
*label16: Editres Internal Error: Unable to FindNode.\n
*label18: There are no active nodes.
*label20: ApplyResource: found no matches.
*label21: Error: SVActiveEntry Action must have exactly one argument.
*label22: Error: SVActiveEntry Action's first Argument must be either 'Resource' or 'Value'.
*label24: Unable to open the file `%s' for writing.
*label25: Error while trying to save Context\nAborting file dialog popup.
*label26: Error while trying to find Context\nAborting...
*label28: Loop in tree: node %s's parent (%s) has not been created yet\n
*label30: There are no active nodes.
*label31: Internal Error: Unknown select type.
*label32: Internal Error: Unknown label type.
*label33: Internal Error: Unknown activate type.
*label34: Only one Resource Box can be active at a time.
*label35: Unable to unpack protocol request.
*label36: This version of editres uses protocol version %s,\nbut the client speaks version %s.
! Xt Messages
*xt*label7: Unable to own the Resource Selection
*xt*label12: Widget Tree for client %s(%s).
*xt*label14: Click on any widget in the client.\nEditres will select that widget in the tree display.
*xt*label17: No widget Tree is avaliable.
*xt*label19: This function requires exactly one (1) widget to be selected.
*xt*label23: There are no currently active widgets.
*xt*label27: There is no widget tree to display.
*xt*label29: XSaveContext failed on widget %s.
! InterViews Messages
*iv*label7: Unable to own the Attribute Selection
*iv*label12: Style Tree for client %s(%s).
*iv*label14: Click on any style in the client.\nEditres will select that style in the tree display.
*iv*label17: No style Tree is avaliable.
*iv*label19: This function requires exactly one (1) style to be selected.
*iv*label23: There are no currently active styles.
*iv*label27: There is no style tree to display.
*iv*label29: XSaveContext failed on style %s.
*MenuButton.leftBitmap: menu10
! For the Top Area
*hPane.orientation: horizontal
*hPane.preferredPaneSize: 100
*hPane.Panner.width: 100
*hPane.Panner.height: 100
*hPane.Panner.preferredPaneSize: 100
*Paned.Panner.showGrip: False
*Paned.box.showGrip: False
*Paned.hPane.showGrip: True
! For the Filename popup dialog.
*fileDialog*value:
*fileDialog*allowShellResize: True
*fileDialog*Text.baseTranslations: #override \n\
<Key>Return: PopdownFileDialog(okay)
! Universal Resources for the Resource Box.
*mainViewport*resourceLabel.font: \
-*-new century schoolbook-bold-r-*-*-14-*-*-*-*-*-*-*
*allowShellResize: True
*resourceLabel.allowResize: True
*List.verticalList: True
*namesAndClasses*BorderWidth: 0
*star.Label: *
*dot.Label: .
*namesLabel.font: \
-*-new century schoolbook-bold-r-*-*-14-*-*-*-*-*-*-*
*constraintLabel.font: \
-*-new century schoolbook-bold-r-*-*-14-*-*-*-*-*-*-*
*valueLabel.BorderWidth: 0
*valueForm*preferredPaneSize: 40
*valueForm*min: 28
*valueText*editType: edit
*valueText.Scroll: WhenNeeded
*valueText.width: 297
*setValuesPopup*resourceText.width: 297
*setFile.Label: Set Save File
*save.Label: Save
*apply.Label: Apply
*saveAndApply.Label: Save and Apply
*commandBox.show.Label: Show
*commandBox.min: 28
! InterViews Resources for the Resource Box.
*iv*single.Label: Any Style
*iv*any.Label: Any Style Chain
*iv*namesLabel.Label: Normal Attributes: mb2 gets a value
*iv*constraintLabel.Label: Constraint Attributes
*iv*valueLabel.Label: Enter Attribute Value:
*iv*commandBox.cancel.Label: Popdown Attribute Box
! Xt Resources for the Resource Box.
*xt*single.Label: ?
*xt*any.Label: *
*xt*namesLabel.Label: Normal Resources: mb2 gets a value
*xt*constraintLabel.Label: Constraint Resources
*xt*valueLabel.Label: Enter Resource Value:
*xt*commandBox.cancel.Label: Popdown Resource Box
! This gives us an exactly one of many toggle, if toggle is
! not set in each group the application will probabally core dump.
*namesAndClasses*Toggle.baseTranslations: #override \n\
<Btn1Down>,<Btn1Up>: set() notify()
*commandBox.skipAdjust: True
! Get resource values action binding.
*List.baseTranslations: #override \n\
<Btn2Down>,<Btn2Up>: Set() EnableGetVal() Notify()
! Keyboard Actions for Tree and children of the Tree.
*Tree.baseTranslations: #override \n\
:<Key>space: Select(nothing) \n\
:<Key>w: Select(widget) \n\
:<Key>s: Select(all) \n\
:<Key>i: Select(invert) \n\
:<Key>c: Select(children) \n\
:<Key>d: Select(descendants) \n\
:<Key>p: Select(parent) \n\
:<Key>a: Select(ancestors) \n\
:<Key>N: Relabel(name) \n\
:<Key>C: Relabel(class) \n\
:<Key>I: Relabel(id) \n\
:<Key>W: Relabel(window)
*Tree.Toggle.baseTranslations: #override \n\
:<Key>space: Select(nothing) \n\
:<Key>w: Select(widget) \n\
:<Key>s: Select(all) \n\
:<Key>i: Select(invert) \n\
:<Key>c: Select(children) \n\
:<Key>d: Select(descendants) \n\
:<Key>p: Select(parent) \n\
:<Key>a: Select(ancestors) \n\
:<Key>N: Relabel(name) \n\
:<Key>C: Relabel(class) \n\
:<Key>I: Relabel(id) \n\
:<Key>W: Relabel(window) \n\
<Btn2Down>,<Btn2Up>: Select(nothing) toggle() notify() \n\
<Btn3Down>,<Btn3Up>: Relabel(toggle)
! For the SetValues popup
*setValuesPopup.form.?.resizable: True
*setValuesPopup.form.?.left: ChainLeft
*setValuesPopup.form.?.right: ChainLeft
*setValuesPopup.form.label.Label: Use <Tab> to Change Fields.
*setValuesPopup.form.Label.BorderWidth: 0
*xt*setValuesPopup.form.resourceLabel.Label: Resource Name:
*xt*setValuesPopup.form.resourceLabel.width: 114
*xt*setValuesPopup.form.resourceLabel.justify: right
*xt*setValuesPopup.form.valueLabel.Label: Resource Value:
*xt*setValuesPopup.form.valueLabel.width: 114
*xt*setValuesPopup.form.setValues.Label: Apply
*xt*setValuesPopup.form.cancel.Label: Cancel
*setValuesPopup.form.Text.?.EditType: Edit
*setValuesPopup.form.Text.resize: Width
*setValuesPopup.form.resourceText.baseTranslations: #override \
<Key>Return: no-op(RingBell) \n\
Ctrl<Key>q,<Key>Tab: insert-char() \n\
<Btn1Down>: select-start() SVActiveEntry(Resource) \n\
<Key>Tab: SVActiveEntry(Value)
*setValuesPopup.form.valueText.baseTranslations: #override \
<Key>Return: no-op(RingBell) \n\
Ctrl<Key>q,<Key>Tab: insert-char() \n\
<Btn1Down>: select-start() SVActiveEntry(Value)\n\
<Key>Tab: SVActiveEntry(Resource)
*Text.translations: #override \
m<Key>I: no-op(r)\n\
c<Key>S: no-op(r)\n\
c<Key>R: no-op(r)\n\
<Key>Escape: no-op()
*fileDialog.?.Text.width: 280
! New resource settings
*normalViewport.min: 19
*normalViewport.allowVert: True
*constraintViewport.min: 19
*constraintViewport.allowVert: True
*mainViewport.allowHoriz: True
*mainViewport.pane.namesAndClasses.defaultDistance: 0
*mainViewport.useBottom: True
*mainViewport.pane.Label.min: 22
*mainViewport.pane.Label.max: 22
*mainViewport.pane.Form.showGrip: False
*mainViewport.pane.Label.showGrip: False
*mainViewport.pane.Form.min: 66
*mainViewport.pane.Form.max: 66
*tree*TransientShell.translations: #override \
<Map>: get-values(1, $w, width) \
set-values(1, maxWidth, $w)

View File

@@ -0,0 +1,89 @@
! Here are some suggested resources if you are using a color workstation.
! They look pretty good on my display, your mileage may vary.
#include "Editres"
*flashColor: Yellow
*Background: RoyalBlue4
!*Foreground: Azure
!*BorderColor: LightCyan1
*cursorColor: Azure
*Tree.Background: Grey
*Tree.Foreground: White
*Tree.Toggle.Foreground: Gold
*Tree.Toggle.BorderWidth: 0
*MenuButton.Foreground: Gold
*MenuButton.BorderWidth: 0
*SmeBSB.Foreground: Gold
*Porthole.Background: Grey
*porthole.panner*Foreground: red
*porthole.panner*Background: Grey
*porthole.panner*BorderColor: Grey
*porthole.panner*ShadowColor: Black
*porthole.panner*BackgroundStipple: None
*resourceBox*namesAndClasses.Background: Grey
*resourceBox*namesAndClasses*Toggle.Background: RoyalBlue4
*resourceBox*namesAndClasses*Toggle.Foreground: White
*resourceBox*valueForm.Background: Grey
*resourceBox*valueLabel.Background: Grey
*resourceBox*valueLabel.Foreground: White
*resourceBox*Command.Foreground: Gold
*displayList: foreground rgb:20/35/73;lines 1,-1,-1,-1,-1,1;foreground rgb:30/4e/ab;lines -1,0,0,0,0,-1
*Foreground: Azure3
*borderColor: rgb:1d/30/69
*internalBorderColor: rgb:1d/30/69
*SmeLine.lineWidth: 1
*SmeLine.foreground: rgb:1d/30/69
*SimpleMenu.VerticalMargins: 2
*SimpleMenu.HorizontalMargins: 2
*SimpleMenu.?.HorizontalMargins:8
*MenuButton.displayList:
*MenuButton.borderWidth: 1
*MenuButton.borderColor: RoyalBlue4
*MenuButton.shapeStyle: rectangle
*MenuButton.leftBitmap: None
*MenuButton.translations: \
<Enter>: set-values(1, background, "rgb:29/44/94", borderColor, "rgb:1d/30/69", displayList, "foreground rgb:20/35/73;lines 1,-1,-1,-1,-1,1;foreground rgb:30/4e/ab;lines -1,0,0,0,0,-1")\n\
<Leave>: set-values(1, background, RoyalBlue4, borderColor, RoyalBlue4, displayList, "")\n\
Any<BtnDown>: set-values(1, background, "rgb:23/3a/7d", displayList, "foreground rgb:30/4e/ab;lines 1,-1,-1,-1,-1,1;foreground rgb:20/35/73;lines -1,0,0,0,0,-1") PopupMenu()
*List.displayList:
*List.background: rgb:23/3a/7d
*Tree.displayList:
*Label.displayList:
*Paned.?.displayList: foreground rgb:20/35/73;lines 1,-1,-1,-1,-1,1;foreground rgb:30/4e/ab;lines -1,0,0,0,0,-1
*Grip.foreground: rgb:30/4e/ab
*Toggle.displayList:\
foreground rgb:30/4e/ab;\
lines 1,-1,-1,-1,-1,1;\
lines -2,1,1,1,1,-2;\
foreground rgb:20/35/73;\
lines -1,0,0,0,0,-1;\
lines 2,-2,-2,-2,-2,2
*Text.background: rgb:29/44/94
*Text.?.background: rgb:29/44/94
*Text.displayList: foreground rgb:30/4e/ab;lines 1,-1,-1,-1,-1,1;foreground rgb:20/35/73;lines -1,0,0,0,0,-1
*Scrollbar.foreground: rgb:2e/4c/a5
*Scrollbar.background: rgb:23/3a/7d
*Scrollbar.thumb: black
*Command.shapeStyle: rectangle
*Command.background: rgb:29/44/94

View File

@@ -0,0 +1,50 @@
! $XTermId: KOI8RXTerm.ad,v 1.4 2010/03/04 01:17:49 tom Exp $
! -----------------------------------------------------------------------------
! this file is part of xterm
!
! Copyright 2007,2010 by Thomas E. Dickey
!
! All Rights Reserved
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -----------------------------------------------------------------------------
! This is based on the UXTerm app-defaults file.
! -----------------------------------------------------------------------------
! Use
! xterm -class KOI8RXTerm
! to set resources for KOI8-R mode with corresponding fonts.
#include "XTerm"
*fontMenu.Label: KOI8-R Fonts
*VT100*allowC1Printable: true
! Use Cyrillic instead of Latin fonts.
*VT100.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
*VT100.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-koi8-r
*VT100.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-koi8-r
*VT100.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-koi8-r
*VT100.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-koi8-r
*VT100.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-koi8-r

View File

@@ -0,0 +1,175 @@
! $KOI8RXTermId: XTerm-col.ad,v 1.22 2009/08/15 15:56:29 tom Exp $
! -----------------------------------------------------------------------------
! this file is part of xterm
!
! Copyright 2002-2006,2009 by Thomas E. Dickey
!
! All Rights Reserved
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -----------------------------------------------------------------------------
#include "KOI8RXTerm"
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
! Set the default text foreground and background colors.
*VT100*foreground: gray90
*VT100*background: black
! - OR -
! Uncomment this for black text on a "white" background.
!*VT100*foreground: black
!*VT100*background: gray90
! - OR -
! leave the foreground/background colors alone (at the mercy of your desktop
! designer).
! Color the popup/pulldown menu border to match the text widget foreground.
!*SimpleMenu*borderColor: gray15
! Uncomment this to use color for underline attribute
!*VT100*colorULMode: on
*VT100*colorUL: yellow
!*VT100*italicULMode: on
! Uncomment this to disable underlining, e.g., if colorULMode is set.
!*VT100*underLine: off
! Uncomment this to use color for the bold attribute
!*VT100*colorBDMode: on
*VT100*colorBD: white
! Uncomment this to use the bold/underline colors in preference to other colors
!*VT100*colorAttrMode: on
! These are the 8 ANSI colors and their bright equivalents. Depending on
! other resource settings, xterm may use the bright colors when displaying
! bold text (see the boldColors resource).
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: yellow3
*VT100*color4: blue2
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray50
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: rgb:5c/5c/ff
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white
! Disclaimer: there are no standard colors used in terminal emulation.
!
! The choice for color4 and color12 is a tradeoff between contrast, depending
! on whether they are used for text or backgrounds. Note that either color4 or
! color12 would be used for text, while only color4 would be used for a
! background. These are treated specially, since the luminosity of blue is
! only about half that of red/green, and is typically not accounted for in the
! RGB scheme.
!
! Blue text on a black background should be readable.
! Blue backgrounds should not be "too" bright.
!
! Originally color4/color12 were set to the names blue3/blue
!*VT100*color4: blue3
!*VT100*color12: blue
!
! They are from rgb.txt respectively:
! 0 0 205 blue3
! 0 0 255 blue
! However, blue3 is not readable on a black background.
!
! Another choice was from the Debian settings:
!*VT100*color4: DodgerBlue1
!*VT100*color12: SteelBlue1
!
! From rgb.txt:
! 30 144 255 DodgerBlue1
! 99 184 255 SteelBlue1
!
! Some users object to this choice because the background (color4) is brighter
! than they are accustomed. Others point out that the different weights for
! the red/green components make it appear to be not really blue. Finally, it
! provides poor contrast against color13 and color14.
!
! The current choice uses equal weights for red/green (effectively adding a
! gray to the result). It is brighter than the original choice, and provides
! more contrast between color12 and color13, color14 than SteelBlue1 did.
! Contrast of color4 against black is slightly improved over the original.
!
! Some refinement is certainly possible (you are welcome to try) -TD
#if PLANES > 8
! Color the popup menus and the menubar to match:
*SimpleMenu*background: AntiqueWhite
*SimpleMenu*foreground: gray15
! Color the menubar to match:
*Form.menubar.background: AntiqueWhite
*Form.menubar*background: AntiqueWhite
*Form.menubar.foreground: gray15
*Form.menubar*foreground: gray15
*Form.background: AntiqueWhite
*form.background: AntiqueWhite
*mainMenu*background: AntiqueWhite
*mainMenu*foreground: gray15
*vtMenu*background: AntiqueWhite
*vtMenu*foreground: gray15
*fontMenu*background: AntiqueWhite
*fontMenu*foreground: gray15
*tekMenu*background: AntiqueWhite
*tekMenu*foreground: gray15
! The following two sections take advantage of new features in version 7
! of the Athena widget library; see Xaw(7x).
! This section is commented out because Xaw has no way to dynamically size
! the gradient. The dimension parameter may need to be adjusted depending
! on the font used in the menu.
!*SimpleMenu*backgroundPixmap: gradient:vertical?dimension=350&start=gray90&end=gray60
!*SimpleMenu*foreground: gray15
*VT100.scrollbar.thumb: vlines2
*VT100.scrollbar.width: 14
*VT100.scrollbar.background: gray60
*VT100.scrollbar.foreground: rgb:a/5/5
*VT100.scrollbar.borderWidth: 0
*VT100.scrollbar.displayList:\
foreground gray90;\
lines 1,-1,-1,-1,-1,1;\
foreground gray60;\
lines -1,0,0,0,0,-1
#endif

View File

@@ -0,0 +1,77 @@
! $XTermId: UXTerm.ad,v 1.13 2010/03/04 01:17:07 tom Exp $
! -----------------------------------------------------------------------------
! this file is part of xterm
!
! Copyright 2000-2006,2010 by Thomas E. Dickey
!
! All Rights Reserved
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -----------------------------------------------------------------------------
! Use
! xterm -class UXTerm
! to set resources for UTF-8 mode with corresponding fonts.
! See the uxterm script for an example.
#include "XTerm"
*fontMenu.Label: Unicode Fonts
*VT100.utf8: 1
*utf8Title: true
! This includes "XTerm-color" which includes "XTerm", which defines fonts.
! Why set them here?
!
! Here is a simple description. A technically precise one would be very long.
! When xterm starts up, it uses the
!
! *VT100.font
!
! resource, and if it is told to switch to wide-character (UTF-8) mode, it
! checks if the given font is "wide", and if not looks for the
!
! *VT100.utf8Fonts.font
!
! to obtain a wide font. A "wide" font has more than 256 glyphs. Typical
! wide fonts have 10,000 glyphs. If the original "*VT100.font" is not wide,
! and xterm can load the *VT100.utf8Fonts.font, it will use that.
!
! Making the wide fonts associated with *VT100.font in this file allows uxterm
! to skip that step. It will use the fonts that the XTerm file gives for the
! *VT100.uft8Fonts.font pattern.
*VT100.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
! Here is an alternate set of fonts with better support for bold:
!*VT100.font2: -efont-biwidth-medium-r-normal--10-100-75-75-p-50-iso10646-1
!*VT100.font: -efont-biwidth-medium-r-normal--10-100-75-75-p-50-iso10646-1
!*VT100.font3: -efont-biwidth-medium-r-normal--12-120-75-75-p-60-iso10646-1
!*VT100.font4: -efont-biwidth-medium-r-normal--14-140-75-75-p-70-iso10646-1
!*VT100.font5: -efont-biwidth-medium-r-normal--16-160-75-75-p-80-iso10646-1
!*VT100.font6: -efont-biwidth-medium-r-normal--24-240-75-75-p-120-iso10646-1

View File

@@ -0,0 +1,175 @@
! $UXTermId: XTerm-col.ad,v 1.22 2009/08/15 15:56:29 tom Exp $
! -----------------------------------------------------------------------------
! this file is part of xterm
!
! Copyright 2002-2006,2009 by Thomas E. Dickey
!
! All Rights Reserved
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -----------------------------------------------------------------------------
#include "UXTerm"
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
! Set the default text foreground and background colors.
*VT100*foreground: gray90
*VT100*background: black
! - OR -
! Uncomment this for black text on a "white" background.
!*VT100*foreground: black
!*VT100*background: gray90
! - OR -
! leave the foreground/background colors alone (at the mercy of your desktop
! designer).
! Color the popup/pulldown menu border to match the text widget foreground.
!*SimpleMenu*borderColor: gray15
! Uncomment this to use color for underline attribute
!*VT100*colorULMode: on
*VT100*colorUL: yellow
!*VT100*italicULMode: on
! Uncomment this to disable underlining, e.g., if colorULMode is set.
!*VT100*underLine: off
! Uncomment this to use color for the bold attribute
!*VT100*colorBDMode: on
*VT100*colorBD: white
! Uncomment this to use the bold/underline colors in preference to other colors
!*VT100*colorAttrMode: on
! These are the 8 ANSI colors and their bright equivalents. Depending on
! other resource settings, xterm may use the bright colors when displaying
! bold text (see the boldColors resource).
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: yellow3
*VT100*color4: blue2
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray50
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: rgb:5c/5c/ff
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white
! Disclaimer: there are no standard colors used in terminal emulation.
!
! The choice for color4 and color12 is a tradeoff between contrast, depending
! on whether they are used for text or backgrounds. Note that either color4 or
! color12 would be used for text, while only color4 would be used for a
! background. These are treated specially, since the luminosity of blue is
! only about half that of red/green, and is typically not accounted for in the
! RGB scheme.
!
! Blue text on a black background should be readable.
! Blue backgrounds should not be "too" bright.
!
! Originally color4/color12 were set to the names blue3/blue
!*VT100*color4: blue3
!*VT100*color12: blue
!
! They are from rgb.txt respectively:
! 0 0 205 blue3
! 0 0 255 blue
! However, blue3 is not readable on a black background.
!
! Another choice was from the Debian settings:
!*VT100*color4: DodgerBlue1
!*VT100*color12: SteelBlue1
!
! From rgb.txt:
! 30 144 255 DodgerBlue1
! 99 184 255 SteelBlue1
!
! Some users object to this choice because the background (color4) is brighter
! than they are accustomed. Others point out that the different weights for
! the red/green components make it appear to be not really blue. Finally, it
! provides poor contrast against color13 and color14.
!
! The current choice uses equal weights for red/green (effectively adding a
! gray to the result). It is brighter than the original choice, and provides
! more contrast between color12 and color13, color14 than SteelBlue1 did.
! Contrast of color4 against black is slightly improved over the original.
!
! Some refinement is certainly possible (you are welcome to try) -TD
#if PLANES > 8
! Color the popup menus and the menubar to match:
*SimpleMenu*background: AntiqueWhite
*SimpleMenu*foreground: gray15
! Color the menubar to match:
*Form.menubar.background: AntiqueWhite
*Form.menubar*background: AntiqueWhite
*Form.menubar.foreground: gray15
*Form.menubar*foreground: gray15
*Form.background: AntiqueWhite
*form.background: AntiqueWhite
*mainMenu*background: AntiqueWhite
*mainMenu*foreground: gray15
*vtMenu*background: AntiqueWhite
*vtMenu*foreground: gray15
*fontMenu*background: AntiqueWhite
*fontMenu*foreground: gray15
*tekMenu*background: AntiqueWhite
*tekMenu*foreground: gray15
! The following two sections take advantage of new features in version 7
! of the Athena widget library; see Xaw(7x).
! This section is commented out because Xaw has no way to dynamically size
! the gradient. The dimension parameter may need to be adjusted depending
! on the font used in the menu.
!*SimpleMenu*backgroundPixmap: gradient:vertical?dimension=350&start=gray90&end=gray60
!*SimpleMenu*foreground: gray15
*VT100.scrollbar.thumb: vlines2
*VT100.scrollbar.width: 14
*VT100.scrollbar.background: gray60
*VT100.scrollbar.foreground: rgb:a/5/5
*VT100.scrollbar.borderWidth: 0
*VT100.scrollbar.displayList:\
foreground gray90;\
lines 1,-1,-1,-1,-1,1;\
foreground gray60;\
lines -1,0,0,0,0,-1
#endif

View File

@@ -0,0 +1,95 @@
*Panner*backgroundStipple: grid2
*allowShellResize: true
*buttonbox*ShapeStyle: oval
*Form*Panner.Thickness: -1
*Form.defaultDistance: 0
*Form.BorderWidth: 0
*Porthole.BorderWidth: 0
*Porthole.top: ChainTop
*Porthole.left: ChainLeft
*Porthole.bottom: ChainBottom
*Porthole.right: ChainRight
*Porthole.resizable: on
*Panner.top: ChainTop
*Panner.left: ChainLeft
*Panner.bottom: ChainTop
*Panner.right: ChainLeft
*Panner.resizable: on
*Tree*ShapeStyle: rectangle
*Tree*Toggle*BorderWidth: 0
*Porthole*Box.BorderWidth: 0
*Porthole*Box.HSpace: 0
*Porthole*Box.VSpace: 0
*Paned*allowResize: true
*Tree*List*Font: -adobe-helvetica-medium-r-normal--*-80-*-*-*-*-iso*-*
*SimpleMenu*BackingStore: NotUseful
*Font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-*
*buttonbox.MenuButton.leftBitmap: menu12
*SimpleMenu*menuLabel.vertSpace: 100
*SimpleMenu*SmeLine*Height: 12
*quit.Label: Quit
*buttonbox.quit.baseTranslations: #override \
<Btn1Down>,<Btn1Up>: Quit() unset()
*Toggle.baseTranslations: #augment \n\
<Btn2Down>,<Btn2Up>: set() notify() Resources(toggle) \n\
<Key>q: Quit() \n\
<Key>space: Select(nothing) \n\
<Key>p: Select(parent) \n\
<Key>a: Select(ancestors) \n\
<Key>c: Select(children) \n\
<Key>d: Select(descendants) \n\
Ctrl<Key>r: Resources(on) \n\
Ctrl<Key>n: Resources(off) \n\
*List.baseTranslations: #augment \n\
<Key>q: Quit() \n\
<Key>space: Select(nothing) \n\
<Key>p: Select(parent) \n\
<Key>a: Select(ancestors) \n\
<Key>c: Select(children) \n\
<Key>d: Select(descendants) \n\
Ctrl<Key>r: Resources(on) \n\
Ctrl<Key>n: Resources(off) \n\
*Porthole.baseTranslations: #override \n\
<Btn1Down>,<Btn1Up>: Select(nothing) \n\
<Key>q: Quit() \n\
Ctrl<Key>h: SetOrientation(west) \n\
Ctrl<Key>v: SetOrientation(north) \n\
Ctrl<Key>r: Resources(on) \n\
Ctrl<Key>n: Resources(off) \n\
Shift<Key>c: SetLabelType(class) \n\
Shift<Key>v: SetLabelType(variable) \n\
<Key>space: Select(nothing) \n\
<Key>i: Select(invert) \n\
<Key>p: Select(parent) \n\
<Key>a: Select(ancestors) \n\
<Key>c: Select(children) \n\
<Key>d: Select(descendants) \n\
<Key>r: Select(resources) \n\
<Key>s: Select(shown) \n\
*buttonbox.view.Label: View
*buttonbox.view.viewMenu.layoutHorizontal.Label: Layout Horizontal
*buttonbox.view.viewMenu.layoutVertical.Label: Layout Vertical
*buttonbox.view.viewMenu.namesVariable.Label: Show Variable Names
*buttonbox.view.viewMenu.namesClass.Label: Show Class Names
*buttonbox.view.viewMenu.viewResources.Label: Show Resource Boxes
*buttonbox.view.viewMenu.viewNoResources.Label: Hide Resource Boxes
*buttonbox.select.Label: Select
*buttonbox.select.selectMenu.unselect.Label: Unselect All
*buttonbox.select.selectMenu.selectAll.Label: Select All
*buttonbox.select.selectMenu.selectInvert.Label: Invert All
*buttonbox.select.selectMenu.selectParent.Label: Select Parent
*buttonbox.select.selectMenu.selectAncestors.Label: Select Ancestors
*buttonbox.select.selectMenu.selectChildren.Label: Select Children
*buttonbox.select.selectMenu.selectDescendants.Label: Select Descendants
*buttonbox.select.selectMenu.selectHasResources.Label: Select Has Resources
*buttonbox.select.selectMenu.selectShownResources.Label: Select Shown Resource Boxes

View File

@@ -0,0 +1,24 @@
#include "Viewres"
*background: gray95
*foreground: gray30
*borderColor: gray80
*showGrip: False
*Font: XtDefaultFont
*buttonbox*ShapeStyle: rectangle
*internalBorderWidth: 0
*buttonbox.backgroundPixmap: gradient:vertical?dimension=4&start=gray95&end=gray90
*buttonbox.displayList: foreground gray70;line 0,-1,-1,-1;foreground gray95;line 0,0,-1,0
*treeform.porthole.tree.backgroundPixmap:gradient:vertical?dimension=4&start=gray85&end=gray90
*Tree*List.BorderWidth: 0
*Tree.foreground: gray75
*Tree.lineWidth: 7
*List.backgroundPixmap: gradient:vertical?dimension=4&start=gray95&end=gray90
*List.displayList: foreground gray50;line 0,-1,-1,-1;foreground white;line 0,0,-1,0
*Porthole*Box.BorderWidth: 1
*Panner.BorderWidth: 1
*Panner.background: gray70
*Panner.foreground: gray80
*Panner.shadowColor: gray50
*Panner*backgroundStipple: hlines2
*SimpleMenu.backgroundPixmap: gradient:vertical?dimension=4&start=gray92&end=gray98

View File

@@ -0,0 +1,528 @@
! XCalc application class resource file
XCalc.Title: Calculator
XCalc.IconName: Calc
XCalc.IconPixmap: calculator
XCalc*Cursor: hand2
XCalc*Font: 8x13
XCalc*ShapeStyle: rectangle
XCalc*Command.horizDistance: 2
XCalc*Command.vertDistance: 2
XCalc*Command.width: 40
XCalc*Command.height: 26
XCalc*Command.internalWidth: 1
XCalc*bevel.background: black
XCalc*bevel.horizDistance: 4
XCalc*bevel.vertDistance: 2
XCalc*bevel.screen.horizDistance: 6
XCalc*bevel.screen.vertDistance: 2
XCalc*bevel.screen.defaultDistance: 0
XCalc*bevel.screen.Label.horizDistance: 4
XCalc*bevel.screen.Label.vertDistance: 2
XCalc*bevel.screen.Label.internalHeight: 1
XCalc*bevel.screen.Label.internalWidth: 1
XCalc*bevel.screen.LCD.label: 88888888888
XCalc*bevel.screen.LCD.fromHoriz: M
XCalc*bevel.screen.LCD.horizDistance: 4
XCalc*bevel.screen.LCD.vertDistance: 2
XCalc*bevel.screen.INV.fromVert: LCD
XCalc*bevel.screen.INV.vertDistance: 4
XCalc*bevel.screen.DEG.fromHoriz: INV
XCalc*bevel.screen.DEG.fromVert: LCD
XCalc*bevel.screen.DEG.horizDistance: 1
XCalc*bevel.screen.RAD.fromHoriz: DEG
XCalc*bevel.screen.RAD.fromVert: LCD
XCalc*bevel.screen.GRAD.fromHoriz: RAD
XCalc*bevel.screen.GRAD.fromVert: LCD
XCalc*bevel.screen.P.label: ()
XCalc*bevel.screen.P.fromHoriz: GRAD
XCalc*bevel.screen.P.fromVert: LCD
XCalc*bevel.screen.P.horizDistance: 2
!XCalc*ti.Geometry: 171x252
XCalc*ti.bevel.screen.LCD.width: 186
XCalc*ti.bevel.screen.LCD.translations: #replace\n\
Ctrl<Key>c:quit()\n\
Ctrl<Key>h:clear()\n\
None<Key>0:digit(0)\n\
None<Key>1:digit(1)\n\
None<Key>2:digit(2)\n\
None<Key>3:digit(3)\n\
None<Key>4:digit(4)\n\
None<Key>5:digit(5)\n\
None<Key>6:digit(6)\n\
None<Key>7:digit(7)\n\
None<Key>8:digit(8)\n\
None<Key>9:digit(9)\n\
<Key>KP_0:digit(0)\n\
<Key>KP_1:digit(1)\n\
<Key>KP_2:digit(2)\n\
<Key>KP_3:digit(3)\n\
<Key>KP_4:digit(4)\n\
<Key>KP_5:digit(5)\n\
<Key>KP_6:digit(6)\n\
<Key>KP_7:digit(7)\n\
<Key>KP_8:digit(8)\n\
<Key>KP_9:digit(9)\n\
<Key>KP_Enter:equal()\n\
<Key>KP_Equal:equal()\n\
<Key>KP_Multiply:multiply()\n\
<Key>KP_Add:add()\n\
<Key>KP_Subtract:subtract()\n\
<Key>KP_Decimal:decimal()\n\
<Key>KP_Separator:decimal()\n\
<Key>KP_Divide:divide()\n\
<Key>KP_Tab:equal()\n\
<Key>Clear:clear()\n\
:<Key>.:decimal()\n\
:<Key>+:add()\n\
:<Key>-:subtract()\n\
:<Key>*:multiply()\n\
:<Key>/:divide()\n\
:<Key>(:leftParen()\n\
:<Key>):rightParen()\n\
:<Key>!:factorial()\n\
<Key>e:e()\n\
:<Key>^:power()\n\
<Key>p:pi()\n\
<Key>i:inverse()\n\
<Key>s:sine()\n\
<Key>c:cosine()\n\
<Key>t:tangent()\n\
<Key>d:degree()\n\
<Key>l:naturalLog()\n\
:<Key>=:equal()\n\
<Key>n:negate()\n\
<Key>r:squareRoot()\n\
<Key>space:clear()\n\
<Key>q:quit()\n\
<Key>Delete:clear()\n\
<Key>BackSpace:clear()\n\
<Btn1Down>,<Btn1Up>:toggle()selection()\n
XCalc*ti.button1.label: 1/x
XCalc*ti.button1.translations: #override<Btn1Down>,<Btn1Up>:reciprocal()unset()
XCalc*ti.button2.label: x\262
XCalc*ti.button2.translations: #override<Btn1Down>,<Btn1Up>:square()unset()
XCalc*ti.button3.font: -adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*
XCalc*ti.button3.label: \326\140
XCalc*ti.button3.translations: #override<Btn1Down>,<Btn1Up>:squareRoot()unset()
XCalc*ti.button4.label: CE/C
XCalc*ti.button4.translations: #override<Btn1Down>,<Btn1Up>:clear()unset()
XCalc*ti.button5.label: AC
XCalc*ti.button5.translations: #override<Btn1Down>,<Btn1Up>:off()unset()\n\
<Btn3Down>,<Btn3Up>:quit()
XCalc*ti.button6.label: INV
XCalc*ti.button6.translations: #override<Btn1Down>,<Btn1Up>:inverse()unset()
XCalc*ti.button7.label: sin
XCalc*ti.button7.translations: #override<Btn1Down>,<Btn1Up>:sine()unset()
XCalc*ti.button8.label: cos
XCalc*ti.button8.translations: #override<Btn1Down>,<Btn1Up>:cosine()unset()
XCalc*ti.button9.label: tan
XCalc*ti.button9.translations: #override<Btn1Down>,<Btn1Up>:tangent()unset()
XCalc*ti.button10.label: DRG
XCalc*ti.button10.translations: #override<Btn1Down>,<Btn1Up>:degree()unset()
XCalc*ti.button11.label: e
XCalc*ti.button11.translations: #override<Btn1Down>,<Btn1Up>:e()unset()
XCalc*ti.button12.label: EE
XCalc*ti.button12.translations: #override<Btn1Down>,<Btn1Up>:scientific()unset()
XCalc*ti.button13.label: log
XCalc*ti.button13.translations: #override<Btn1Down>,<Btn1Up>:logarithm()unset()
XCalc*ti.button14.label: ln
XCalc*ti.button14.translations: #override<Btn1Down>,<Btn1Up>:naturalLog()unset()
XCalc*ti.button15.label: y^x
XCalc*ti.button15.translations: #override<Btn1Down>,<Btn1Up>:power()unset()
XCalc*ti.button16.font: -adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*
XCalc*ti.button16.label: \160
XCalc*ti.button16.translations: #override<Btn1Down>,<Btn1Up>:pi()unset()
XCalc*ti.button17.label: x!
XCalc*ti.button17.translations: #override<Btn1Down>,<Btn1Up>:factorial()unset()
XCalc*ti.button18.label: (
XCalc*ti.button18.translations: #override<Btn1Down>,<Btn1Up>:leftParen()unset()
XCalc*ti.button19.label: )
XCalc*ti.button19.translations: #override<Btn1Down>,<Btn1Up>:rightParen()unset()
XCalc*ti.button20.font: -adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*
XCalc*ti.button20.label: \270
XCalc*ti.button20.translations: #override<Btn1Down>,<Btn1Up>:divide()unset()
XCalc*ti.button21.label: STO
XCalc*ti.button21.translations: #override<Btn1Down>,<Btn1Up>:store()unset()
XCalc*ti.button22.label: 7
XCalc*ti.button22.translations: #override<Btn1Down>,<Btn1Up>:digit(7)unset()
XCalc*ti.button23.label: 8
XCalc*ti.button23.translations: #override<Btn1Down>,<Btn1Up>:digit(8)unset()
XCalc*ti.button24.label: 9
XCalc*ti.button24.translations: #override<Btn1Down>,<Btn1Up>:digit(9)unset()
XCalc*ti.button25.label: *
XCalc*ti.button25.translations: #override<Btn1Down>,<Btn1Up>:multiply()unset()
XCalc*ti.button26.label: RCL
XCalc*ti.button26.translations: #override<Btn1Down>,<Btn1Up>:recall()unset()
XCalc*ti.button27.label: 4
XCalc*ti.button27.translations: #override<Btn1Down>,<Btn1Up>:digit(4)unset()
XCalc*ti.button28.label: 5
XCalc*ti.button28.translations: #override<Btn1Down>,<Btn1Up>:digit(5)unset()
XCalc*ti.button29.label: 6
XCalc*ti.button29.translations: #override<Btn1Down>,<Btn1Up>:digit(6)unset()
XCalc*ti.button30.label: -
XCalc*ti.button30.translations: #override<Btn1Down>,<Btn1Up>:subtract()unset()
XCalc*ti.button31.label: SUM
XCalc*ti.button31.translations: #override<Btn1Down>,<Btn1Up>:sum()unset()
XCalc*ti.button32.label: 1
XCalc*ti.button32.translations: #override<Btn1Down>,<Btn1Up>:digit(1)unset()
XCalc*ti.button33.label: 2
XCalc*ti.button33.translations: #override<Btn1Down>,<Btn1Up>:digit(2)unset()
XCalc*ti.button34.label: 3
XCalc*ti.button34.translations: #override<Btn1Down>,<Btn1Up>:digit(3)unset()
XCalc*ti.button35.label: +
XCalc*ti.button35.translations: #override<Btn1Down>,<Btn1Up>:add()unset()
XCalc*ti.button36.label: EXC
XCalc*ti.button36.translations: #override<Btn1Down>,<Btn1Up>:exchange()unset()
XCalc*ti.button37.label: 0
XCalc*ti.button37.translations: #override<Btn1Down>,<Btn1Up>:digit(0)unset()
XCalc*ti.button38.label: .
XCalc*ti.button38.translations: #override<Btn1Down>,<Btn1Up>:decimal()unset()
XCalc*ti.button39.label: +/-
XCalc*ti.button39.translations: #override<Btn1Down>,<Btn1Up>:negate()unset()
XCalc*ti.button40.label: =
XCalc*ti.button40.translations: #override<Btn1Down>,<Btn1Up>:equal()unset()
XCalc*ti.button1.horizDistance: 4
XCalc*ti.button1.vertDistance: 12
XCalc*ti.button1.fromVert: bevel
XCalc*ti.button2.fromHoriz: button1
XCalc*ti.button2.fromVert: bevel
XCalc*ti.button2.vertDistance: 12
XCalc*ti.button3.fromHoriz: button2
XCalc*ti.button3.fromVert: bevel
XCalc*ti.button3.vertDistance: 12
XCalc*ti.button4.fromHoriz: button3
XCalc*ti.button4.fromVert: bevel
XCalc*ti.button4.vertDistance: 12
XCalc*ti.button5.fromHoriz: button4
XCalc*ti.button5.fromVert: bevel
XCalc*ti.button5.vertDistance: 12
XCalc*ti.button6.horizDistance: 4
XCalc*ti.button6.fromVert: button1
XCalc*ti.button7.fromHoriz: button6
XCalc*ti.button7.fromVert: button2
XCalc*ti.button8.fromHoriz: button7
XCalc*ti.button8.fromVert: button3
XCalc*ti.button9.fromHoriz: button8
XCalc*ti.button9.fromVert: button4
XCalc*ti.button10.fromHoriz: button9
XCalc*ti.button10.fromVert: button5
XCalc*ti.button11.horizDistance: 4
XCalc*ti.button11.fromVert: button6
XCalc*ti.button12.fromHoriz: button11
XCalc*ti.button12.fromVert: button7
XCalc*ti.button13.fromHoriz: button12
XCalc*ti.button13.fromVert: button8
XCalc*ti.button14.fromHoriz: button13
XCalc*ti.button14.fromVert: button9
XCalc*ti.button15.fromHoriz: button14
XCalc*ti.button15.fromVert: button10
XCalc*ti.button16.horizDistance: 4
XCalc*ti.button16.fromVert: button11
XCalc*ti.button17.fromHoriz: button16
XCalc*ti.button17.fromVert: button12
XCalc*ti.button18.fromHoriz: button17
XCalc*ti.button18.fromVert: button13
XCalc*ti.button19.fromHoriz: button18
XCalc*ti.button19.fromVert: button14
XCalc*ti.button20.fromHoriz: button19
XCalc*ti.button20.fromVert: button15
XCalc*ti.button21.horizDistance: 4
XCalc*ti.button21.fromVert: button16
XCalc*ti.button22.fromHoriz: button21
XCalc*ti.button22.fromVert: button17
XCalc*ti.button23.fromHoriz: button22
XCalc*ti.button23.fromVert: button18
XCalc*ti.button24.fromHoriz: button23
XCalc*ti.button24.fromVert: button19
XCalc*ti.button25.fromHoriz: button24
XCalc*ti.button25.fromVert: button20
XCalc*ti.button26.horizDistance: 4
XCalc*ti.button26.fromVert: button21
XCalc*ti.button27.fromHoriz: button26
XCalc*ti.button27.fromVert: button22
XCalc*ti.button28.fromHoriz: button27
XCalc*ti.button28.fromVert: button23
XCalc*ti.button29.fromHoriz: button28
XCalc*ti.button29.fromVert: button24
XCalc*ti.button30.fromHoriz: button29
XCalc*ti.button30.fromVert: button25
XCalc*ti.button31.horizDistance: 4
XCalc*ti.button31.fromVert: button26
XCalc*ti.button32.fromHoriz: button31
XCalc*ti.button32.fromVert: button27
XCalc*ti.button33.fromHoriz: button32
XCalc*ti.button33.fromVert: button28
XCalc*ti.button34.fromHoriz: button33
XCalc*ti.button34.fromVert: button29
XCalc*ti.button35.fromHoriz: button34
XCalc*ti.button35.fromVert: button30
XCalc*ti.button36.horizDistance: 4
XCalc*ti.button36.fromVert: button31
XCalc*ti.button37.fromHoriz: button36
XCalc*ti.button37.fromVert: button32
XCalc*ti.button38.fromHoriz: button37
XCalc*ti.button38.fromVert: button33
XCalc*ti.button39.fromHoriz: button38
XCalc*ti.button39.fromVert: button34
XCalc*ti.button40.fromHoriz: button39
XCalc*ti.button40.fromVert: button35
!XCalc*hp.Geometry: 336x164
XCalc*hp.bevel.screen.LCD.width: 186
XCalc*hp.bevel.screen.LCD.translations: #replace\n\
Ctrl<Key>c:quit()\n\
Ctrl<Key>h:back()\n\
None<Key>0:digit(0)\n\
None<Key>1:digit(1)\n\
None<Key>2:digit(2)\n\
None<Key>3:digit(3)\n\
None<Key>4:digit(4)\n\
None<Key>5:digit(5)\n\
None<Key>6:digit(6)\n\
None<Key>7:digit(7)\n\
None<Key>8:digit(8)\n\
None<Key>9:digit(9)\n\
<Key>KP_0:digit(0)\n\
<Key>KP_1:digit(1)\n\
<Key>KP_2:digit(2)\n\
<Key>KP_3:digit(3)\n\
<Key>KP_4:digit(4)\n\
<Key>KP_5:digit(5)\n\
<Key>KP_6:digit(6)\n\
<Key>KP_7:digit(7)\n\
<Key>KP_8:digit(8)\n\
<Key>KP_9:digit(9)\n\
<Key>KP_Enter:enter()\n\
<Key>KP_Multiply:multiply()\n\
<Key>KP_Add:add()\n\
<Key>KP_Subtract:subtract()\n\
<Key>KP_Decimal:decimal()\n\
<Key>KP_Divide:divide()\n\
:<Key>.:decimal()\n\
:<Key>+:add()\n\
:<Key>-:subtract()\n\
:<Key>*:multiply()\n\
:<Key>/:divide()\n\
:<Key>!:factorial()\n\
<Key>e:e()\n\
:<Key>^:power()\n\
<Key>p:pi()\n\
<Key>i:inverse()\n\
<Key>s:sine()\n\
<Key>c:cosine()\n\
<Key>t:tangent()\n\
<Key>d:degree()\n\
<Key>l:naturalLog()\n\
<Key>n:negate()\n\
<Key>r:squareRoot()\n\
<Key>space:clear()\n\
<Key>q:quit()\n\
<Key>Delete:back()\n\
<Key>Return:enter()\n\
<Key>Linefeed:enter()\n\
<Key>x:XexchangeY()\n\
<Key>BackSpace:back()\n\
<Btn1Down>,<Btn1Up>:toggle()selection()\n
XCalc*hp.button1.font: -adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*
XCalc*hp.button1.label: \326\140
XCalc*hp.button1.translations: #override<Btn1Down>,<Btn1Up>:squareRoot()unset()
XCalc*hp.button2.label: e^x
XCalc*hp.button2.translations: #override<Btn1Down>,<Btn1Up>:epower()unset()
XCalc*hp.button3.label: 10^x
XCalc*hp.button3.translations: #override<Btn1Down>,<Btn1Up>:tenpower()unset()
XCalc*hp.button4.label: y^x
XCalc*hp.button4.translations: #override<Btn1Down>,<Btn1Up>:power()unset()
XCalc*hp.button5.label: 1/x
XCalc*hp.button5.translations: #override<Btn1Down>,<Btn1Up>:reciprocal()unset()
XCalc*hp.button6.label: CHS
XCalc*hp.button6.translations: #override<Btn1Down>,<Btn1Up>:negate()unset()
XCalc*hp.button7.label: 7
XCalc*hp.button7.translations: #override<Btn1Down>,<Btn1Up>:digit(7)unset()
XCalc*hp.button8.label: 8
XCalc*hp.button8.translations: #override<Btn1Down>,<Btn1Up>:digit(8)unset()
XCalc*hp.button9.label: 9
XCalc*hp.button9.translations: #override<Btn1Down>,<Btn1Up>:digit(9)unset()
XCalc*hp.button10.font: -adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*
XCalc*hp.button10.label: \270
XCalc*hp.button10.translations: #override<Btn1Down>,<Btn1Up>:divide()unset()
XCalc*hp.button11.label: x!
XCalc*hp.button11.translations: #override<Btn1Down>,<Btn1Up>:factorial()unset()
XCalc*hp.button12.font: -adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*
XCalc*hp.button12.label: \160
XCalc*hp.button12.translations: #override<Btn1Down>,<Btn1Up>:pi()unset()
XCalc*hp.button13.label: sin
XCalc*hp.button13.translations: #override<Btn1Down>,<Btn1Up>:sine()unset()
XCalc*hp.button14.label: cos
XCalc*hp.button14.translations: #override<Btn1Down>,<Btn1Up>:cosine()unset()
XCalc*hp.button15.label: tan
XCalc*hp.button15.translations: #override<Btn1Down>,<Btn1Up>:tangent()unset()
XCalc*hp.button16.label: EEX
XCalc*hp.button16.translations: #override<Btn1Down>,<Btn1Up>:scientific()unset()
XCalc*hp.button17.label: 4
XCalc*hp.button17.translations: #override<Btn1Down>,<Btn1Up>:digit(4)unset()
XCalc*hp.button18.label: 5
XCalc*hp.button18.translations: #override<Btn1Down>,<Btn1Up>:digit(5)unset()
XCalc*hp.button19.label: 6
XCalc*hp.button19.translations: #override<Btn1Down>,<Btn1Up>:digit(6)unset()
XCalc*hp.button20.label: *
XCalc*hp.button20.translations: #override<Btn1Down>,<Btn1Up>:multiply()unset()
XCalc*hp.button21.mappedWhenManaged: False
XCalc*hp.button22.mappedWhenManaged: False
XCalc*hp.button23.label: Rv
XCalc*hp.button23.translations: #override<Btn1Down>,<Btn1Up>:roll()unset()
XCalc*hp.button24.label: x:y
XCalc*hp.button24.translations: #override<Btn1Down>,<Btn1Up>:XexchangeY()unset()
XCalc*hp.button25.label: <-
XCalc*hp.button25.translations: #override<Btn1Down>,<Btn1Up>:back()unset()
XCalc*hp.button26.label: E\nN\nT\nE\nR
XCalc*hp.button26.translations: #override<Btn1Down>,<Btn1Up>:enter()unset()
XCalc*hp.button27.label: 1
XCalc*hp.button27.translations: #override<Btn1Down>,<Btn1Up>:digit(1)unset()
XCalc*hp.button28.label: 2
XCalc*hp.button28.translations: #override<Btn1Down>,<Btn1Up>:digit(2)unset()
XCalc*hp.button29.label: 3
XCalc*hp.button29.translations: #override<Btn1Down>,<Btn1Up>:digit(3)unset()
XCalc*hp.button30.label: -
XCalc*hp.button30.translations: #override<Btn1Down>,<Btn1Up>:subtract()unset()
XCalc*hp.button31.label: ON
XCalc*hp.button31.translations: #override<Btn1Down>,<Btn1Up>:off()unset()\n\
<Btn3Down>,<Btn3Up>:quit()
XCalc*hp.button32.label: DRG
XCalc*hp.button32.translations: #override<Btn1Down>,<Btn1Up>:degree()unset()
XCalc*hp.button33.label: INV
XCalc*hp.button33.translations: #override<Btn1Down>,<Btn1Up>:inverse()unset()
XCalc*hp.button34.label: STO
XCalc*hp.button34.translations: #override<Btn1Down>,<Btn1Up>:store()unset()
XCalc*hp.button35.label: RCL
XCalc*hp.button35.translations: #override<Btn1Down>,<Btn1Up>:recall()unset()
XCalc*hp.button36.label: 0
XCalc*hp.button36.translations: #override<Btn1Down>,<Btn1Up>:digit(0)unset()
XCalc*hp.button37.label: .
XCalc*hp.button37.translations: #override<Btn1Down>,<Btn1Up>:decimal()unset()
XCalc*hp.button38.label: SUM
XCalc*hp.button38.translations: #override<Btn1Down>,<Btn1Up>:sum()unset()
XCalc*hp.button39.label: +
XCalc*hp.button39.translations: #override<Btn1Down>,<Btn1Up>:add()unset()
XCalc*hp.button1.horizDistance: 4
XCalc*hp.button1.vertDistance: 12
XCalc*hp.button1.fromVert: bevel
XCalc*hp.button2.fromHoriz: button1
XCalc*hp.button2.fromVert: bevel
XCalc*hp.button2.vertDistance: 12
XCalc*hp.button3.fromHoriz: button2
XCalc*hp.button3.fromVert: bevel
XCalc*hp.button3.vertDistance: 12
XCalc*hp.button4.fromHoriz: button3
XCalc*hp.button4.fromVert: bevel
XCalc*hp.button4.vertDistance: 12
XCalc*hp.button5.fromHoriz: button4
XCalc*hp.button5.fromVert: bevel
XCalc*hp.button5.vertDistance: 12
XCalc*hp.button6.fromHoriz: button5
XCalc*hp.button6.fromVert: bevel
XCalc*hp.button6.vertDistance: 12
XCalc*hp.button7.fromHoriz: button6
XCalc*hp.button7.fromVert: bevel
XCalc*hp.button7.vertDistance: 12
XCalc*hp.button8.fromHoriz: button7
XCalc*hp.button8.fromVert: bevel
XCalc*hp.button8.vertDistance: 12
XCalc*hp.button9.fromHoriz: button8
XCalc*hp.button9.fromVert: bevel
XCalc*hp.button9.vertDistance: 12
XCalc*hp.button10.fromHoriz: button9
XCalc*hp.button10.fromVert: bevel
XCalc*hp.button10.vertDistance: 12
XCalc*hp.button11.horizDistance: 4
XCalc*hp.button11.fromVert: button1
XCalc*hp.button12.fromHoriz: button11
XCalc*hp.button12.fromVert: button2
XCalc*hp.button13.fromHoriz: button12
XCalc*hp.button13.fromVert: button3
XCalc*hp.button14.fromHoriz: button13
XCalc*hp.button14.fromVert: button4
XCalc*hp.button15.fromHoriz: button14
XCalc*hp.button15.fromVert: button5
XCalc*hp.button16.fromHoriz: button15
XCalc*hp.button16.fromVert: button6
XCalc*hp.button17.fromHoriz: button16
XCalc*hp.button17.fromVert: button7
XCalc*hp.button18.fromHoriz: button17
XCalc*hp.button18.fromVert: button8
XCalc*hp.button19.fromHoriz: button18
XCalc*hp.button19.fromVert: button9
XCalc*hp.button20.fromHoriz: button19
XCalc*hp.button20.fromVert: button10
XCalc*hp.button21.horizDistance: 4
XCalc*hp.button21.fromVert: button11
XCalc*hp.button22.fromHoriz: button21
XCalc*hp.button22.fromVert: button12
XCalc*hp.button23.fromHoriz: button22
XCalc*hp.button23.fromVert: button13
XCalc*hp.button24.fromHoriz: button23
XCalc*hp.button24.fromVert: button14
XCalc*hp.button25.fromHoriz: button24
XCalc*hp.button25.fromVert: button15
XCalc*hp.button26.fromHoriz: button25
XCalc*hp.button26.fromVert: button16
XCalc*hp.button26.font: 6x12
XCalc*hp.button26.height: 56
XCalc*hp.button27.fromHoriz: button26
XCalc*hp.button27.fromVert: button17
XCalc*hp.button28.fromHoriz: button27
XCalc*hp.button28.fromVert: button18
XCalc*hp.button29.fromHoriz: button28
XCalc*hp.button29.fromVert: button19
XCalc*hp.button30.fromHoriz: button29
XCalc*hp.button30.fromVert: button20
XCalc*hp.button31.horizDistance: 4
XCalc*hp.button31.fromVert: button21
XCalc*hp.button32.fromHoriz: button31
XCalc*hp.button32.fromVert: button22
XCalc*hp.button33.fromHoriz: button32
XCalc*hp.button33.fromVert: button23
XCalc*hp.button34.fromHoriz: button33
XCalc*hp.button34.fromVert: button24
XCalc*hp.button35.fromHoriz: button34
XCalc*hp.button35.fromVert: button25
XCalc*hp.button36.fromHoriz: button26
XCalc*hp.button36.fromVert: button27
XCalc*hp.button37.fromHoriz: button36
XCalc*hp.button37.fromVert: button28
XCalc*hp.button38.fromHoriz: button37
XCalc*hp.button38.fromVert: button29
XCalc*hp.button39.fromHoriz: button38
XCalc*hp.button39.fromVert: button30

View File

@@ -0,0 +1,225 @@
#include "XCalc"
XCalc*ti.backgroundPixmap: gray3?foreground=gray70&background=gray85
XCalc*.bevel.background: gray80
XCalc*.bevel.displayList: foreground gray90;lines -1,0,0,0,0,-1;lines 3,-4,-4,-4,-4,3
XCalc*.bevel.borderColor: gray60
XCalc*.bevel.borderWidth: 1
XCalc*.bevel.vertDistance: 4
XCalc*.bevel.defaultDistance: 4
XCalc*.bevel.screen.vertDistance: 4
XCalc*.bevel.screen.horizDistance: 4
XCalc*.bevel.screen*left: chainLeft
XCalc*.bevel.screen*right: chainRight
XCalc*.bevel.screen*top: chainTop
XCalc*.bevel.screen*bottom: chainBottom
XCalc*.bevel.screen*background: rgb:9/a/9
XCalc*.bevel.screen.borderColor: gray50
XCalc*.bevel.screen*LCD.foreground: gray20
XCalc*.bevel.screen*INV.vertDistance: 2
! T e x a s I n s t r u m e n t s T I - 3 0
XCalc*ti.Command.shapeStyle: roundedRectangle
XCalc*ti.Command.displayList: foreground rgb:a/b/c;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.Command.borderColor: rgb:8/9/a
XCalc*ti.Command.background: rgb:c/d/e
XCalc*ti.Command.foreground: gray5
XCalc*ti.button20.foreground: gray5
XCalc*ti.button20.background: rgb:e/d/c
XCalc*ti.button20.displayList: foreground rgb:a/9/8;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button20.borderColor: rgb:9/8/7
XCalc*ti.button25.foreground: gray5
XCalc*ti.button25.background: rgb:e/d/c
XCalc*ti.button25.displayList: foreground rgb:a/9/8;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button25.borderColor: rgb:9/8/7
XCalc*ti.button30.foreground: gray5
XCalc*ti.button30.background: rgb:e/d/c
XCalc*ti.button30.displayList: foreground rgb:a/9/8;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button30.borderColor: rgb:9/8/7
XCalc*ti.button35.foreground: gray5
XCalc*ti.button35.background: rgb:e/d/c
XCalc*ti.button35.displayList: foreground rgb:a/9/8;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button35.borderColor: rgb:9/8/7
XCalc*ti.button40.foreground: gray5
XCalc*ti.button40.background: rgb:e/d/c
XCalc*ti.button40.displayList: foreground rgb:a/9/8;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button40.borderColor: rgb:9/8/7
XCalc*ti.button22.background: gray95
XCalc*ti.button22.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button22.borderColor: gray65
XCalc*ti.button23.background: gray95
XCalc*ti.button23.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button23.borderColor: gray65
XCalc*ti.button24.background: gray95
XCalc*ti.button24.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button24.borderColor: gray65
XCalc*ti.button27.background: gray95
XCalc*ti.button27.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button27.borderColor: gray65
XCalc*ti.button28.background: gray95
XCalc*ti.button28.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button28.borderColor: gray65
XCalc*ti.button29.background: gray95
XCalc*ti.button29.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button29.borderColor: gray65
XCalc*ti.button32.background: gray95
XCalc*ti.button32.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button32.borderColor: gray65
XCalc*ti.button33.background: gray95
XCalc*ti.button33.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button33.borderColor: gray65
XCalc*ti.button34.background: gray95
XCalc*ti.button34.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button34.borderColor: gray65
XCalc*ti.button37.background: gray95
XCalc*ti.button37.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button37.borderColor: gray65
XCalc*ti.button38.background: gray95
XCalc*ti.button38.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button38.borderColor: gray65
XCalc*ti.button39.background: gray95
XCalc*ti.button39.displayList: foreground gray75;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
XCalc*ti.button39.borderColor: gray65
! H e w l e t t - P a c k a r d 1 0 C
XCalc*hp.Command.shapeStyle: roundedRectangle
XCalc*hp.background: wheat
XCalc*hp.Command.background: peru
XCalc*hp.Command.foreground: white
! Unused buttons. (Make invisible.)
XCalc*hp.button21.background: wheat
XCalc*hp.button22.background: wheat
! ON button
XCalc*hp.button31.background: goldenrod
XCalc*hp.button31.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
!XCalc*hp.button31.foreground: white
! SQRT
XCalc*hp.button1.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! e^x
XCalc*hp.button2.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! 10^x
XCalc*hp.button3.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! y^x
XCalc*hp.button4.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! 1/c
XCalc*hp.button5.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! CHS
XCalc*hp.button6.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! x!
XCalc*hp.button11.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! pi
XCalc*hp.button12.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! sin
XCalc*hp.button13.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! cos
XCalc*hp.button14.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! tan
XCalc*hp.button15.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! EEX
XCalc*hp.button16.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! Rv
XCalc*hp.button23.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! x:y
XCalc*hp.button24.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! <-
XCalc*hp.button25.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! ENTER
XCalc*hp.button26.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! DRG
XCalc*hp.button32.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! INV
XCalc*hp.button33.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! STO
XCalc*hp.button34.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
!RCL
XCalc*hp.button35.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "Operator" keys.
! Divide key
XCalc*hp.button10.background: SteelBlue
XCalc*hp.button10.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! Multiply key
XCalc*hp.button20.background: SteelBlue
XCalc*hp.button20.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! Minus key
XCalc*hp.button30.background: SteelBlue
XCalc*hp.button30.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! SUM
XCalc*hp.button38.background: SteelBlue
XCalc*hp.button38.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! Plus key
XCalc*hp.button39.background: SteelBlue
XCalc*hp.button39.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "Number" keys.
! "7"
XCalc*hp.button7.background: white
XCalc*hp.button7.foreground: black
XCalc*hp.button7.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "8"
XCalc*hp.button8.background: white
XCalc*hp.button8.foreground: black
XCalc*hp.button8.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "9"
XCalc*hp.button9.background: white
XCalc*hp.button9.foreground: black
XCalc*hp.button9.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "4"
XCalc*hp.button17.background: white
XCalc*hp.button17.foreground: black
XCalc*hp.button17.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "5"
XCalc*hp.button18.background: white
XCalc*hp.button18.foreground: black
XCalc*hp.button18.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "6"
XCalc*hp.button19.background: white
XCalc*hp.button19.foreground: black
XCalc*hp.button19.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "1"
XCalc*hp.button27.background: white
XCalc*hp.button27.foreground: black
XCalc*hp.button27.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "2"
XCalc*hp.button28.background: white
XCalc*hp.button28.foreground: black
XCalc*hp.button28.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "3"
XCalc*hp.button29.background: white
XCalc*hp.button29.foreground: black
XCalc*hp.button29.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "0"
XCalc*hp.button36.background: white
XCalc*hp.button36.foreground: black
XCalc*hp.button36.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90
! "."
XCalc*hp.button37.background: white
XCalc*hp.button37.foreground: black
XCalc*hp.button37.displayList: foreground rgb:b/b/b;segments 8,-4,-9,-4,-4,-9,-4,8;draw-arc -14,-14,-4,-4,270,90

View File

@@ -0,0 +1,142 @@
*Command*Font: -*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1
*Label*Font: -*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1
*Text*Font: -*-courier-medium-r-normal--*-120-*-*-*-*-iso8859-1
*quit.label: Quit
*quit.top: ChainTop
*quit.bottom: ChainTop
*quit.left: ChainLeft
*quit.right: ChainLeft
*quit.translations: #override \n\
<Btn1Down>,<Btn1Up>:Quit() unset()
*delete.label: Delete
*delete.fromHoriz: quit
*delete.top: ChainTop
*delete.bottom: ChainTop
*delete.left: ChainLeft
*delete.right: ChainLeft
*delete.translations: #override \n\
<Btn1Down>,<Btn1Up>:DeleteClip() unset()
*new.label: New
*new.fromHoriz: delete
*new.top: ChainTop
*new.bottom: ChainTop
*new.left: ChainLeft
*new.right: ChainLeft
*new.translations: #override \n\
<Btn1Down>,<Btn1Up>:NewClip() unset()
*save.label: Save
*save.fromHoriz: new
*save.top: ChainTop
*save.bottom: ChainTop
*save.left: ChainLeft
*save.right: ChainLeft
*save.translations: #override \n\
<Btn1Down>,<Btn1Up>:Save() unset()
*next.label: Next
*next.fromHoriz: save
*next.top: ChainTop
*next.bottom: ChainTop
*next.left: ChainLeft
*next.right: ChainLeft
*next.translations: #override \n\
<Btn1Down>,<Btn1Up>:NextClip() unset()
*prev.label: Prev
*prev.fromHoriz: next
*prev.top: ChainTop
*prev.bottom: ChainTop
*prev.left: ChainLeft
*prev.right: ChainLeft
*prev.translations: #override \n\
<Btn1Down>,<Btn1Up>:PrevClip() unset()
*index.fromHoriz: prev
*index.top: ChainTop
*index.bottom: ChainTop
*index.left: ChainLeft
*index.right: ChainLeft
*index.resizable: true
*text.scrollVertical: WhenNeeded
*text.scrollHorizontal: WhenNeeded
*text.autoFill: on
*text.fromVert: quit
*text.top: ChainTop
*text.bottom: ChainBottom
*text.left: ChainLeft
*text.right: ChainRight
*text.resizable: true
*text.width: 300
XClipboard.geometry: 300x200
*ShapeStyle: oval
XClipboard.baseTranslations: #augment\n\
<Message>WM_PROTOCOLS: WMProtocols()\n
*TransientShell.baseTranslations: #augment\n\
<Message>WM_PROTOCOLS: WMProtocols()\n
*fileDialog.label: Save to file:
*fileDialog.label.top: ChainTop
*fileDialog.label.bottom: ChainTop
*fileDialog.label.left: ChainLeft
*fileDialog.label.right: ChainLeft
*fileDialogShell.allowShellResize: true
*fileDialogShell.title: File Save
*fileDialog*accept.label: Accept
*fileDialog.accept.top: ChainTop
*fileDialog.accept.bottom: ChainBottom
*fileDialog.accept.left: ChainLeft
*fileDialog.accept.right: ChainLeft
*fileDialog*accept.translations: #override\
<BtnUp>: AcceptSave() unset()
*fileDialog.value.top: ChainTop
*fileDialog.value.bottom: ChainTop
*fileDialog.value.left: ChainLeft
*fileDialog.value.right: ChainLeft
*fileDialog*value.translations: #override\
<Key>Return: AcceptSave() \n\
Ctrl<Key>S: no-op(ring-bell) \n\
Ctrl<Key>R: no-op(ring-bell) \n\
Ctrl<Key>M: no-op(ring-bell) \n\
Ctrl<Key>J: no-op(ring-bell) \n\
Meta<Key>I: no-op(ring-bell)
*fileDialog*value.baseTranslations: #override\
<Key>Return: AcceptSave() \n\
Ctrl<Key>S: no-op(ring-bell) \n\
Ctrl<Key>R: no-op(ring-bell) \n\
Ctrl<Key>M: no-op(ring-bell) \n\
Ctrl<Key>J: no-op(ring-bell) \n\
Meta<Key>I: no-op(ring-bell)
*fileDialog*cancel.label: Cancel
*fileDialog.cancel.top: ChainTop
*fileDialog.cancel.bottom: ChainBottom
*fileDialog.cancel.left: ChainLeft
*fileDialog.cancel.right: ChainLeft
*fileDialog*cancel.translations: #override\
<BtnUp>:CancelSave() unset()
*failDialog*Label.resizable: true
*failDialog.label: Can't write file
*failDialogShell.title: Error
*failDialogShell.allowShellResize: true
*failDialog*continue.label: Continue
*failDialog*continue.translations: #override\
<BtnUp>:FailContinue() unset()
*failDialog*value.translations: #override\
<Key>Return: FailContinue() \n\
Ctrl<Key>S: no-op(ring-bell) \n\
Ctrl<Key>R: no-op(ring-bell) \n\
Ctrl<Key>M: no-op(ring-bell) \n\
Ctrl<Key>J: no-op(ring-bell) \n\
Meta<Key>I: no-op(ring-bell)

View File

@@ -0,0 +1 @@
XClock.input: false

View File

@@ -0,0 +1,10 @@
! $XFree86$
#include "XClock"
XClock.Clock.hourColor: rgba:7f/00/00/c0
XClock.Clock.minuteColor: rgba:00/7f/7f/c0
XClock.Clock.secondColor: rgba:00/00/ff/80
XClock.Clock.majorColor: rgba:7f/00/00/c0
XClock.Clock.minorColor: rgba:00/7f/7f/c0

View File

@@ -0,0 +1,21 @@
*allowShellResize: true
XConsole.translations: #override\
<MapNotify>: Deiconified() \n\
<UnmapNotify>: Iconified() \n\
<Message>WM_PROTOCOLS: Quit()
XConsole.baseTranslations: #override\
<MapNotify>: Deiconified() \n\
<UnmapNotify>: Iconified() \n\
<Message>WM_PROTOCOLS: Quit()
*text.translations: #override\
Ctrl<KeyPress>C: Clear() \n\
<KeyPress>Clear: Clear()
*text.baseTranslations: #override\
Ctrl<KeyPress>C: Clear() \n\
<KeyPress>Clear: Clear()
*text.scrollVertical: Always
*text.scrollHorizontal: Never
*text.width: 400
*text.height: 70
*text.allowResize: true
*editType: read

View File

@@ -0,0 +1,148 @@
! $XConsortium: XFontSel.ad,v 1.12 94/04/17 20:43:40 gildea Exp $
!
! app-defaults for XFontSel
!
! Copyright (c) 1985, 1986, 1987, 1988, 1989 X Consortium
!
! Permission is hereby granted, free of charge, to any person obtaining
! a copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
! OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
! ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
! OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name of the X Consortium shall
! not be used in advertising or otherwise to promote the sale, use or
! other dealings in this Software without prior written authorization
! from the X Consortium.
!
! Author:
! Ralph R. Swick, Digital Equipment Corporation/M.I.T. Project Athena
! one weekend in November, 1989
!
! $XFree86: xc/programs/xfontsel/XFontSel.ad,v 1.1 2000/02/13 03:26:24 dawes Exp $
*appDefaultsVersion: 1
*pixelSizeList: 7, 30, 40, 50, 60
*pointSizeList: 250, 300, 350, 400
XFontSel.cursor: left_ptr
*allowShellResize: true
*commandBox.ShowGrip: false
*commandBox*top: chainTop
*commandBox*bottom: chainTop
*quitButton.Label: quit
*quitButton.left: chainLeft
*quitButton.right: chainLeft
*ownButton.Label: select
*ownButton.fromHoriz: quitButton
*ownButton.left: chainLeft
*ownButton.right: chainLeft
*countLabel.BorderWidth: 0
*countLabel.Justify: right
*countLabel.Label: 999999 fonts match
*countLabel.left: chainRight
*countLabel.right: chainRight
*fieldBox.Orientation: horizontal
*fieldBox.HSpace: 0
*fieldBox.HSpace: 0
*dash.label: -
*dash.borderWidth: 0
*dash.internalHeight: 0
*dash.internalWidth: 0
*fieldBox*MenuButton.BorderWidth: 0
*fieldBox*MenuButton.internalHeight: 0
*fieldBox*MenuButton.internalWidth: 0
*fieldBox*MenuButton.shapeStyle: rectangle
#ifdef LONG_NAMES
*fieldBox*field0.Label: foundry
*fieldBox*field1.Label: family
*fieldBox*field2.Label: weight
*fieldBox*field3.Label: slant
*fieldBox*field4.Label: set width
*fieldBox*field5.Label: add style
*fieldBox*field6.Label: pixel size
*fieldBox*field7.Label: point size
*fieldBox*field8.Label: resolutionX
*fieldBox*field9.Label: resolutionY
*fieldBox*field10.Label: spacing
*fieldBox*field11.Label: avg width
*fieldBox*field12.Label: registry
*fieldBox*field13.Label: encoding
#else
*fieldBox*field0.Label: fndry
*fieldBox*field1.Label: fmly
*fieldBox*field2.Label: wght
*fieldBox*field3.Label: slant
*fieldBox*field4.Label: sWdth
*fieldBox*field5.Label: adstyl
*fieldBox*field6.Label: pxlsz
*fieldBox*field7.Label: ptSz
*fieldBox*field8.Label: resx
*fieldBox*field9.Label: resy
*fieldBox*field10.Label: spc
*fieldBox*field11.Label: avgWdth
*fieldBox*field12.Label: rgstry
*fieldBox*field13.Label: encdng
#endif
!*fieldBox*field11.Sensitive: False
*fieldBox*field11.menu.Options.ShowUnselectable: False
!*field1*menu*courier.Font:
*fontName*skipAdjust: true
*sampleText*international: false
*sampleText*Label: \
Processing fonts...
*sampleText: \
ABCDEFGHIJKLMNOPQRSTUVWXYZ\n\
abcdefghijklmnopqrstuvwxyz\n\
0123456789\n\
\340\346\347\353\356\360\361\363\371\375\
\300\306\307\313\316\320\321\323\331\335
*sampleText16: \
\044\042\044\044\044\046\044\050\044\052\044\053\044\055\044\057\
\044\061\044\063\044\065\044\067\044\071\044\073\044\075\044\077\n\
\044\101\044\104\044\106\044\110\044\112\044\113\044\114\044\115\
\044\116\044\117\044\122\044\125\044\130\044\133\044\136\044\137\n\
\061\042\061\044\061\046\061\050\061\052\061\053\061\055\061\057\
\061\061\061\063\061\065\061\067\061\071\061\073\061\075\061\077\n\
\061\101\061\104\061\106\061\110\061\112\061\113\061\114\061\115\
\061\116\061\117\061\122\061\125\061\130\061\133\061\136\061\137\n\
*sampleTextUCS: \
ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789\n\
abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ\n\
–—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд\n\
∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi<>⑀₂ἠḂӥẄɐː⍎אԱა
*sampleText*allowResize: true
*sampleText*Height: 50

View File

@@ -0,0 +1,6 @@
XLoad.input: false
*Label*Justify: left
*JumpScroll: 1
*internalBorderWidth: 0
*showGrip: FALSE

View File

@@ -0,0 +1,4 @@
XLogo*iconPixmap: xlogo32
XLogo*iconMask: xlogo32
XLogo*baseTranslations: #override \
<Key>q,<Key>Escape: quit()

View File

@@ -0,0 +1,5 @@
! $Xorg: XLogo-co.ad,v 1.3 2000/08/17 19:54:52 cpqbld Exp $
#include "XLogo"
! MIT colors are Cardinal Red (Pantone 201c) and Silver Grey (Pantone 421c)
XLogo*background: rgb:d2/22/32
XLogo*foreground: rgb:d7/d7/d7

View File

@@ -0,0 +1,33 @@
! XMore.ad
! keyboard translations
*text.Translations: #override\n\
Ctrl<Key>S: no-op(RingBell)\n\
Ctrl<Key>R: no-op(RingBell)\n\
<Key>space: next-page()\n\
<Key>F: next-page()\n\
Ctrl<Key>B: previous-page()\n\
<Key>B: previous-page()\n\
<Key>K: scroll-one-line-down()\n\
<Key>Y: scroll-one-line-down()\n\
<Key>Return: scroll-one-line-up()\n\
<Key>J: scroll-one-line-up()\n\
<Key>E: scroll-one-line-up()\n\
<Key>q: quit()\n
*text.baseTranslations: #override\n\
<Key>space: next-page()\n\
<Key>F: next-page()\n\
Ctrl<Key>B: previous-page()\n\
<Key>K: scroll-one-line-down()\n\
<Key>Y: scroll-one-line-down()\n\
<Key>Return: scroll-one-line-up()\n\
<Key>J: scroll-one-line-up()\n\
<Key>E: scroll-one-line-up()\n\
<Key>q: quit()\n
! tip messages
*quit.tip: Quit application
*international: True
! EOF.

View File

@@ -0,0 +1,119 @@
! $Xorg: XSm.ad,v 1.3 2000/08/17 19:55:04 cpqbld Exp $
*chooseSessionPopup*font: 12x24
*chooseSessionLabel.label: Session Menu
*chooseSessionMessageLabel.label: Press button again to confirm, or hit Cancel...
*chooseSessionLoadButton.label: Load Session
*chooseSessionDeleteButton.label: Delete Session
*chooseSessionFailSafeButton.label: Default/Fail Safe
*chooseSessionCancelButton.label: Cancel
*chooseSessionBreakLockButton.label: Break Lock
*chooseSessionLoadButton.background: light steel blue
*chooseSessionDeleteButton.background: light steel blue
*chooseSessionBreakLockButton.background: light steel blue
*chooseSessionFailSafeButton.background:light steel blue
*chooseSessionCancelButton.background: light steel blue
*clientInfoButton.label: Client List
*logButton.label: Session Log
*checkPointButton.label: Checkpoint
*shutdownButton.label: Shutdown
*shutdownSave.label: With Checkpoint
*shutdownDontSave.label: Immediately
*logPopup.title: Session Log
*logPopup.iconName: Session Log
*logOkButton.label: OK
*logText.width: 600
*logText.height: 300
*clientInfoPopup.title: Client List
*clientInfoPopup.iconName: Client List
*noClientsLabel.label: There are no clients in the session
*viewPropButton.label: View Properties
*cloneButton.label: Clone
*killClientButton.label: Kill
*restartHintButton.label: Restart Hint
*restartIfRunning.label: If Running
*restartAnyway.label: Anyway
*restartImmediately.label: Immediately
*restartNever.label: Never
*clientInfoDoneButton.label: Done
*manualRestartLabel.label: Restart the following non-session-aware clients...
*clientPropTextWidget.width: 500
*clientPropTextWidget.height: 300
*clientPropDoneButton.label: Done
*saveMessageLabel.label: Session name
*saveTypeLabel.label: Save Type
*saveTypeNone.label: None
*saveTypeLocal.label: Local
*saveTypeGlobal.label: Global
*saveTypeBoth.label: Both
*interactStyleLabel.label: Interact Style
*interactStyleNone.label: None
*interactStyleErrors.label: Errors
*interactStyleAny.label: Any
*saveCancelButton.label: Cancel
*helpSaveButton.label: Help
*helpSaveOkButton.label: OK
*helpSaveText.label:\n\
Save types\n\
----------\n\
Local - Applications should save enough information to\n\
restore the state as seen by the user.\n\
The save should not affect data seen by other users.\n\
\n\
Global - Applications should commit all of their data to\n\
permanent, globally accessible storage.\n\
\n\
Both - Applications should commit their data to global\n\
storage and also save state local to the user.\n\
\n\n\
Interaction styles\n\
------------------\n\
None - Don't allow user interaction\n\
Errors - Allow user interaction only if an error occurs\n\
Any - Allow user interaction for any reason\n\
\n
*nameInUsePopup.title: Warning
*nameInUseOverwriteButton.label: Overwrite
*badSavePopup.title: Save Failure
*badSaveLabel.label: The following applications did not report\n\
a successful save of their state:
*badSaveOkButton.label: OK
*badSaveCancelButton.label: Cancel Shutdown
*chooseSessionListWidget.Translations: #override\n\
<Key>Up: ChooseSessionUp()\n\
<Key>KP_Up: ChooseSessionUp()\n\
Ctrl<Key>P: ChooseSessionUp()\n\
<Key>Down: ChooseSessionDown()\n\
<Key>KP_Down: ChooseSessionDown()\n\
Ctrl<Key>N: ChooseSessionDown()\n\
<Btn1Down>: Set() ChooseSessionBtn1Down()\n
*chooseSessionLoadButton.Accelerators: #override\n\
<Btn1Down>(2+): set() notify() unset()\n\
<Key>Return: set() notify() unset()\n\
<Key>KP_Enter: set() notify() unset()\n
*checkPointButton.Translations: #override\n\
<Btn1Up>: notify() reset()\n
*shutdownButton.Translations: #override\n\
<Btn1Up>: notify() reset()\n
*saveOkButton.Accelerators: #override\n\
<Key>Return: set() notify() unset()\n
*badSaveOkButton.Accelerators: #override\n\
<Key>Return: set() notify() unset()\n

View File

@@ -0,0 +1,261 @@
! $XTermId: XTerm.ad,v 1.99 2013/06/23 08:57:13 Ross.Combs Exp $
! -----------------------------------------------------------------------------
! this file is part of xterm
!
! Copyright 1996-2010,2011 by Thomas E. Dickey
!
! All Rights Reserved
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -----------------------------------------------------------------------------
*saveLines: 1024
*SimpleMenu*BackingStore: NotUseful
*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
*SimpleMenu*menuLabel.vertSpace: 100
*SimpleMenu*HorizontalMargins: 16
*SimpleMenu*Sme.height: 16
*SimpleMenu*Cursor: left_ptr
*mainMenu.Label: Main Options
*mainMenu*toolbar*Label: Toolbar
*mainMenu*fullscreen*Label: Full Screen
*mainMenu*securekbd*Label: Secure Keyboard
*mainMenu*allowsends*Label: Allow SendEvents
*mainMenu*redraw*Label: Redraw Window
*mainMenu*logging*Label: Log to File
*mainMenu*print-immediate*Label: Print-All Immediately
*mainMenu*print-on-error*Label: Print-All on Error
*mainMenu*print*Label: Print Window
*mainMenu*print-redir*Label: Redirect to Printer
*mainMenu*8-bit control*Label: 8-Bit Controls
*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
*mainMenu*num-lock*Label: Alt/NumLock Modifiers
*mainMenu*alt-esc*Label: Alt Sends Escape
*mainMenu*meta-esc*Label: Meta Sends Escape
*mainMenu*delete-is-del*Label: Delete is DEL
*mainMenu*oldFunctionKeys*Label: Old Function-Keys
*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
*mainMenu*sunKeyboard*Label: VT220 Keyboard
*mainMenu*hpFunctionKeys*Label: HP Function-Keys
*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
*mainMenu*tcapFunctionKeys*Label: Termcap Function-Keys
*mainMenu*suspend*Label: Send STOP Signal
*mainMenu*continue*Label: Send CONT Signal
*mainMenu*interrupt*Label: Send INT Signal
*mainMenu*hangup*Label: Send HUP Signal
*mainMenu*terminate*Label: Send TERM Signal
*mainMenu*kill*Label: Send KILL Signal
*mainMenu*quit*Label: Quit
*vtMenu.Label: VT Options
*vtMenu*scrollbar*Label: Enable Scrollbar
*vtMenu*jumpscroll*Label: Enable Jump Scroll
*vtMenu*reversevideo*Label: Enable Reverse Video
*vtMenu*autowrap*Label: Enable Auto Wraparound
*vtMenu*reversewrap*Label: Enable Reverse Wraparound
*vtMenu*autolinefeed*Label: Enable Auto Linefeed
*vtMenu*appcursor*Label: Enable Application Cursor Keys
*vtMenu*appkeypad*Label: Enable Application Keypad
*vtMenu*scrollkey*Label: Scroll to Bottom on Key Press
*vtMenu*scrollttyoutput*Label: Scroll to Bottom on Tty Output
*vtMenu*allow132*Label: Allow 80/132 Column Switching
*vtMenu*keepSelection*Label: Keep Selection
*vtMenu*selectToClipboard*Label: Select to Clipboard
*vtMenu*cursesemul*Label: Enable Curses Emulation
*vtMenu*visualbell*Label: Enable Visual Bell
*vtMenu*bellIsUrgent*Label: Enable Bell Urgency
*vtMenu*poponbell*Label: Enable Pop on Bell
*vtMenu*cursorblink*Label: Enable Blinking Cursor
*vtMenu*titeInhibit*Label: Enable Alternate Screen Switching
*vtMenu*activeicon*Label: Enable Active Icon
*vtMenu*softreset*Label: Do Soft Reset
*vtMenu*hardreset*Label: Do Full Reset
*vtMenu*clearsavedlines*Label: Reset and Clear Saved Lines
*vtMenu*tekshow*Label: Show Tek Window
*vtMenu*tekmode*Label: Switch to Tek Mode
*vtMenu*vthide*Label: Hide VT Window
*vtMenu*altscreen*Label: Show Alternate Screen
*vtMenu*sixelScrolling*Label: Sixel Scrolling
*vtMenu*privateColorRegisters*Label: Private Color Registers
*fontMenu.Label: VT Fonts
*fontMenu*fontdefault*Label: Default
*fontMenu*font1*Label: Unreadable
*VT100.font1: nil2
*IconFont: nil2
*fontMenu*font2*Label: Tiny
*VT100.font2: 5x7
*fontMenu*font3*Label: Small
*VT100.font3: 6x10
*fontMenu*font4*Label: Medium
*VT100.font4: 7x13
*fontMenu*font5*Label: Large
*VT100.font5: 9x15
*fontMenu*font6*Label: Huge
*VT100.font6: 10x20
*fontMenu*fontescape*Label: Escape Sequence
*fontMenu*fontsel*Label: Selection
!fontescape and fontsel overridden by application
*fontMenu*allow-bold-fonts*Label: Bold Fonts
*fontMenu*font-linedrawing*Label: Line-Drawing Characters
*fontMenu*font-doublesize*Label: Doublesized Characters
*fontMenu*font-loadable*Label: VT220 Soft Fonts
*fontMenu*font-packed*Label: Packed Font
*fontMenu*render-font*Label: TrueType Fonts
*fontMenu*utf8-mode*Label: UTF-8 Encoding
*fontMenu*utf8-fonts*Label: UTF-8 Fonts
*fontMenu*utf8-title*Label: UTF-8 Titles
*fontMenu*allow-color-ops*Label: Allow Color Ops
*fontMenu*allow-font-ops*Label: Allow Font Ops
*fontMenu*allow-tcap-ops*Label: Allow Termcap Ops
*fontMenu*allow-title-ops*Label: Allow Title Ops
*fontMenu*allow-window-ops*Label: Allow Window Ops
*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
*tekMenu.Label: Tek Options
*tekMenu*tektextlarge*Label: Large Characters
*tekMenu*tektext2*Label: #2 Size Characters
*tekMenu*tektext3*Label: #3 Size Characters
*tekMenu*tektextsmall*Label: Small Characters
*tekMenu*tekpage*Label: PAGE
*tekMenu*tekreset*Label: RESET
*tekMenu*tekcopy*Label: COPY
*tekMenu*vtshow*Label: Show VT Window
*tekMenu*vtmode*Label: Switch to VT Mode
*tekMenu*tekhide*Label: Hide Tek Window
*tek4014*fontLarge: 9x15
*tek4014*font2: 8x13
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10
! Debian package customizations follow.
*ptyInitialErase: true
! If xterm is built with a toolbar, the widget hierarchy looks like this,
! showing widget name / class names. The complete menu hierarchy is built
! at startup because it is needed to make the layout work for the menubar:
!
! xterm/XTerm
! form/Form
! menubar/Box
! mainMenuButton/MenuButton
! mainMenu/SimpleMenu
! menuLabel/SmeBSB
! toolbar/SmeBSB
! ...
! vtMenu/SimpleMenu
! menuLabel/SmeBSB
! scrollbar/SmeBSB
! ...
! fontMenu/SimpleMenu
! menuLabel/SmeBSB
! fontdefault/SmeBSB
! ...
! tekMenu/SimpleMenu
! menuLabel/SmeBSB
! fontdefault/SmeBSB
! ...
! vt100/VT100
! tektronix/TopLevelShell
! shellext/VendorShellExt
! tek4014/Tek4014
!
! If built without a toolbar, the widget hierarchy is simpler, because there
! is no form, and the popup menu widgets are created only when they are first
! used.
!
! xterm/XTerm
! shellext/VendorShellExt
! mainMenu/SimpleMenu
! menuLabel/SmeBSB
! ...
! ...
! vt100/VT100
! tektronix/TopLevelShell
! shellext/VendorShellExt
! tek4014/Tek4014
!
! A more complete list of the widget/class names can be obtained using editres
! to dump a file. Some widget names are not available until the corresponding
! menu has been created.
! These resources reduce space around the menubar, by eliminating padding in
! the enclosing form (Thickness) and the border of the Box which represents
! the menubar widget.
*form.Thickness: 0
*menubar.borderWidth: 0
! If we wanted to eliminate the border of the popup menus, we could do this
! instead, since they are children of the menubar:
!*menubar*borderWidth: 0
! Eliminate the border of the buttons in the menubar, so the only line around
! the text is for the highlighted button:
*MenuButton*borderWidth: 0
! Set a border for the menus to make them simpler to distinguish against the
! vt100 widget:
*SimpleMenu*borderWidth: 2
! xterm can switch at runtime between bitmap (default) and TrueType fonts.
! The "faceSize" resource controls the size of the latter. However, it was
! originally given with a size that makes the two types of fonts different
! sizes. Uncomment this line to use the same size as "fixed".
!*faceSize: 8
! Here is a pattern that is useful for double-clicking on a URL:
*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48
!
! Alternatively,
!*on2Clicks: regex [[:alpha:]]+://([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
! VT100s and similar terminals recognize escape sequences and control
! characters to which they reply to the host with other escape sequences,
! to provide information. The "resize" program uses this feature.
!
! In addition, xterm recognizes several escape sequences which can be used to
! set fonts, window properties, return settings via escape sequences. Some
! find these useful; others are concerned with the possibility of unexpected
! inputs.
!
! All of these features can be enabled or disabled via menus.
!
! Depending on your environment, you may wish to disable those by default by
! uncommenting one or more of the resource settings below:
!*allowFontOps: false
!*allowTcapOps: false
!*allowTitleOps: false
!*allowWindowOps: false

View File

@@ -0,0 +1,175 @@
! $XTermId: XTerm-col.ad,v 1.22 2009/08/15 15:56:29 tom Exp $
! -----------------------------------------------------------------------------
! this file is part of xterm
!
! Copyright 2002-2006,2009 by Thomas E. Dickey
!
! All Rights Reserved
!
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! "Software"), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
!
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
!
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -----------------------------------------------------------------------------
#include "XTerm"
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
! Set the default text foreground and background colors.
*VT100*foreground: gray90
*VT100*background: black
! - OR -
! Uncomment this for black text on a "white" background.
!*VT100*foreground: black
!*VT100*background: gray90
! - OR -
! leave the foreground/background colors alone (at the mercy of your desktop
! designer).
! Color the popup/pulldown menu border to match the text widget foreground.
!*SimpleMenu*borderColor: gray15
! Uncomment this to use color for underline attribute
!*VT100*colorULMode: on
*VT100*colorUL: yellow
!*VT100*italicULMode: on
! Uncomment this to disable underlining, e.g., if colorULMode is set.
!*VT100*underLine: off
! Uncomment this to use color for the bold attribute
!*VT100*colorBDMode: on
*VT100*colorBD: white
! Uncomment this to use the bold/underline colors in preference to other colors
!*VT100*colorAttrMode: on
! These are the 8 ANSI colors and their bright equivalents. Depending on
! other resource settings, xterm may use the bright colors when displaying
! bold text (see the boldColors resource).
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: yellow3
*VT100*color4: blue2
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray50
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: rgb:5c/5c/ff
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white
! Disclaimer: there are no standard colors used in terminal emulation.
!
! The choice for color4 and color12 is a tradeoff between contrast, depending
! on whether they are used for text or backgrounds. Note that either color4 or
! color12 would be used for text, while only color4 would be used for a
! background. These are treated specially, since the luminosity of blue is
! only about half that of red/green, and is typically not accounted for in the
! RGB scheme.
!
! Blue text on a black background should be readable.
! Blue backgrounds should not be "too" bright.
!
! Originally color4/color12 were set to the names blue3/blue
!*VT100*color4: blue3
!*VT100*color12: blue
!
! They are from rgb.txt respectively:
! 0 0 205 blue3
! 0 0 255 blue
! However, blue3 is not readable on a black background.
!
! Another choice was from the Debian settings:
!*VT100*color4: DodgerBlue1
!*VT100*color12: SteelBlue1
!
! From rgb.txt:
! 30 144 255 DodgerBlue1
! 99 184 255 SteelBlue1
!
! Some users object to this choice because the background (color4) is brighter
! than they are accustomed. Others point out that the different weights for
! the red/green components make it appear to be not really blue. Finally, it
! provides poor contrast against color13 and color14.
!
! The current choice uses equal weights for red/green (effectively adding a
! gray to the result). It is brighter than the original choice, and provides
! more contrast between color12 and color13, color14 than SteelBlue1 did.
! Contrast of color4 against black is slightly improved over the original.
!
! Some refinement is certainly possible (you are welcome to try) -TD
#if PLANES > 8
! Color the popup menus and the menubar to match:
*SimpleMenu*background: AntiqueWhite
*SimpleMenu*foreground: gray15
! Color the menubar to match:
*Form.menubar.background: AntiqueWhite
*Form.menubar*background: AntiqueWhite
*Form.menubar.foreground: gray15
*Form.menubar*foreground: gray15
*Form.background: AntiqueWhite
*form.background: AntiqueWhite
*mainMenu*background: AntiqueWhite
*mainMenu*foreground: gray15
*vtMenu*background: AntiqueWhite
*vtMenu*foreground: gray15
*fontMenu*background: AntiqueWhite
*fontMenu*foreground: gray15
*tekMenu*background: AntiqueWhite
*tekMenu*foreground: gray15
! The following two sections take advantage of new features in version 7
! of the Athena widget library; see Xaw(7x).
! This section is commented out because Xaw has no way to dynamically size
! the gradient. The dimension parameter may need to be adjusted depending
! on the font used in the menu.
!*SimpleMenu*backgroundPixmap: gradient:vertical?dimension=350&start=gray90&end=gray60
!*SimpleMenu*foreground: gray15
*VT100.scrollbar.thumb: vlines2
*VT100.scrollbar.width: 14
*VT100.scrollbar.background: gray60
*VT100.scrollbar.foreground: rgb:a/5/5
*VT100.scrollbar.borderWidth: 0
*VT100.scrollbar.displayList:\
foreground gray90;\
lines 1,-1,-1,-1,-1,1;\
foreground gray60;\
lines -1,0,0,0,0,-1
#endif

View File

@@ -0,0 +1,96 @@
Xditview.geometry: 600x800
*MenuButton*Font: -*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1
*SimpleMenu*Font: -*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1
*Text*Font: -*-courier-medium-r-normal--*-120-*-*-*-*-iso8859-1
*paned.allowResize: true
*paned.?.showGrip: false
*paned.?.skipAdjust: false
*paned.form.porthole.width: 600
*paned.form.porthole.height: 800
*paned.label.skipAdjust: true
*MenuButton.shapeStyle: oval
*Command.shapeStyle: oval
*fileMenuButton.label: File
*fileMenuButton.leftBitmap: menu12
*fileMenuButton.menuName: fileMenu
*fileMenu.openFile.label: Open File
*fileMenu.revisitFile.label: Reopen File
*fileMenu.setResolution.label: Set Screen Resolution
*fileMenu.quit.label: Quit
*prevButton.bitmap: ldblarrow
*prevButton.internalHeight: 0
*prevButton.Translations: #override <BtnUp>: PreviousPage() unset()
*pageNumber.translations: #override\
Ctrl<Key>J: SetPageNumber()\n\
Ctrl<Key>M: SetPageNumber()\n\
<Key>Linefeed: SetPageNumber()\n\
<Key>Return: SetPageNumber()\n\
Ctrl<Key>O: Noop()\n\
Meta<Key>I: Noop()\n\
Ctrl<Key>N: Noop()\n\
Ctrl<Key>P: Noop()\n\
Ctrl<Key>Z: Noop()\n\
Meta<Key>Z: Noop()\n\
<Key>space: NextPage()\n\
Ctrl<Key>v: NextPage()\n\
Meta<Key>v: PreviousPage()\n\
<Key>Next: NextPage()\n\
<Key>Prior: PreviousPage()\n\
<Key>Find: OpenFile()
*pageNumber*editType: edit
*nextButton.bitmap: rdblarrow
*nextButton.internalHeight: 0
*nextButton.translations: #override <BtnUp>: NextPage() unset()
*viewport.allowResize: false
*viewport.forceBars: true
*viewport.allowHoriz: true
*viewport.allowVert: true
*dvi.translations: #augment \
<Btn1Down>: XawPositionSimpleMenu(popupMenu) MenuPopup(popupMenu)\n\
Ctrl<Key>v: NextPage()\n\
Meta<Key>v: PreviousPage()\n\
<Key>space: NextPage()\n\
<Key>Next: NextPage()\n\
<Key>Prior: PreviousPage()\n\
<Key>Find: OpenFile()
*dvi.baseTranslations: #augment \
<Btn1Down>: XawPositionSimpleMenu(popupMenu) MenuPopup(popupMenu)\n\
<Key>space: NextPage()\n\
Ctrl<Key>v: NextPage()\n\
Meta<Key>v: PreviousPage()\n\
<Key>Next: NextPage()\n\
<Key>Prior: PreviousPage()\n\
<Key>Find: OpenFile()
*popupMenu.nextPage.label: Next Page
*popupMenu.previousPage.label: Previous Page
*popupMenu.setResolution.label: Set Screen Resolution
*popupMenu.openFile.label: Open File
*popupMenu.revisitFile.label: Reopen File
*popupMenu.quit.label: Quit
*promptShell.allowShellResize: true
*promptShell.promptDialog.value.translations: #override\
<Key>Return: Accept()
*promptShell.promptDialog.value.baseTranslations: #override\
<Key>Return: Accept()
*promptShell.promptDialog.accept.label: Accept
*promptShell.promptDialog.accept.translations: #override\
<BtnUp>: Accept() unset()
*promptShell.promptDialog.accept.baseTranslations: #override \
<BtnUp>: Accept() unset()
*promptShell.promptDialog.cancel.label: Cancel
*promptShell.promptDialog.cancel.translations: #override \
<BtnUp>: Cancel() unset()
*promptShell.promptDialog.cancel.baseTranslations: #override \
<BtnUp>: Cancel() unset()

View File

@@ -0,0 +1,25 @@
#include "Xditview"
*Dvi.fontMap:\
R -*-charter-medium-r-normal--*-*-*-*-*-*-iso8859-1\n\
I -*-charter-medium-i-normal--*-*-*-*-*-*-iso8859-1\n\
B -*-charter-bold-r-normal--*-*-*-*-*-*-iso8859-1\n\
F -*-charter-bold-i-normal--*-*-*-*-*-*-iso8859-1\n\
BI -*-charter-bold-i-normal--*-*-*-*-*-*-iso8859-1\n\
C -*-courier-medium-r-normal--*-*-*-*-*-*-iso8859-1\n\
CO -*-courier-medium-o-normal--*-*-*-*-*-*-iso8859-1\n\
CB -*-courier-bold-r-normal--*-*-*-*-*-*-iso8859-1\n\
CF -*-courier-bold-o-normal--*-*-*-*-*-*-iso8859-1\n\
H -*-helvetica-medium-r-normal--*-*-*-*-*-*-iso8859-1\n\
HO -*-helvetica-medium-o-normal--*-*-*-*-*-*-iso8859-1\n\
HB -*-helvetica-bold-r-normal--*-*-*-*-*-*-iso8859-1\n\
HF -*-helvetica-bold-o-normal--*-*-*-*-*-*-iso8859-1\n\
N -*-new century schoolbook-medium-r-normal--*-*-*-*-*-*-iso8859-1\n\
NI -*-new century schoolbook-medium-i-normal--*-*-*-*-*-*-iso8859-1\n\
NB -*-new century schoolbook-bold-r-normal--*-*-*-*-*-*-iso8859-1\n\
NF -*-new century schoolbook-bold-i-normal--*-*-*-*-*-*-iso8859-1\n\
A -*-charter-medium-r-normal--*-*-*-*-*-*-iso8859-1\n\
AI -*-charter-medium-i-normal--*-*-*-*-*-*-iso8859-1\n\
AB -*-charter-bold-r-normal--*-*-*-*-*-*-iso8859-1\n\
AF -*-charter-bold-i-normal--*-*-*-*-*-*-iso8859-1\n\
S -*-symbol-medium-r-normal--*-*-*-*-*-*-adobe-fontspecific\n\
S2 -*-symbol-medium-r-normal--*-*-*-*-*-*-adobe-fontspecific\n

View File

@@ -0,0 +1,468 @@
! $XFree86: xc/programs/xedit/Xedit.ad,v 1.23 2002/09/22 07:09:05 paulo Exp $
*geometry: 590x440
*input: TRUE
*enableBackups: True
*backupNameSuffix: ~
*changedBitmap: xlogo11
*international: False
*hints:\
Use Control-S and Control-R to Search.\n\
Use Control-Shift-_ to Undo. Control-G to switch between Undo and Redo.\n\
Use Control-A to jump to the beginning of the line.\n\
Use Control-E to jump to the end of the line.\n\
Use Control-T to transpose characters.\n\
Use Control-K to cut to the end of the line. Control-Y to paste.\n\
Use Control-Q to escape control characters.\n\
Use Control-U[,<number>] to multiply actions. Control-G to cancel.\n\
Use Control-Z to scroll one line up. Meta-Z to scroll one line down.\n\
Use Meta-Q to format a paragraph.\n\
Use Right-Button to extend selections.\n\
Use Meta-I to insert a file.\n\
Use Control-W to delete a selection, and/or jump to the selection mark.\n\
Use Control-X,Control-F to find a file. Tab for filename completion.\n\
Use Control-X,Control-S to save.\n\
Use Control-X,Control-C to exit.\n\
Use Control-C to paste the selection at CUT_BUFFER0.\n\
Use Control Left-Button to popup the File Menu.\n\
Use Control Middle-Button to popup the Edit Menu.\n\
Use Control Right-Button to popup the Option Menu.\n\
Use Control-X,Tab to Indent.\n\
Use Control-X,0 to delete current splitted window.\n\
Use Control-X,1 to delete other splitted window.\n\
Use Control-X,2 to split the window vertically.\n\
Use Control-X,3 to split the window horizontally.\n\
Use Control-X,b to switch to another file.\n\
Use Control-X,d to list directory. Control-G to Cancel.\n\
Use Control-X,k to close file being edited.\n\
Use Control-X,o to switch to another splitted window.\n\
Use Control-X,u to undo. Control-G to switch between Undo and Redo.\n\
Use Insert to toggle Overwrite mode.\n\
Use Control-G to interrupt the lisp subprocess.\n\
Use Escape to enter or leave regex search and replace mode.\n\
Use Alt-. to search tags for the selected symbol or find the next match.
*formWindow*defaultDistance: 2
*formWindow.?.borderWidth: 0
*formWindow.min: 18
*formWindow.max: 18
*formWindow.showGrip: False
*positionWindow.fromHoriz: labelWindow
*positionWindow.horizDistance: 0
*positionWindow.left: chainRight
*positionWindow.right: chainRight
*positionWindow.width: 90
*positionWindow.label: error
*positionWindow.justify: left
*labelWindow*justify: center
*labelWindow*label: no file yet
*labelWindow.left: chainLeft
*labelWindow.right: chainRight
*quit.label: Quit
*quit.tip: Close xedit window
*save.label: Save
*save.tip: Save current file
*load.label: Load
*load.tip: Load a new file
*buttons*orientation: horizontal
*buttons*showGrip: False
*buttons.min: 18
*messageWindow.height: 50
*messageWindow.min: 18
*Paned*Text*allowResize: True
*messageWindow.autoFill: False
*messageWindow.scrollVertical: Never
*editWindow.autoFill: False
*editWindow.scrollVertical: Always
*editWindow.showGrip: True
xedit.textSource*enableUndo: True
*bc_label*label: Use Control-S and Control-R to Search.
*bc_label*showGrip: False
*bc_label.min: 18
*dirlabel.showGrip: False
*dirlabel.min: 18
*dirlabel.max: 18
*dirwindow.defaultColumns: 0
*dirwindow.verticalList: True
*viewport.forceBars: True
*viewport.allowVert: 1
*insertFile*text.width: 141
*insertFile*text.?.pieceSize: 256
*search*searchText.width: 157
*search*replaceText.width: 157
*search*case.horizDistance: 25
*search*Text.?.pieceSize: 256
*SimpleMenu.BackingStore: NotUseful
*SimpleMenu.menuLabel.vertSpace: 80
*SimpleMenu.SmeBSB.HorizontalMargins: 16
*SimpleMenu.justify: center
*SimpleMenu.menuLabel.height: 250
*SimpleMenu*cursor: left_ptr