diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-08-13 13:16:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-08-19 08:39:06 +0200 |
commit | 505c6a0e3897eb1b5a23f85de668612dad4f2d4d (patch) | |
tree | e1cdd2a8fab5d9c02935e6a7fcfab3bcf4640924 | |
parent | 09e2ffa33f135754dd110983e04eac402d01293a (diff) |
Turn some hardcoded numbers into variables.
-rw-r--r-- | config | 4 | ||||
-rw-r--r-- | initvars.config | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -20,8 +20,6 @@ Read styles.config Read deco.config Read menu.config -# 96 pixels per page -PipeRead 'echo InfoStoreAdd num_pages $(($[infostore.pagerheight]/96))' DesktopSize 1x$[infostore.num_pages] EdgeThickness 0 @@ -30,7 +28,7 @@ OpaqueMoveSize unlimited HideGeometryWindow Always IgnoreModifiers L25 EdgeResistance -1 -EwmhBaseStruts 0 128 0 0 +EwmhBaseStruts 0 $[infostore.panelwidth] 0 0 ##################### diff --git a/initvars.config b/initvars.config index aaa4dd2..6e07559 100644 --- a/initvars.config +++ b/initvars.config @@ -3,7 +3,10 @@ # heights of panel apps InfoStoreAdd trayheight 26 InfoStoreAdd clockheight 64 +InfoStoreAdd pageheight 96 +InfoStoreAdd panelwidth 128 PipeRead 'echo InfoStoreAdd pagerheight $(($[vp.height] - $[infostore.trayheight] - $[infostore.clockheight]))' +PipeRead 'echo InfoStoreAdd num_pages $(($[infostore.pagerheight]/$[infostore.pageheight]))' ############################## ## Set default applications ## |