Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr AttributeLoad NameLoad attr Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict Assign NameStore ListLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str NameLoad Str TupleLoad Str NameLoad Str TupleLoad Str NameLoad Str TupleLoad Str Num Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body If CompareEq NameLoad Str body Return Num Return NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Slice If Call NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Dict Str Str Str Str Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str NameLoad Str TupleLoad Str Num Str TupleLoad Str Str Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return AttributeLoad NameLoad attr TryExcept body If BoolOpAnd AttributeLoad NameLoad attr CompareGtE BinOpMult BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Num AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpSub SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If BoolOpAnd CompareGt SubscriptLoad NameLoad Index Str Num CompareEq SubscriptLoad NameLoad Index Str NameLoad CompareNotEq Call NameLoad BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Num body Return BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad BinOpMult BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Num Str orelse If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Num CompareEq SubscriptLoad NameLoad Index Str NameLoad body Return Str orelse Return Str handlers ExceptHandler type NameLoad body Assign NameStore Num If CompareGtE NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Call NameLoad BinOpMult NameLoad Num Num orelse Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str NameLoad CompareLt NameLoad AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str Call NameLoad Str TupleLoad Str Dict Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad ListComp TupleLoad NameLoad Call AttributeLoad Str attr NameLoad comprehension NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str orelse Assign NameStore BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareLt NameLoad Num body AugAssignAdd NameStore Str orelse If CompareLt NameLoad Num body AugAssignAdd NameStore Str orelse If CompareLt NameLoad Num body AugAssignAdd NameStore Str orelse AugAssignAdd NameStore Str If CompareEq SubscriptLoad NameLoad Index Str NameLoad body AugAssignAdd NameStore Str orelse If CompareEq SubscriptLoad NameLoad Index Str NameLoad body AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpDiv NameLoad NameLoad If CompareGt NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad NameLoad BinOpMult AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list decorator_list
N/A __future__ division N/A cairocffi N/A os libqtile bar libqtile.log_utils logger N/A base N/A BAT_DIR /sys/class/power_supply N/A CHARGED Full N/A CHARGING Charging N/A DISCHARGING Discharging N/A UNKNOWN Unknown N/A BATTERY_INFO_FILES N/A energy_now_file energy_full_file power_now_file status_file N/A energy_now charge_now N/A energy_full charge_full N/A power_now current_now N/A status default_icon_path N/A N/A N/A N/A N/A root N/A N/A N/A os sep join N/A N/A N/A N/A N/A N/A os path abspath __file__ split N/A os sep N/A -2 N/A N/A N/A N/A os path join root resources battery-icons N/A _Battery N/A N/A base _TextBox N/A N/A Base battery class N/A filenames N/A N/A defaults N/A N/A battery_name BAT0 ACPI name of a battery, usually BAT0 N/A status_file status Name of status file in /sys/class/power_supply/battery_name N/A energy_now_file None Name of file with the current energy in /sys/class/power_supply/battery_name N/A energy_full_file None Name of file with the maximum energy in /sys/class/power_supply/battery_name N/A power_now_file None Name of file with the current power draw in /sys/class/power_supply/battery_name N/A update_delay 60 The delay in seconds between updates __init__ N/A N/A self N/A config N/A N/A N/A N/A N/A base _TextBox __init__ self BAT N/A bar CALCULATED config N/A N/A N/A self add_defaults N/A _Battery defaults N/A _load_file N/A N/A self name N/A N/A N/A N/A N/A path N/A N/A N/A os path join BAT_DIR N/A self battery_name name N/A N/A open path r f N/A N/A N/A N/A N/A N/A f read strip N/A N/A N/A IOError N/A N/A N/A name current_now N/A N/A 0 N/A False N/A N/A Exception N/A N/A N/A N/A logger exception N/A Failed to get %s name N/A _get_param N/A N/A self name N/A N/A N/A N/A N/A name N/A self filenames N/A N/A self filenames N/A name N/A N/A N/A N/A self _load_file N/A N/A self filenames N/A name N/A N/A N/A name N/A self filenames N/A N/A file_list N/A N/A N/A BATTERY_INFO_FILES get name N/A N/A N/A N/A getattr self name None N/A N/A N/A N/A file_list insert 0 N/A getattr self name N/A file file_list N/A N/A value N/A N/A self _load_file file N/A N/A N/A value False N/A value None N/A N/A N/A N/A self filenames N/A name file N/A value N/A N/A N/A self filenames N/A name None N/A None N/A _get_info N/A N/A self N/A N/A N/A N/A N/A info N/A stat now full power N/A N/A self _get_param status_file N/A float N/A N/A self _get_param energy_now_file N/A float N/A N/A self _get_param energy_full_file N/A float N/A N/A self _get_param power_now_file N/A N/A N/A TypeError N/A N/A False N/A info N/A N/A Battery N/A _Battery N/A N/A A simple but flexible text-based battery widget N/A orientations N/A base ORIENTATION_HORIZONTAL N/A defaults N/A N/A charge_char ^ Character to indicate the battery is charging N/A discharge_char V Character to indicate the battery is discharging N/A error_message Error Error message if something is wrong N/A format {char} {percent:2.0%} {hour:d}:{min:02d} Display format N/A hide_threshold None Hide the text when there is enough energy N/A low_percentage 0.1 Indicates when to use the low_foreground color 0 < x < 1 N/A low_foreground FF0000 Font color on low battery __init__ N/A N/A self N/A config N/A N/A N/A N/A _Battery __init__ self config N/A N/A N/A self add_defaults N/A Battery defaults N/A timer_setup N/A N/A self N/A N/A N/A update_delay N/A N/A self update N/A N/A N/A update_delay None N/A N/A self update_delay None N/A N/A N/A N/A self timeout_add N/A self update_delay N/A self timer_setup N/A N/A update_delay N/A N/A N/A N/A self timeout_add update_delay N/A self timer_setup N/A _configure N/A N/A self qtile bar N/A N/A N/A N/A self configured N/A N/A N/A N/A self update N/A N/A N/A _Battery _configure self qtile bar N/A _get_text N/A N/A self N/A N/A N/A info N/A N/A self _get_info N/A N/A info False N/A N/A N/A self error_message N/A N/A N/A N/A N/A self hide_threshold N/A N/A N/A N/A info N/A now N/A info N/A full 100.0 N/A self hide_threshold N/A N/A info N/A stat CHARGED N/A N/A N/A N/A N/A N/A info N/A stat DISCHARGING N/A N/A char N/A self discharge_char N/A time N/A N/A info N/A now N/A info N/A power N/A N/A N/A N/A info N/A stat CHARGING N/A N/A char N/A self charge_char N/A time N/A N/A N/A info N/A full N/A info N/A now N/A info N/A power N/A N/A N/A N/A N/A info N/A now 0 N/A N/A info N/A stat UNKNOWN N/A N/A int N/A N/A info N/A now N/A info N/A full 1 N/A N/A N/A N/A ~ N/A str N/A int N/A N/A N/A info N/A now N/A info N/A full 100 % N/A N/A N/A N/A N/A info N/A now 0 N/A N/A info N/A stat UNKNOWN N/A N/A Empty N/A N/A Full N/A N/A N/A ZeroDivisionError N/A N/A time -1 N/A N/A time 0 N/A N/A hour N/A int time N/A min N/A N/A int N/A time 60 60 N/A N/A hour -1 N/A min -1 N/A percent N/A N/A info N/A now N/A info N/A full N/A N/A N/A N/A info N/A stat DISCHARGING N/A percent N/A self low_percentage N/A N/A N/A N/A self layout colour N/A self low_foreground N/A N/A N/A N/A self layout colour N/A self foreground N/A N/A N/A N/A self format format char char percent percent hour hour min min N/A update N/A N/A self N/A N/A N/A ntext N/A N/A self _get_text N/A N/A ntext N/A self text N/A N/A N/A self text ntext N/A N/A N/A N/A self bar draw N/A N/A BatteryIcon N/A _Battery N/A N/A Battery life indicator widget. N/A orientations N/A base ORIENTATION_HORIZONTAL N/A defaults N/A N/A theme_path N/A default_icon_path Path of the icons N/A custom_icons N/A dict containing key->filename icon map __init__ N/A N/A self N/A config N/A N/A N/A N/A _Battery __init__ self config N/A N/A N/A self add_defaults N/A BatteryIcon defaults N/A N/A self theme_path N/A N/A N/A self length_type N/A bar STATIC N/A N/A self length 0 N/A N/A self surfaces N/A N/A N/A self current_icon battery-missing N/A N/A self icons N/A dict N/A N/A x N/A N/A {0}.png format x N/A x N/A battery-missing battery-caution battery-low battery-good battery-full battery-caution-charging battery-low-charging battery-good-charging battery-full-charging battery-full-charged N/A N/A N/A N/A self icons update N/A self custom_icons N/A timer_setup N/A N/A self N/A N/A N/A N/A N/A self update N/A N/A N/A self timeout_add N/A self update_delay N/A self timer_setup N/A _configure N/A N/A self qtile bar N/A N/A N/A N/A N/A N/A base _TextBox _configure self qtile bar N/A N/A N/A self setup_images N/A _get_icon_key N/A N/A self N/A N/A N/A key battery N/A info N/A N/A self _get_info N/A N/A N/A info False N/A N/A N/A info get full N/A N/A key -missing N/A N/A percent N/A N/A info N/A now N/A info N/A full N/A N/A percent 0.2 N/A N/A key -caution N/A N/A N/A percent 0.4 N/A N/A key -low N/A N/A N/A percent 0.8 N/A N/A key -good N/A N/A key -full N/A N/A N/A info N/A stat CHARGING N/A N/A key -charging N/A N/A N/A N/A info N/A stat CHARGED N/A N/A key -charged N/A key N/A update N/A N/A self N/A N/A N/A icon N/A N/A self _get_icon_key N/A N/A icon N/A self current_icon N/A N/A N/A self current_icon icon N/A N/A N/A self draw N/A draw N/A N/A self N/A N/A N/A N/A self theme_path N/A N/A N/A N/A N/A self drawer clear N/A N/A self background N/A N/A self bar background N/A N/A N/A N/A N/A self drawer ctx set_source N/A N/A self surfaces N/A N/A self current_icon N/A N/A N/A N/A N/A self drawer ctx paint N/A N/A N/A N/A self drawer draw offsetx N/A self offset width N/A self length N/A N/A N/A self text N/A N/A self current_icon N/A 8 N/A N/A N/A N/A base _TextBox draw self N/A setup_images N/A N/A self N/A N/A N/A N/A key name N/A N/A N/A self icons items N/A N/A N/A N/A path N/A N/A N/A os path join N/A self theme_path name N/A img N/A N/A N/A cairocffi ImageSurface create_from_png path N/A N/A N/A N/A cairocffi Error N/A N/A N/A self theme_path None N/A N/A N/A logger warning Battery Icon switching to text mode N/A N/A input_width N/A N/A img get_width N/A input_height N/A N/A img get_height N/A sp N/A input_height N/A N/A N/A self bar height 1 N/A width N/A input_width sp N/A N/A width N/A self length N/A N/A N/A self length N/A N/A int width N/A N/A self actual_padding 2 N/A imgpat N/A N/A cairocffi SurfacePattern img N/A scaler N/A N/A cairocffi Matrix N/A N/A N/A scaler scale sp sp N/A N/A N/A scaler translate N/A N/A self actual_padding -1 0 N/A N/A N/A imgpat set_matrix scaler N/A N/A N/A imgpat set_filter N/A cairocffi FILTER_BEST N/A N/A N/A self surfaces N/A key imgpat N/A N/A