# ABOUTME: udev rule granting wheel group write access to battery charge threshold. # ABOUTME: Enables unprivileged toggling of conservation mode via moonarch-batsaver-toggle. SUBSYSTEM=="power_supply", ATTR{type}=="Battery", RUN+="/bin/sh -c 'chgrp wheel /sys%p/charge_control_end_threshold 2>/dev/null; chmod g+w /sys%p/charge_control_end_threshold 2>/dev/null'"