home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show age of last Signal message
[khatus.git]
/
bin
/
khatus_show
diff --git
a/bin/khatus_show
b/bin/khatus_show
index
19004be
..
a5fbae8
100755
(executable)
--- a/
bin/khatus_show
+++ b/
bin/khatus_show
@@
-44,10
+44,9
@@
disk=$(
function round(n) {return int(n + 0.5)}
$1 == "/dev/mapper/kubuntu--vg-root" {
function round(n) {return int(n + 0.5)}
$1 == "/dev/mapper/kubuntu--vg-root" {
-
total = $2
;
-
used = $3
;
+
curr = $5
;
+
sub("%$", "", curr)
;
file = "/home/siraaj/var/run/status/disk_space_used_percentage";
file = "/home/siraaj/var/run/status/disk_space_used_percentage";
- curr = round(used / total * 100);
getline prev < file;
print curr > file;
if (curr > prev) {
getline prev < file;
print curr > file;
if (curr > prev) {
@@
-256,15
+255,31
@@
signal_last_msg_age=$(
echo \
"\
E$energy\
echo \
"\
E$energy\
+ \
+ \
M$memory\
M$memory\
+ \
+ \
D$disk\
D$disk\
+ \
+ \
C=[$cpu ${temp}°C ${fan}rpm]\
C=[$cpu ${temp}°C ${fan}rpm]\
- |\
+ \
+ \
S=$screen_brightness\
S=$screen_brightness\
+ \
+ \
V=$volume\
V=$volume\
+ \
+ \
B:$bluetooth_power\
B:$bluetooth_power\
+ \
+ \
W:$wifi\
W:$wifi\
- |\
+ \
+ \
+ $signal_last_msg_age\
+ \
$weather\
\
$datetime \
$weather\
\
$datetime \
This page took
0.025716 seconds
and
4
git commands to generate.