We could also customize not only the font but also the text and background colors, and set a variety of options such as loading on start-up, locking the window position, and selecting the first day of the week. Clicking buttons labeled Date, Time, Time Zone, and Separator let us choose from pop-up lists. DS Clock lets users build their own clock display by entering their preferred sequences (the default is hh:mm:ss tt -MMMM dd.yyyy) with a variety of examples available by clicking the Samples button. It also displays pop-up reminders using Calendarscope, and it's compatible with Swatch Internet Time and Stopwatches.ĭS Clock opened with both its compact time display and its Options dialog, which is divided into two tabs, Clock and Synchronization. It synchronizes with atomic clocks and time servers around the world. It displays the time and date in a wide range of formats in an unobtrusive, compact linear window. Some are simple and straightforward yet almost completely customizable, like DS Clock from Duality Software. There is no shortage of such displays most are free, and many reproduce analog clock faces, though most use digital displays. But, of course -*-dejavu sans-*-r-*-*-48-*-*-*-*-*-*-* was a horse of a different color.Desktop time and date displays are nothing new to Windows, which traditionally lags behind the aftermarket when it comes to timekeeping. Why not simply eliminate the quotation marks? You probably noticed that -*-helvetica-*-r-*-*-48-*-*-*-*-*-*-* worked fine without quotation marks, even before adding the eval. So the font name passed to xlock now begins with a quotation mark, which is not valid, and so the font is not found.īy adding eval to the front of the line, the output from cat is parsed, the font name is recognized as a single argument (even if there is a space in it), and the quotation marks are stripped before it is passed to xlock. Usually when bash parses the command line, or a command in a script, it will recognize a quoted string as a single argument and pass it to the invoked command after swallowing the quotation marks.īut because this line in the script has no argument list to parse, and instead uses the output from cat as the argument list, the text output from cat is passed to xlock as-is, quotation marks and all. Read it if you need help falling asleep.Ĭode: Select all xlock `cat $HOME/.config/Xlock/xlockscreenparams` WARNING, the remainder of this post will probably tell you more than you really want to know about the unexpected behavior that you have run into. It was never intended to support all of the many options of xlock. This is fine for doing what it was designed to do: provide a simple GUI interface to allow the user to change the mode of xlock. The new file only contains the -grabserver, -echokeys, -echokey, and -mode options. The problem with using ~/.config/Xlock/xlockscreenparams for setting your own custom options is that the configuration GUI doesn't edit that file, it simply blows it away and creates a new one. (Either of the above two solutions also saves you the need to remember to edit the script, and remember what to change, whenever you try a new Puppy.) Code: Select all -grabserver -echokeys -echokey X -mode dclock -messagefont "-*-dejavu sans-*-r-*-*-48-*-*-*-*-*-*-*" -monoĪlternatively, as you, Subito Piano, already considered, you could create a script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |