summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-13 13:16:55 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-19 08:39:06 +0200
commit505c6a0e3897eb1b5a23f85de668612dad4f2d4d (patch)
treee1cdd2a8fab5d9c02935e6a7fcfab3bcf4640924
parent09e2ffa33f135754dd110983e04eac402d01293a (diff)
Turn some hardcoded numbers into variables.
-rw-r--r--config4
-rw-r--r--initvars.config3
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 ##