Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Keep your clock afloat between restarts Apps
I noticed that my preferences for, specifically the setting to have it as a free-floating clock and not in the dock, were lost each time I logged out. I know that this is a much less than ideal solution, but I figured that since I loaded Terminal on login anyway, I would just add a defaults line to my ~/.tcshrc file. Specifically, adding the following line to that file, and having Terminal load first on login, keeps the clock floating:
defaults write InDock "0"
I would more than welcome a reply from anyone who knows the right way to do this!

  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)

Keep your clock afloat between restarts | 3 comments | Create New Account
Click here to return to the 'Keep your clock afloat between restarts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CPU Monitor
Authored by: krove on Jul 17, '01 12:52:57PM

I experience something similar with the CPU monitor, where by it starts on login, but the window never stays in the location I place it.

On another computer, the default monitor changes (instead of the expanded window, I get another).

Perhaps your solution will work for the 2nd scenario, but I'm not sure if it can affect the window location. Any ideas?

[ Reply to This | # ]
CPU Monitor
Authored by: cmccarthy on Jul 17, '01 01:41:50PM
Actually, I believe a similar procedure may work for maintaining window location in CPU Monitor. Again, this is probably not the best way to go about it, but it should work. First, launch CPU Monitor, position the window where you'd like it, and quit the program. Then, in Terminal, type the following:
defaults read
Look for the following keys in the output:
"NSWindow Frame CPUWindowFrame"
"NSWindow Frame ExpandedWindowFrame"
The first two numbers in each value seem to be X and Y coordinates for initial window position, starting from the bottom left of the screen. The current values should correspond to the preferred window position in which you last left CPU Monitor, so adding a similar line like mine to ./.tcshrc of the following form should work:
defaults write "NSWindow Frame CPUWindowFrame" "numbers-of-preferred-position-here"
Also, some of the other values in the defaults output for should correspond to the expanded/nonexpanded state of the window on launch, so that might take care of your other problem, too.

[ Reply to This | # ]
Another Method, Same Result
Authored by: cmccarthy on Jul 19, '01 02:23:30PM
Not to get too out of hand replying to my own post, but there's another way of doing this which doesn't require opening Terminal on login. After you get preferences the way you want them, and don't anticipate wanting to change them, change the permissions on the following file:
to read-only by owner (you) and none for group and everyone else (they should start out as read and write for you, none for group and everyone else). I did this from the Terminal with
but I guess it would work from the Finder with Show Info as well. I'd also imagine that you'd have to change permissions back again if you wanted to alter the preferences again.

[ Reply to This | # ]