From 505c6a0e3897eb1b5a23f85de668612dad4f2d4d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 13 Aug 2012 13:16:55 +0200 Subject: Turn some hardcoded numbers into variables. --- config | 4 +--- initvars.config | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config b/config index 962f59c..192f460 100644 --- a/config +++ b/config @@ -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 ## -- cgit v1.2.3