Change the function name to be more consistent with other files.
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# 2025-11-10 Hyperling
|
# 2025-11-10 Hyperling
|
||||||
|
|
||||||
function battery {
|
function battery-display {
|
||||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | grep -o "[0-9.%]*"
|
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | grep -o "[0-9.%]*"
|
||||||
}
|
}
|
||||||
alias show-battery="battery"
|
alias show-battery="battery-display"
|
||||||
alias battery-display="battery"
|
alias battery="battery-display"
|
||||||
|
|||||||
Reference in New Issue
Block a user