- Enable programs.uwsm for session management. - Improve SDDM theme session detection logic to be case-insensitive and more robust. - Perform a global cleanup of 'Nnomarchy' and 'org.nnomarchy' typos across all scripts and configurations.
12 lines
278 B
Bash
Executable File
12 lines
278 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Returns the battery full capacity in Wh (rounded to whole number).
|
|
# Used by nomarchy-battery-status for displaying battery capacity.
|
|
|
|
battery_info=$(upower -i $(upower -e | grep BAT))
|
|
|
|
echo "$battery_info" | awk '/energy-full:/ {
|
|
printf "%d", $2
|
|
exit
|
|
}'
|