diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-21 20:31:59 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-21 20:31:59 (EDT) |
commit | e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb (patch) | |
tree | ed81ac6411f5f964e56691bdf5c18a45bdd6fd7d /bin | |
parent | e17c5fd38073afb135e3a992498d63bc0ffb181f (diff) | |
download | fluxbox-e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb.zip fluxbox-e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb.tar.gz fluxbox-e0644451a0e7c1ad5eb6fb1905837ba2a3ea91cb.tar.bz2 |
Move panel applet scripts to lib/panel/
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/batmon | 44 | ||||
-rwxr-xr-x | bin/volmon | 10 |
2 files changed, 0 insertions, 54 deletions
diff --git a/bin/batmon b/bin/batmon deleted file mode 100755 index fec22b7..0000000 --- a/bin/batmon +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -bat() -{ - eval "$(cat /sys/class/power_supply/BAT0/uevent | grep -E \ - '^POWER_SUPPLY_(STATUS|ENERGY_)')" - percentage=$(printf 'scale = 0; %d * 100 / %d;\n' \ - ${POWER_SUPPLY_ENERGY_NOW} ${POWER_SUPPLY_ENERGY_FULL} | bc) - case "${POWER_SUPPLY_STATUS}" in - 'Unknown') - status='?' - ;; - 'Charging') - status='⚡' - ;; - 'Discharging') - status='🔋' - ;; - 'Not charging') - status='!' - ;; - 'Full') - status='🔌' - ;; - esac - printf '%s%3d%%\n' "${status}" ${percentage} -} - -ac() -{ - status='🔌' - printf '%s\n' "${status}" -} - -main() -{ - if [ -e /sys/class/power_supply/BAT0/uevent ]; then - bat - else - ac - fi -} - -main "${@}" diff --git a/bin/volmon b/bin/volmon deleted file mode 100755 index 0b1b87e..0000000 --- a/bin/volmon +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -main() -{ - vol="$(amixer get Master,0 | \ - sed -n 's/^.*Playback [0-9]* \[\([0-9]*\)%\].*$/\1/p')" - printf '🔉%3d%%\n' ${vol} -} - -main "${@}" |