use new single system_stats script

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2021-06-06 22:16:04 +02:00
parent 1d7ccfd67d
commit 67ee9f1520
4 changed files with 39 additions and 3 deletions

View File

@ -22,4 +22,4 @@ MAP FN+X TO COMMAND brightness up
MAP FN+B TO COMMAND brightness down
MAP FN+L TO KEY KEY_V
MAP FN+R TO KEY KEY_O
MAP FN+L+R TO COMMAND display_notif_system_stats
MAP FN+L+R TO COMMAND system_stats toggle

View File

@ -1,7 +1,25 @@
#!/bin/sh
# Uncomment the following line to get debug info
#set -x
SELF="$(basename ${0})"
UPDATE_PERIOD=2 #seconds
usage() {
>2& echo "Usage: ${SELF} [toggle]"
exit 1
}
# Check number of arguments
if [ ${#} -eq 1 -a "${1}" = "toggle" ]; then
notif set 0 " Getting system stats..."
killall -s USR1 "${SELF}"
exit 0
elif [ ${#} -ne 0 ]; then
usage
fi
notif_dirty=0
perform=0

View File

@ -15,11 +15,11 @@ MAP B TO KEY KEY_B
MAP X TO KEY KEY_X
MAP Y TO KEY KEY_Y
MAP MENU TO KEY KEY_Q
MAP FN+UP TO COMMAND snaphsot
MAP FN+UP TO COMMAND snapshot
MAP FN+A TO COMMAND volume up
MAP FN+Y TO COMMAND volume down
MAP FN+X TO COMMAND brightness up
MAP FN+B TO COMMAND brightness down
MAP FN+L TO KEY KEY_V
MAP FN+R TO KEY KEY_O
MAP FN+L+R TO COMMAND display_notif_system_stats
MAP FN+L+R TO COMMAND system_stats toggle

View File

@ -1,7 +1,25 @@
#!/bin/sh
# Uncomment the following line to get debug info
#set -x
SELF="$(basename ${0})"
UPDATE_PERIOD=2 #seconds
usage() {
>2& echo "Usage: ${SELF} [toggle]"
exit 1
}
# Check number of arguments
if [ ${#} -eq 1 -a "${1}" = "toggle" ]; then
notif set 0 " Getting system stats..."
killall -s USR1 "${SELF}"
exit 0
elif [ ${#} -ne 0 ]; then
usage
fi
notif_dirty=0
perform=0