LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-05-2020, 09:30 AM   #1
ptoye
LQ Newbie
 
Registered: Dec 2019
Location: Salisbury, UK
Distribution: anitiX
Posts: 11

Rep: Reputation: Disabled
Question How do I change the clock format in rox-icewm?


I've just installed an antiX system with rox-icewm as the window manager. I want to change the format of the displayed date/time on the taskbar. According to the manual I need to edit the ~/.icewm/preferences file. So I did that and saved it, remembering to remove the comment characters.

But the format remains stubbornly with a US-style date. This has survived several reboots.

Any ideas what I'm doing wrong (I'm a Linux noob) please?

Peter
 
Old 01-05-2020, 05:28 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,357
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
My guess is that you need to change the timezone setting, not the clock setting. Though they are related, they are often separate settings.

Check whether your system has a handy little utility called tzselect and run it as root.
 
Old 01-06-2020, 05:12 AM   #3
ptoye
LQ Newbie
 
Registered: Dec 2019
Location: Salisbury, UK
Distribution: anitiX
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks, I'll try that. Though I'd have thought that the time format in the window's taskbar would override anything in the bash login.

[later] It didn't change anything!

Last edited by ptoye; 01-06-2020 at 05:16 AM. Reason: Added result.
 
Old 01-06-2020, 05:20 AM   #4
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
https://download.tuxfamily.org/antix...FAQ/icewm.html

Quote:
Change to a 12-hr clock: click on Search on the menu bar, and enter: timeformat

Look for the entry that reads Clock Time format and change the entry below that so it reads:

TimeFormat="%I:%M"

Note that the line has been uncommented and the text in quotes has been changed.
 
Old 01-06-2020, 05:47 AM   #5
walker
Member
 
Registered: Nov 2003
Distribution: antiX-17.4.1_x64 base Custom
Posts: 193

Rep: Reputation: 38
Quote:
Originally Posted by ptoye View Post
I've just installed an antiX system with rox-icewm as the window manager. I want to change the format of the displayed date/time on the taskbar. According to the manual I need to edit the ~/.icewm/preferences file. So I did that and saved it, remembering to remove the comment characters.

But the format remains stubbornly with a US-style date. This has survived several reboots.

Any ideas what I'm doing wrong (I'm a Linux noob) please?

Peter
As correctly written by frankbell

Quote:
Originally Posted by frankbell View Post
My guess is that you need to change the timezone setting, not the clock setting. Though they are related, they are often separate settings.

Check whether your system has a handy little utility called tzselect and run it as root.
The date format follow the default locale.

You don't write what you changed in your ~/.icewm/preferences but the line to change in case is the last line of the clock section

DateFormat="%c"

%c stands for the default system timezone.

On antiX and every debian/devuan derivative you can set the default system timezone issuing as root the command

dpkg-reconfigure tzdata

Anyway take in mind that in old school (once upon a timen in GNU/Linux all was a plain text file and everyone was able to tweak the system now infected by systemd's binaries to need and pay Big Corps engineers) DE's like iceWM, JWM aso you have to restart the DE for changes to take effect if you change a config file.

Hope this helped.

Last edited by walker; 01-06-2020 at 08:02 AM. Reason: Added explanation
 
Old 01-07-2020, 10:09 AM   #6
ptoye
LQ Newbie
 
Registered: Dec 2019
Location: Salisbury, UK
Distribution: anitiX
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks all for the advice.

I've found the problem: TimeFormat was set twice in the preferences file. Once early on, and commented out. This was the one I uncommented and changed. But it's also in the same file on line 679(!) and not commented out, so my change wasn't noticed. Grrrrr!

Timezones appear to be irrelevant, though.
 
  


Reply

Tags
clock, icewm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto have adesklets above the rox desktop (icewm)? frenchn00b Linux - Desktop 0 08-26-2007 01:20 PM
Rox + Icewm + Usb memories mtb Debian 3 04-04-2007 07:28 AM
ROX and ROX Filer cb951303 Linux - Software 1 04-17-2005 03:47 PM
Icewm and Rox tims1979 Linux - Newbie 2 08-02-2004 02:53 AM
ROX icewm funny_harry Linux - General 5 01-11-2004 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration