<commit_before># Extremely hacky way to remap scroll touch to middle click

The Arc Touch acts not just as a mouse, but also as a keyboard. The
touch-sensitive area has a top and bottom region that, by default, send "page
up" and "page down" events.

1. Ensure your computer meets the correct requirements:

   - Add yourself to the `wheel` group. You're probably already there, for
     sudo-related reasons. This script allows those who are root-capable to
     read devices, which is needed for `evrouter`. (Choosing the `wheel`
     group wasn't just for irony.)

   - Install [`evrouter`](http://www.bedroomlan.org/projects/evrouter). Sadly,
     there's no package of this for most distros, so you'll probably have to
     compile it if you're not on Debian. (The page claims there are RPMs, but
     I haven't found them...)

2. Copy the `arc-middle.sh` script to someplace safe, like your local `bin` directory.

   ```
   mkdir -p ~/bin/ # If you don't have a local ~/bin/ dir already
   cp arc-middle.sh ~/bin/
   ```

3. Copy the `99-arc-mouse.hwdb` to the udev hwdb.d directory:

   ```
   cp 99-arc-mouse.hwdb /usr/lib/udev/hdwb.d/
   ```

4. Run `udevadm --update`

5. Unplug and replug your USB pairing device.

6. Run `~/bin/arc-middle.sh`.

   - If you have `~/bin/` in your path, you can just run `arc-middle.sh` whenever you reconnect your mouse.

  - If you don't have `~/bin/` in your path, then add it like so:

    ```
    export PATH=$HOME/bin:$PATH
    ```

Afterward, since steps 1 - 4 are for the initial setup, all you'll have to do
from now on is to run step 6, after plugging in your USB adapter.

---
<commit_msg>specified .bashrc/.zshrc<commit_after># Extremely hacky way to remap scroll touch to middle click

The Arc Touch acts not just as a mouse, but also as a keyboard. The
touch-sensitive area has a top and bottom region that, by default, send "page
up" and "page down" events.

1. Ensure your computer meets the correct requirements:

   - Add yourself to the `wheel` group. You're probably already there, for
     sudo-related reasons. This script allows those who are root-capable to
     read devices, which is needed for `evrouter`. (Choosing the `wheel`
     group wasn't just for irony.)

   - Install [`evrouter`](http://www.bedroomlan.org/projects/evrouter). Sadly,
     there's no package of this for most distros, so you'll probably have to
     compile it if you're not on Debian. (The page claims there are RPMs, but
     I haven't found them...)

2. Copy the `arc-middle.sh` script to someplace safe, like your local `bin` directory.

   ```
   mkdir -p ~/bin/ # If you don't have a local ~/bin/ dir already
   cp arc-middle.sh ~/bin/
   ```

3. Copy the `99-arc-mouse.hwdb` to the udev hwdb.d directory:

   ```
   cp 99-arc-mouse.hwdb /usr/lib/udev/hdwb.d/
   ```

4. Run `udevadm --update`

5. Unplug and replug your USB pairing device.

6. Run `~/bin/arc-middle.sh`.

   - If you have `~/bin/` in your path, you can just run `arc-middle.sh` whenever you reconnect your mouse.

  - If you don't have `~/bin/` in your path, then add this line to your `~/.bashrc` or `~/.zshrc` file:

    ```
    export PATH=$HOME/bin:$PATH
    ```

Afterward, since steps 1 - 4 are for the initial setup, all you'll have to do
from now on is to run step 6, after plugging in your USB adapter.

---

{'fraction_non_alphanumeric': 0.10698231944860653, 'fraction_numerical': 0.007791429427629608, 'mean_word_length': 2.936320754716981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4588685', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1033, 'n_words': 482}