diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-06-09 11:01:27 +0200 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-06-09 11:01:27 +0200 |
commit | fb067c4bf830eef804b65703368eea3b822a3904 (patch) | |
tree | b222776723d388c7decb5cdc657d39e746cdac14 /scripts | |
parent | 2bea3d632a6197b250969981b53dd709ccbeffd2 (diff) | |
download | XMonadContrib-fb067c4bf830eef804b65703368eea3b822a3904.tar.gz XMonadContrib-fb067c4bf830eef804b65703368eea3b822a3904.tar.xz XMonadContrib-fb067c4bf830eef804b65703368eea3b822a3904.zip |
missing unsetenv
darcs-hash:20070609090127-9c5c1-9d952a732e6e00c4db7a6dee89ecc67ff9343916.gz
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/xmonad-clock.c (renamed from scripts/clock.c) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/clock.c b/scripts/xmonad-clock.c index 77868d7..c0bff8c 100644 --- a/scripts/clock.c +++ b/scripts/xmonad-clock.c @@ -1,8 +1,9 @@ /* -dwm status bar provider. use as ~/.xinitrc or call it in your xinitrc -or xsession in place of dwm. + +dwm/xmonad status bar provider. launch from your .xinitrc, and pipe +into dzen2. -to compile: gcc -Os -s -o dwm-status dwm-status.c +to compile: gcc -Os -s -o xmonad-status xmonad-status.c Copyright (c) 2007, Tom Menari <tom dot menari at googlemail dot com> Copyright (c) 2007, Don Stewart @@ -55,6 +56,7 @@ int main(void) { pdttime = time(NULL); pdtrealtime = localtime(&pdttime); strftime(c, sizeof(c), TIME_FORMAT2, pdtrealtime); + unsetenv("TZ"); fprintf(stdout, "%s | %s | %.2f | xmonad 0.3 \n", b, c, load); fflush(stdout); |