aboutsummaryrefslogtreecommitdiffstats
path: root/xpybar/config
diff options
context:
space:
mode:
Diffstat (limited to 'xpybar/config')
-rw-r--r--xpybar/config/Makefile5
-rw-r--r--xpybar/config/common.py24
2 files changed, 28 insertions, 1 deletions
diff --git a/xpybar/config/Makefile b/xpybar/config/Makefile
index b5ce07a..13b97c8 100644
--- a/xpybar/config/Makefile
+++ b/xpybar/config/Makefile
@@ -2,10 +2,13 @@
all: xmonad-monitor
-xmonad-monitor: xmonad-monitor.gpp
+.gpp:
@touch -- $@
@chmod -- +w $@
gpp -s '%%' < $@.gpp > $@
@chmod -- a-w $@
+.SUFFIXES:
+.SUFFIXES: .gpp
+
.PHONY: all
diff --git a/xpybar/config/common.py b/xpybar/config/common.py
index fca2b73..dd2c1b7 100644
--- a/xpybar/config/common.py
+++ b/xpybar/config/common.py
@@ -38,6 +38,18 @@ class Globals:
@property
def HEIGHT(self):
return self.globals['HEIGHT']
+ @property
+ def XPOS(self):
+ return self.globals['XPOS']
+ @property
+ def LEFT(self):
+ return self.globals['LEFT']
+ @property
+ def WIDTH(self):
+ return self.globals['WIDTH']
+ @property
+ def SIDEBAR(self):
+ return self.globals['SIDEBAR']
@OUTPUT.setter
def OUTPUT(self, value):
@@ -54,6 +66,18 @@ class Globals:
@HEIGHT.setter
def HEIGHT(self, value):
self.globals['HEIGHT'] = value
+ @XPOS.setter
+ def XPOS(self, value):
+ self.globals['XPOS'] = value
+ @LEFT.setter
+ def LEFT(self, value):
+ self.globals['LEFT'] = value
+ @WIDTH.setter
+ def WIDTH(self, value):
+ self.globals['WIDTH'] = value
+ @SIDEBAR.setter
+ def SIDEBAR(self, value):
+ self.globals['SIDEBAR'] = value
G = Globals()