from i3pystatus import Status
status = Status(standalone=True)


status.register("clock",
	format="%a %-d %b %X KW%V",
	on_leftclick= ["/usr/local/bin/orage_toggle"],
)


status.register("network",
	interface="enp0s31f6",
	format_up="{v4cidr}",
	format_down="enp0s31f6 down",
	color_up="#FFFFFF",
	color_down="#A3A3A3",
)


status.register("network",
	interface="wlp2s0",
	format_up="{essid} {quality:3.0f}% ({v4cidr})",
	format_down="WLAN aus",
	color_up="#FFFFFF",
	color_down="#A3A3A3",
)


status.register("pulseaudio",
	format="{volume}",
	format_muted="{volume}",
)


status.register("battery",
	format="{status} {percentage:.0f}",
	full_color="#FFFFFF",
	color="#FFFFFF",
	charging_color="#FFFFFF",
	alert=True,
	alert_percentage=7,
	status={
		"DIS": "",
		"CHR": "",
		"FULL": "",
	},
)


#status.register('weather',
#        backend=weathercom.Weathercom(
#            location_code='USAZ0247:1:US',
#	    units='imperial',
#            update_error='<span color="#ff0000">!</span>',
#            ),
#	format="S: {current_temp}",
#	colorize=False,
#	on_leftclick= ["google-chrome-stable --app=http://www.weather.com/de-DE/wetter/heute/l/GMXX0446"],
#)
#
#
#status.register("weather",
#        location_code="USAZ0247:1:US",
#	format="D: {current_temp}",
#	colorize=False,
#	units="metric",
#	on_leftclick= ["google-chrome-stable --app=http://www.yr.no/place/Germany/North_Rhine-Westphalia/D%C3%BCsseldorf/"],
#)


status.run()

@@ -517,25 +517,32 @@
 audio%22,%0A
-%09
+        
 format=%22
 %7Bvolume%7D
@@ -533,24 +533,29 @@
 format=%22
+VOL: 
 %7Bvolume%7D
 %22,%0A%09form
@@ -546,16 +546,17 @@
 %7Bvolume%7D
+%25
 %22,%0A%09form
@@ -607,25 +607,32 @@
 ttery%22,%0A
-%09
+        
 format=%22
 %7Bstatus%7D
@@ -627,16 +627,21 @@
 at=%22
+BAT: 
 %7Bstatus%7D
  %7Bpe
@@ -636,17 +636,16 @@
 %7Bstatus%7D
- 
 %7Bpercent
@@ -652,16 +652,17 @@
 age:.0f%7D
+%25
 %22,%0A%09full

Update battery and volume format for i3