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! | Default theme (like SSH v1) | 278db30ca8Sthorpej! +-----------------------------+ 288db30ca8Sthorpej 298db30ca8Sthorpej*Dialog.font: -adobe-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1 30c056561aSmbalmer*Dialog.fixedFont: -adobe-courier-bold-r-normal-*-*-120-*-*-*-*-iso8859-1 31c056561aSmbalmer*?.foreground: rgb:00/00/00 32c056561aSmbalmer*?.background: rgb:cc/cc/cc 33c056561aSmbalmer*topShadowColor: rgb:ff/ff/ff 34c056561aSmbalmer*bottomShadowColor: rgb:7f/7f/7f 35c056561aSmbalmer*borderColor: rgb:20/20/20 368db30ca8Sthorpej*shadowThickness: 3 378db30ca8Sthorpej*borderWidth: 1 388db30ca8Sthorpej*horizontalSpacing: 5 398db30ca8Sthorpej*verticalSpacing: 6 408db30ca8Sthorpej 418db30ca8Sthorpej*Button.font: -adobe-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1 428db30ca8Sthorpej*Button.shadowThickness: 2 438db30ca8Sthorpej*Button.borderWidth: 1 448db30ca8Sthorpej*Button.horizontalSpacing: 5 458db30ca8Sthorpej*Button.verticalSpacing: 2 468db30ca8Sthorpej 47c056561aSmbalmer*Indicator.foreground: rgb:9b/cd/9b 48c056561aSmbalmer*Indicator.background: rgb:00/00/80 498db30ca8Sthorpej*Indicator.shadowThickness: 2 508db30ca8Sthorpej*Indicator.borderWidth: 0 518db30ca8Sthorpej*Indicator.height: 7 528db30ca8Sthorpej*Indicator.width: 15 538db30ca8Sthorpej*Indicator.horizontalSpacing: 2 548db30ca8Sthorpej*Indicator.verticalSpacing: 4 558db30ca8Sthorpej*Indicator.minimumCount: 8 568db30ca8Sthorpej*Indicator.maximumCount: 24 578db30ca8Sthorpej 58c056561aSmbalmer! X11 does a miserable job of providing resolution-independent drawing 59c056561aSmbalmer! facilities---it expects everything to be done in pixels. So if you 60c056561aSmbalmer! happen to run your X server at a resolution of 100 pixels per inch 61c056561aSmbalmer! (or some other strange value) instead of the widely used default of 62c056561aSmbalmer! 75, x11-ssh-askpass looks might tiny. [Sigh]. 63c056561aSmbalmer! 64c056561aSmbalmer! To get around this, umm, limitation, we declare the resolution that 65c056561aSmbalmer! the spacing and width/height pixels values are "valid" for, along 66c056561aSmbalmer! with a fuzz factor. If the current actual resolution is outside of 67c056561aSmbalmer! the range of <DEFAULT - FUZZ>..<DEFAULT + FUZZ>, then we scale pixel 68c056561aSmbalmer! measurements to fit the actual resolution. 69c056561aSmbalmer! 70c056561aSmbalmer! (And if you think *this* is a horrid hack, then take a look at the 71c056561aSmbalmer! actual code, which has to deal with conversion to [cheesy fanfare] 72c056561aSmbalmer! that's right---millimeters!!! The right hand managed to slip that 73c056561aSmbalmer! one in while the left hand was adding a '-dpi' switch to the sample 74c056561aSmbalmer! server implementation. I think both left feet were adding the 75c056561aSmbalmer! RESOLUTION_X and RESOLUTION_Y fields [in dots per inch, naturally] 76c056561aSmbalmer! to the X Logical Font Description. The irony is underwhelming.) 77c056561aSmbalmer 78c056561aSmbalmer*defaultXResolution: 75/in 79c056561aSmbalmer*defaultYResolution: 75/in 80c056561aSmbalmer*xResolutionFuzz: 20/in 81c056561aSmbalmer*yResolutionFuzz: 20/in 82c056561aSmbalmer 83c056561aSmbalmer! Number of seconds to wait for a key- or button-press 84c056561aSmbalmer! before giving up. '0' means wait forever. 85c056561aSmbalmer*inputTimeout: 0 86c056561aSmbalmer 878db30ca8Sthorpej! Ssh-askpass grabs the keyboard by default. 888db30ca8Sthorpej! To stop it from grabbing the keyboard, use: 898db30ca8Sthorpej!*grabKeyboard: false 908db30ca8Sthorpej 918db30ca8Sthorpej! Ssh-askpass does not grab the pointer by default. 928db30ca8Sthorpej! To make it grab the pointer, use: 938db30ca8Sthorpej!*grabPointer: true 948db30ca8Sthorpej 958db30ca8Sthorpej! Ssh-askpass does not grab the server by default. 968db30ca8Sthorpej! To make it grab the server, use: 978db30ca8Sthorpej!*grabServer: true 988db30ca8Sthorpej 99c056561aSmbalmer*Dialog.title: OpenSSH Authentication Passphrase Request 1008db30ca8Sthorpej*Dialog.label: Please enter your authentication passphrase: 1018db30ca8Sthorpej*okButton.label: OK 1028db30ca8Sthorpej*cancelButton.label: Cancel 1038db30ca8Sthorpej 104