<commit_before>Assault for AwesomeWM
=====================

Installation
------------

1. Copy `assault.lua` into your Awesome config directory

2. Require Assault at the top of your `rc.lua`:

   ```lua
   local assault = require('assault')
   ```

3. Configure it: (see below for a full list of options)

   ```lua
   myassault = assault({
      critical_level = 0.15,
      critical_color = "#ff0000",
      charging_color = "#00ff00"
   })
   ```

4. Add it to a wibox:

   ```lua
   right_layout:add(myassault)
   ```

Configuration options
---------------------

```lua
assault({
   battery = "BAT0", -- battery ID to get data from
   width = 36, -- width of battery
   height = 15, -- height of battery
   bolt_width = 19, -- width of charging bolt
   bolt_height = 11, -- height of charging bolt
   stroke_width = 2, -- width of battery border
   peg_top = (calculated), -- distance from the top of the battery to the start of the peg
   peg_height = (height / 3), -- height of the peg
   peg_width = 2, -- width of the peg
   font = beautiful.font, -- font to use<commit_msg>[awesomewm] update README.md to have AC adapter setting<commit_after>Assault for AwesomeWM
=====================

Installation
------------

1. Copy `assault.lua` into your Awesome config directory

2. Require Assault at the top of your `rc.lua`:

   ```lua
   local assault = require('assault')
   ```

3. Configure it: (see below for a full list of options)

   ```lua
   myassault = assault({
      critical_level = 0.15,
      critical_color = "#ff0000",
      charging_color = "#00ff00"
   })
   ```

4. Add it to a wibox:

   ```lua
   right_layout:add(myassault)
   ```

Configuration options
---------------------

```lua
assault({
   battery = "BAT0", -- battery ID to get data from
   adapter = "AC", -- ID of the AC adapter to get data from
   width = 36, -- width of battery
   height = 15, -- height of battery
   bolt_width = 19, -- width of charging bolt
   bolt_height = 11, -- height of charging bolt
   stroke_width = 2, -- width of battery border
   peg_top = (calculated), -- distance from the top of the battery to the start of the peg
   peg_height = (height / 3), -- height of the peg
   peg_width = 2, -- width of the peg
   font = beautiful.font, -- font to use
{'fraction_non_alphanumeric': 0.15198237885462554, 'fraction_numerical': 0.02378854625550661, 'mean_word_length': 2.531881804043546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '69003', 'n_tokens_mistral': 736, 'n_tokens_neox': 680, 'n_words': 269}