From 41a83592a90c842359b1e4b5b412855e23037275 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Wed, 20 Nov 2024 22:51:37 +0100 Subject: [PATCH] fix(battery): Use correct battery name ; BAT1 --- .profile | 2 +- bin/battery | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.profile b/.profile index fbae8a8..41286cb 100644 --- a/.profile +++ b/.profile @@ -15,7 +15,7 @@ for term in kitty termite qterminal urxvt rxvt-unicode sakura gnome-terminal; do done # Pour la batterie des ordinateurs portables (~/bin/battery) -export BATPATH="/sys/class/power_supply/BAT0" +export BATPATH="/sys/class/power_supply/BAT1" # Permit DBUS to be launched if [ "$0" = "/usr/sbin/lightdm-session" -a "$DESKTOP_SESSION" = "i3" ]; then diff --git a/bin/battery b/bin/battery index 060280c..8cf9c9a 100755 --- a/bin/battery +++ b/bin/battery @@ -1,4 +1,8 @@ #!/bin/sh +# +# battery +# +# Penser à modifier la variable dans ~/.profile HEART_FULL=♥ HEART_EMPTY=♡