--- trunk/dwm-status.pl 2008/09/16 18:10:06 89 +++ trunk/dwm-status.pl 2008/10/25 21:42:24 95 @@ -102,8 +102,10 @@ if ( $i % $acpi_every == 0 ) { if ( -e $sys_fs ) { - my $full = read_file( "$sys_fs/charge_full" ); - my $now = read_file( "$sys_fs/charge_now" ); + my $path = glob "$sys_fs/*_full"; + my $full = read_file( $path ); + $path =~ s/_full/_now/; + my $now = read_file( $path ); $bat = sprintf("%2d%% | ", $now * 100 / $full ); } elsif ( $proc_acpi_battery ) {