aboutsummaryrefslogtreecommitdiffstats
path: root/examples/plugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/plugins/alsa4
-rw-r--r--examples/plugins/chase4
-rw-r--r--examples/plugins/clock4
-rw-r--r--examples/plugins/cpu4
-rw-r--r--examples/plugins/cpuinfo4
-rw-r--r--examples/plugins/cpuonline2
-rw-r--r--examples/plugins/dentrystate4
-rw-r--r--examples/plugins/df4
-rw-r--r--examples/plugins/discstats4
-rw-r--r--examples/plugins/files4
-rw-r--r--examples/plugins/image2
-rw-r--r--examples/plugins/inodestate4
-rw-r--r--examples/plugins/inotify2
-rw-r--r--examples/plugins/ipaddress4
-rw-r--r--examples/plugins/kmsg4
-rw-r--r--examples/plugins/leapsec4
-rw-r--r--examples/plugins/loadavg4
-rw-r--r--examples/plugins/locks4
-rw-r--r--examples/plugins/lunar4
-rw-r--r--examples/plugins/mem4
-rw-r--r--examples/plugins/moc4
-rw-r--r--examples/plugins/network4
-rw-r--r--examples/plugins/pacman4
-rw-r--r--examples/plugins/ping4
-rw-r--r--examples/plugins/random4
-rw-r--r--examples/plugins/ropty2
-rw-r--r--examples/plugins/snmp4
-rw-r--r--examples/plugins/snmp64
-rw-r--r--examples/plugins/softirqs4
-rw-r--r--examples/plugins/swaps4
-rw-r--r--examples/plugins/tzclock4
-rw-r--r--examples/plugins/uname4
-rw-r--r--examples/plugins/uptime4
-rw-r--r--examples/plugins/users4
-rw-r--r--examples/plugins/vmstat4
-rw-r--r--examples/plugins/xdisplay4
-rw-r--r--examples/plugins/xkb4
37 files changed, 70 insertions, 70 deletions
diff --git a/examples/plugins/alsa b/examples/plugins/alsa
index 3aa9efd..9ebd3db 100644
--- a/examples/plugins/alsa
+++ b/examples/plugins/alsa
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -36,7 +36,7 @@ cardnames = ALSA.get_cards()
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
text_v = lambda v : '--%' if v is None else ('%2i%%' % v)[:3]
read_m = lambda m : '%s: %s' % (m.mixername, ' '.join(text_v(v) for v in m.get_volume()))
diff --git a/examples/plugins/chase b/examples/plugins/chase
index 14f32e9..a296fef 100644
--- a/examples/plugins/chase
+++ b/examples/plugins/chase
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ def start():
def update():
chase_.update()
bar.invalidate()
- async(update)
+ xasync(update)
def redraw():
diff --git a/examples/plugins/clock b/examples/plugins/clock
index 1c275af..f6969a3 100644
--- a/examples/plugins/clock
+++ b/examples/plugins/clock
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(format = '%Y-(%m)%b-%d %T, %a w%V, %Z', utc = True, sync_to = Cloc
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/cpu b/examples/plugins/cpu
index 0e4efcf..91701c1 100644
--- a/examples/plugins/cpu
+++ b/examples/plugins/cpu
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS / 2)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
last_cpu_idle, last_cpu_total = 0, 0
diff --git a/examples/plugins/cpuinfo b/examples/plugins/cpuinfo
index 9039186..2597ad0 100644
--- a/examples/plugins/cpuinfo
+++ b/examples/plugins/cpuinfo
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = 2.5 * Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/cpuonline b/examples/plugins/cpuonline
index 300145f..b75ba4d 100644
--- a/examples/plugins/cpuonline
+++ b/examples/plugins/cpuonline
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/examples/plugins/dentrystate b/examples/plugins/dentrystate
index dcb3b6a..91eb988 100644
--- a/examples/plugins/dentrystate
+++ b/examples/plugins/dentrystate
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/df b/examples/plugins/df
index 4132911..53701a0 100644
--- a/examples/plugins/df
+++ b/examples/plugins/df
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ clock = Clock(sync_to = 5 * Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/discstats b/examples/plugins/discstats
index 3efc3ef..74de112 100644
--- a/examples/plugins/discstats
+++ b/examples/plugins/discstats
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ clock = Clock(sync_to = 5 * Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/files b/examples/plugins/files
index 51a228c..bfd2f5b 100644
--- a/examples/plugins/files
+++ b/examples/plugins/files
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/image b/examples/plugins/image
index 1058362..9b8ee06 100644
--- a/examples/plugins/image
+++ b/examples/plugins/image
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/examples/plugins/inodestate b/examples/plugins/inodestate
index 422196b..319c5c6 100644
--- a/examples/plugins/inodestate
+++ b/examples/plugins/inodestate
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/inotify b/examples/plugins/inotify
index 4afc461..5a6399e 100644
--- a/examples/plugins/inotify
+++ b/examples/plugins/inotify
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/examples/plugins/ipaddress b/examples/plugins/ipaddress
index d2b8a13..8c8c7aa 100644
--- a/examples/plugins/ipaddress
+++ b/examples/plugins/ipaddress
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = 30 * Clock.MINUTES)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/kmsg b/examples/plugins/kmsg
index 5dc34ae..6e8732d 100644
--- a/examples/plugins/kmsg
+++ b/examples/plugins/kmsg
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@ def start():
import sys
sys.exit() # kill thread
bar.invalidate()
- async(lambda : forever(refresh))
+ xasync(lambda : forever(refresh))
def redraw():
bar.clear()
diff --git a/examples/plugins/leapsec b/examples/plugins/leapsec
index 1b8021e..1c8dfee 100644
--- a/examples/plugins/leapsec
+++ b/examples/plugins/leapsec
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = 0.5 * Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
leapsec_ = Sometimes(LeapSeconds, 30 * 24 * 60 * 2)
diff --git a/examples/plugins/loadavg b/examples/plugins/loadavg
index 32f1ea1..e372476 100644
--- a/examples/plugins/loadavg
+++ b/examples/plugins/loadavg
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/locks b/examples/plugins/locks
index edaf4c9..4cce02d 100644
--- a/examples/plugins/locks
+++ b/examples/plugins/locks
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -87,7 +87,7 @@ def locate_files():
start_ = start
def start():
start_()
- async(locate_files)
+ xasync(locate_files)
semaphore = threading.Semaphore()
diff --git a/examples/plugins/lunar b/examples/plugins/lunar
index 4254ab7..91600f1 100644
--- a/examples/plugins/lunar
+++ b/examples/plugins/lunar
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/mem b/examples/plugins/mem
index b9ca220..6e591a5 100644
--- a/examples/plugins/mem
+++ b/examples/plugins/mem
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/moc b/examples/plugins/moc
index 037ed0c..61a7665 100644
--- a/examples/plugins/moc
+++ b/examples/plugins/moc
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
line2 = ['File', 'Title', 'SongTitle', 'Album', 'Artist']
diff --git a/examples/plugins/network b/examples/plugins/network
index 892775f..6264029 100644
--- a/examples/plugins/network
+++ b/examples/plugins/network
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
net_time = time.monotonic()
diff --git a/examples/plugins/pacman b/examples/plugins/pacman
index 680b110..c7a1564 100644
--- a/examples/plugins/pacman
+++ b/examples/plugins/pacman
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = 30 * Clock.MINUTES)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/ping b/examples/plugins/ping
index b666295..0710296 100644
--- a/examples/plugins/ping
+++ b/examples/plugins/ping
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ ping_ = Ping(targets = Ping.get_nics(Ping.DEFAULT_GATEWAY), interval = 2)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def colourise_latency(latency):
diff --git a/examples/plugins/random b/examples/plugins/random
index c4d9741..907c342 100644
--- a/examples/plugins/random
+++ b/examples/plugins/random
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
random_ = Random()
diff --git a/examples/plugins/ropty b/examples/plugins/ropty
index c46ab84..dc9e08f 100644
--- a/examples/plugins/ropty
+++ b/examples/plugins/ropty
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/examples/plugins/snmp b/examples/plugins/snmp
index cdde03d..d514ae8 100644
--- a/examples/plugins/snmp
+++ b/examples/plugins/snmp
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@ index = 0
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
text = '%s: %i' % (keys[index], SNMP()[keys[index]])
diff --git a/examples/plugins/snmp6 b/examples/plugins/snmp6
index 0535543..7d9e080 100644
--- a/examples/plugins/snmp6
+++ b/examples/plugins/snmp6
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@ index = 0
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
text = '%s: %i' % (keys[index], SNMP6()[keys[index]])
diff --git a/examples/plugins/softirqs b/examples/plugins/softirqs
index 2d79206..c92d41a 100644
--- a/examples/plugins/softirqs
+++ b/examples/plugins/softirqs
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@ hz = lambda n, l, t : '%.fHz' % ((n - l) / t)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
global last_irqs, last_time
diff --git a/examples/plugins/swaps b/examples/plugins/swaps
index cd36f0d..27abf16 100644
--- a/examples/plugins/swaps
+++ b/examples/plugins/swaps
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
swaps_ = Swaps()
diff --git a/examples/plugins/tzclock b/examples/plugins/tzclock
index a9e12e0..e9dd465 100644
--- a/examples/plugins/tzclock
+++ b/examples/plugins/tzclock
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@ timezones = [pacific, central, utc, sthlm, kalinin, tokyo]
start_ = start
def start():
start_()
- async(lambda : utc.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : utc.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/uname b/examples/plugins/uname
index a87b9f2..c75cd1d 100644
--- a/examples/plugins/uname
+++ b/examples/plugins/uname
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = 30 * Clock.MINUTES)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/uptime b/examples/plugins/uptime
index e91c659..9929a00 100644
--- a/examples/plugins/uptime
+++ b/examples/plugins/uptime
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/users b/examples/plugins/users
index f6a97c0..a4bdbe7 100644
--- a/examples/plugins/users
+++ b/examples/plugins/users
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/vmstat b/examples/plugins/vmstat
index 68a01f3..bcb826d 100644
--- a/examples/plugins/vmstat
+++ b/examples/plugins/vmstat
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@ index = 0
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
text = '%s: %i' % (''.join(w[0].upper() + w[1:] for w in keys[index].split('_')), VMStat()[keys[index]])
diff --git a/examples/plugins/xdisplay b/examples/plugins/xdisplay
index 4f24525..ed0d1d7 100644
--- a/examples/plugins/xdisplay
+++ b/examples/plugins/xdisplay
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = 30 * Clock.MINUTES)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():
diff --git a/examples/plugins/xkb b/examples/plugins/xkb
index 886d1ab..129f18e 100644
--- a/examples/plugins/xkb
+++ b/examples/plugins/xkb
@@ -1,7 +1,7 @@
# -*- python -*-
'''
xpybar – xmobar replacement written in python
-Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2014, 2015, 2016, 2017, 2018 Mattias Andrée (maandree@kth.se)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ clock = Clock(sync_to = Clock.SECONDS / 4)
start_ = start
def start():
start_()
- async(lambda : clock.continuous_sync(lambda : bar.invalidate()))
+ xasync(lambda : clock.continuous_sync(lambda : bar.invalidate()))
def redraw():