aboutsummaryrefslogtreecommitdiffstats
path: root/examples/plugin-test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-06 23:21:18 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-06 23:21:18 +0100
commit63ee4ef39bfa9bb83ad3ee5a4877770dba7d82f7 (patch)
tree80b9ef21cbe6a109727f8d026e19f93ee096ae50 /examples/plugin-test
parentadd XKB.get_locks_str (diff)
downloadxpybar-63ee4ef39bfa9bb83ad3ee5a4877770dba7d82f7.tar.gz
xpybar-63ee4ef39bfa9bb83ad3ee5a4877770dba7d82f7.tar.bz2
xpybar-63ee4ef39bfa9bb83ad3ee5a4877770dba7d82f7.tar.xz
add XDisplay.vt
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/plugin-test')
-rw-r--r--examples/plugin-test3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/plugin-test b/examples/plugin-test
index 486212d..a012542 100644
--- a/examples/plugin-test
+++ b/examples/plugin-test
@@ -151,7 +151,8 @@ def redraw():
discstats = ['%s:%s' % (d[2:], colourise(i)) for d, i in discstats]
discstats = 'Disc stats: %s' % (' '.join(discstats))
- xdisplay = ':%i' % XDisplay().display
+ xdisplay_ = XDisplay()
+ xdisplay = ':%i tty%i' % (xdisplay_.display, xdisplay_.vt)
moc_ = MOC().state
moc = {None : 'dead', MOC.STOPPED : 'stopped', MOC.PAUSED : 'paused', MOC.PLAYING : 'playing'}