diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-06-03 21:59:19 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-06-03 21:59:19 +0200 |
commit | 3430f835adb2a015c6b5eb66eb8fdf118d760c42 (patch) | |
tree | 38851fa54a5f467011d383352a13c546fa3bf35d | |
parent | 093217047e2d514d4a8bbd0ce47457f736766112 (diff) | |
download | scripts-3430f835adb2a015c6b5eb66eb8fdf118d760c42.tar.gz scripts-3430f835adb2a015c6b5eb66eb8fdf118d760c42.tar.bz2 scripts-3430f835adb2a015c6b5eb66eb8fdf118d760c42.zip |
update
-rwxr-xr-x | pw-battery | 7 | ||||
-rwxr-xr-x | pw-systemstats | 2 |
2 files changed, 4 insertions, 5 deletions
@@ -4,14 +4,15 @@ notify() { dunstify \ -i battery-good-symbolic \ - -t 4000 \ + -t 10000 \ -h string:x-canonical-private-synchronous:battery \ "Battery" "$1" } case "$BLOCK_BUTTON" in - 1) notify "$(acpi -b | awk -F ': |, ' '{printf "%s\n%s\n", $2, $4}')" ;; - 3) ghostty -e "$EDITOR" "$0" ;; + # ugly must do better + 1) notify "$(inxi -B --extra -c 0 -y 1 | sed -e 's/^[ \t]*//')" ;; + 3) notify "$(acpi -b | awk -F ': |, ' '{printf "%s\n%s\n", $2, $4}')" ;; esac # Loop through all attached batteries. diff --git a/pw-systemstats b/pw-systemstats index 67ee45c..521b3a3 100755 --- a/pw-systemstats +++ b/pw-systemstats @@ -32,6 +32,4 @@ echo " $FAN_SPEED $CPU_TEMP°C" # Clicking on bar case $BLOCK_BUTTON in 1) notify-send "$(sensors)";; - 2) notify-send "button 2 clicked";; - 3) notify-send "button 3 clicked";; esac |