File: powerline-awesome.py

package info (click to toggle)
powerline 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,828 kB
  • sloc: python: 22,536; sh: 1,789; ansic: 131; makefile: 74; csh: 51
file content (20 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python3
# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)

import sys

from powerline.bindings.wm import DEFAULT_UPDATE_INTERVAL
from powerline.bindings.wm.awesome import run


def main():
	try:
		interval = float(sys.argv[1])
	except IndexError:
		interval = DEFAULT_UPDATE_INTERVAL
	run(interval=interval)


if __name__ == '__main__':
	main()