#NEWLINE# def dpms( self , i3s_output_list , i3s_config ) : #NEWLINE# #INDENT# '\n        Display a colorful state of DPMS.\n        ' #NEWLINE# self . run = ( system ( 'xset -q | grep -iq "DPMS is enabled"' ) == 0 ) #NEWLINE# return { #NEWLINE# #INDENT# 'full_text' : ( self . format_on if self . run else self . format_off ) , #NEWLINE# 'color' : ( ( i3s_output_list . color_on or i3s_config [ 'color_good' ] ) if self . run else ( self . color_off or i3s_config [ 'color_bad' ] ) ) , #NEWLINE# #UNINDENT# }