use new single system_stats script
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
1d7ccfd67d
commit
67ee9f1520
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue