projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe34bed
)
[rc/i3status] some tweaks
author
Amin Bandali
<bandali@gnu.org>
Fri, 5 Apr 2019 23:01:36 +0000
(19:01 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Fri, 5 Apr 2019 23:24:37 +0000
(19:24 -0400)
rc.org
patch
|
blob
|
blame
|
history
diff --git
a/rc.org
b/rc.org
index
6a8d7e8
..
f4b059e
100644
(file)
--- a/
rc.org
+++ b/
rc.org
@@
-713,7
+713,7
@@
order += "disk /data"
order += "ethernet _first_"
order += "battery 0"
order += "volume master"
order += "ethernet _first_"
order += "battery 0"
order += "volume master"
-order += "load"
+
#
order += "load"
order += "tztime local"
wireless _first_ {
order += "tztime local"
wireless _first_ {
@@
-723,12
+723,13
@@
wireless _first_ {
ethernet _first_ {
# if you use %speed, i3status requires root privileges
ethernet _first_ {
# if you use %speed, i3status requires root privileges
- format_up = "E: %ip (%speed)"
+ # format_up = "E: %ip (%speed)"
+ format_up = "E: %ip"
format_down = "E: down"
}
battery 0 {
format_down = "E: down"
}
battery 0 {
- format = "%status %percentage %remaining
(%consumption)
"
+ format = "%status %percentage %remaining
%consumption
"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = "10"
threshold_type = "percentage"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = "10"
threshold_type = "percentage"
@@
-738,7
+739,7
@@
battery 0 {
}
tztime local {
}
tztime local {
- format = "%
-I:%M%P %a %b %d
"
+ format = "%
A %Y-%m-%d %I:%M %p
"
}
volume master {
}
volume master {
@@
-4640,7
+4641,7
@@
if __name__ == '__main__':
if get_nosleep():
j = json.loads(line)
# insert information into the start of the json, but could be anywhere
if get_nosleep():
j = json.loads(line)
# insert information into the start of the json, but could be anywhere
- j.insert(0, {'full_text' : '
🖵
', 'name' : 'nosleep'})
+ j.insert(0, {'full_text' : '
•
', 'name' : 'nosleep'})
# and echo back new encoded json
print_line(prefix+json.dumps(j))
else:
# and echo back new encoded json
print_line(prefix+json.dumps(j))
else: