18db30ca8Sthorpej! SshAskpass.ad: Default resources for the X11-based ssh-askpass for OpenSSH 2c056561aSmbalmer! created 1999-Nov-17 03:40 Jim Knoble <jmknoble@jmknoble.cx> 3c056561aSmbalmer! autodate: 2000-Nov-07 05:50 48db30ca8Sthorpej! 5c056561aSmbalmer! by Jim Knoble <jmknoble@jmknoble.cx> 6c056561aSmbalmer! Copyright (C) 1999,2000 Jim Knoble 78db30ca8Sthorpej! 88db30ca8Sthorpej! Disclaimer: 98db30ca8Sthorpej! 108db30ca8Sthorpej! The software is provided "as is", without warranty of any kind, 118db30ca8Sthorpej! express or implied, including but not limited to the warranties of 128db30ca8Sthorpej! merchantability, fitness for a particular purpose and 138db30ca8Sthorpej! noninfringement. In no event shall the author(s) be liable for any 148db30ca8Sthorpej! claim, damages or other liability, whether in an action of 158db30ca8Sthorpej! contract, tort or otherwise, arising from, out of or in connection 168db30ca8Sthorpej! with the software or the use or other dealings in the software. 178db30ca8Sthorpej! 188db30ca8Sthorpej! Permission to use, copy, modify, distribute, and sell this software 198db30ca8Sthorpej! and its documentation for any purpose is hereby granted without 208db30ca8Sthorpej! fee, provided that the above copyright notice appear in all copies 218db30ca8Sthorpej! and that both that copyright notice and this permission notice 228db30ca8Sthorpej! appear in supporting documentation. 238db30ca8Sthorpej! 248db30ca8Sthorpej 258db30ca8Sthorpej! +-------------+ 268db30ca8Sthorpej! | e133t theme | 278db30ca8Sthorpej! +-------------+ 288db30ca8Sthorpej 298db30ca8Sthorpej*Dialog.font: -b&h-lucida-medium-r-normal-*-*-100-*-*-*-*-iso8859-1 30c056561aSmbalmer*?.foreground: rgb:d0/d0/d0 31c056561aSmbalmer*?.background: rgb:50/50/50 32c056561aSmbalmer*topShadowColor: rgb:90/90/90 33c056561aSmbalmer*bottomShadowColor: rgb:00/00/00 34c056561aSmbalmer*borderColor: rgb:a0/a0/a0 358db30ca8Sthorpej*shadowThickness: 2 368db30ca8Sthorpej*borderWidth: 1 378db30ca8Sthorpej*horizontalSpacing: 5 388db30ca8Sthorpej*verticalSpacing: 5 398db30ca8Sthorpej 408db30ca8Sthorpej*Button.font: -b&h-lucida-medium-r-normal-*-*-100-*-*-*-*-iso8859-1 418db30ca8Sthorpej*Button.shadowThickness: 1 428db30ca8Sthorpej*Button.borderWidth: 0 438db30ca8Sthorpej*Button.horizontalSpacing: 4 448db30ca8Sthorpej*Button.verticalSpacing: 2 458db30ca8Sthorpej 46c056561aSmbalmer*Indicator.foreground: rgb:70/80/90 47c056561aSmbalmer*Indicator.background: rgb:50/50/50 488db30ca8Sthorpej*Indicator.shadowThickness: 1 498db30ca8Sthorpej*Indicator.borderWidth: 0 508db30ca8Sthorpej*Indicator.height: 4 518db30ca8Sthorpej*Indicator.width: 13 528db30ca8Sthorpej*Indicator.horizontalSpacing: 4 538db30ca8Sthorpej*Indicator.verticalSpacing: 5 548db30ca8Sthorpej*Indicator.minimumCount: 8 558db30ca8Sthorpej*Indicator.maximumCount: 24 568db30ca8Sthorpej 57c056561aSmbalmer! X11 does a miserable job of providing resolution-independent drawing 58c056561aSmbalmer! facilities---it expects everything to be done in pixels. So if you 59c056561aSmbalmer! happen to run your X server at a resolution of 100 pixels per inch 60c056561aSmbalmer! (or some other strange value) instead of the widely used default of 61c056561aSmbalmer! 75, x11-ssh-askpass looks might tiny. [Sigh]. 62c056561aSmbalmer! 63c056561aSmbalmer! To get around this, umm, limitation, we declare the resolution that 64c056561aSmbalmer! the spacing and width/height pixels values are "valid" for, along 65c056561aSmbalmer! with a fuzz factor. If the current actual resolution is outside of 66c056561aSmbalmer! the range of <DEFAULT - FUZZ>..<DEFAULT + FUZZ>, then we scale pixel 67c056561aSmbalmer! measurements to fit the actual resolution. 68c056561aSmbalmer! 69c056561aSmbalmer! (And if you think *this* is a horrid hack, then take a look at the 70c056561aSmbalmer! actual code, which has to deal with conversion to [cheesy fanfare] 71c056561aSmbalmer! that's right---millimeters!!! The right hand managed to slip that 72c056561aSmbalmer! one in while the left hand was adding a '-dpi' switch to the sample 73c056561aSmbalmer! server implementation. I think both left feet were adding the 74c056561aSmbalmer! RESOLUTION_X and RESOLUTION_Y fields [in dots per inch, naturally] 75c056561aSmbalmer! to the X Logical Font Description. The irony is underwhelming.) 76c056561aSmbalmer 77c056561aSmbalmer*defaultXResolution: 75/in 78c056561aSmbalmer*defaultYResolution: 75/in 79c056561aSmbalmer*xResolutionFuzz: 20/in 80c056561aSmbalmer*yResolutionFuzz: 20/in 81c056561aSmbalmer 82c056561aSmbalmer! Number of seconds to wait for a key- or button-press 83c056561aSmbalmer! before giving up. '0' means wait forever. 84c056561aSmbalmer*inputTimeout: 0 85c056561aSmbalmer 868db30ca8Sthorpej! Ssh-askpass grabs the keyboard by default. 878db30ca8Sthorpej! To stop it from grabbing the keyboard, use: 888db30ca8Sthorpej!*grabKeyboard: false 898db30ca8Sthorpej 908db30ca8Sthorpej! Ssh-askpass does not grab the pointer by default. 918db30ca8Sthorpej! To make it grab the pointer, use: 928db30ca8Sthorpej!*grabPointer: true 938db30ca8Sthorpej 948db30ca8Sthorpej! Ssh-askpass does not grab the server by default. 958db30ca8Sthorpej! To make it grab the server, use: 968db30ca8Sthorpej!*grabServer: true 978db30ca8Sthorpej 98c056561aSmbalmer*Dialog.title: OpenSSH Authentication Passphrase Request 998db30ca8Sthorpej*Dialog.label: Please enter your authentication passphrase: 1008db30ca8Sthorpej*okButton.label: OK 1018db30ca8Sthorpej*cancelButton.label: Cancel 1028db30ca8Sthorpej 103