diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-04-22 13:37:27 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-04-22 13:37:27 +0200 |
commit | ea7d4cb28aa6168c4b165d594c9ff733806cbdd5 (patch) | |
tree | dfd058f32b3a6f1f7563fc84b01f4ac2d89c30d6 | |
parent | 784a36efb7957ae62810b9bc59befcc2da4ad5a5 (diff) |
Use a variable for clock.
-rw-r--r-- | config | 2 | ||||
-rw-r--r-- | initvars.config | 11 |
2 files changed, 12 insertions, 1 deletions
@@ -99,5 +99,5 @@ DestroyModuleConfig FvwmTaskbar: * *FvwmTaskbar: Columns 2 *FvwmTaskbar: (2x$[fvwm_config_pagerheight], Swallow 'FvwmPager' 'FvwmPager') *FvwmTaskbar: (2x64, Swallow (NoClose, UseOld) stalonetray 'Exec stalonetray --no-shrink') -*FvwmTaskbar: (2x64, Swallow 'dclock' 'Exec dclock') +*FvwmTaskbar: (2x64, Swallow '$[fvwm_config_clock]' 'Exec $[fvwm_config_clock]') Style FvwmTaskbar Colorset 2, HandleWidth 2, BorderWidth 2 diff --git a/initvars.config b/initvars.config index 5c49256..00043f9 100644 --- a/initvars.config +++ b/initvars.config @@ -75,3 +75,14 @@ AddToFunc set_wallpaper_dir set_wallpaper_dir DestroyFunc set_wallpaper_dir +# Clock +DestroyFunc set_clock +AddToFunc set_clock ++ I Test (EnvIsSet fvwm_config_clock) Nop ++ I TestRc (Match) Break ++ I Test (x dclock) SetEnv fvwm_config_clock dclock ++ I TestRc (Match) Break ++ I Test (x xclock) SetEnv fvwm_config_clock xclock ++ I TestRc (Match) Break +set_clock +DestroyFunc set_clock |