feat: add user script tracking

This commit is contained in:
2026-06-18 10:10:37 +02:00
parent e76fb8d1de
commit c0706de7f5
11 changed files with 184 additions and 0 deletions

9
scripts/batt-toggle Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
current=$(cat /sys/class/power_supply/BAT0/charge_control_end_threshold)
if [ "$current" -eq 80 ]; then
sudo cctk --PrimaryBattChargeCfg=Custom:95-100
notify-send "Batterie" "Charge standard (100%)"
else
sudo cctk --PrimaryBattChargeCfg=Custom:50-80
notify-send "Batterie" "Charge limitée à 80%"
fi