Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
eb0ffe41
Commit
eb0ffe41
authored
Sep 04, 2019
by
Jay Ta'ala
Browse files
Added path_exists check for VPN (check if "/sys/class/net/tun0/dev_id" exists).
parent
1fbb996d
Changes
1
Hide whitespace changes
Inline
Side-by-side
i3status/.i3status.conf.py3status
View file @
eb0ffe41
...
@@ -23,10 +23,11 @@ order += "ethernet _first_"
...
@@ -23,10 +23,11 @@ order += "ethernet _first_"
order += "cpu_usage"
order += "cpu_usage"
#order += "disk /"
#order += "disk /"
order += "diskdata"
order += "diskdata"
order += "timer"
#order += "battery all"
#order += "battery all"
order += "battery_level"
order += "battery_level"
# order += "load"
# order += "load"
order += "
timer
"
order += "
path_exists VPN
"
order += "external_script"
order += "external_script"
order += "tztime local"
order += "tztime local"
# order += "ipv6"
# order += "ipv6"
...
@@ -86,6 +87,7 @@ net_rate {
...
@@ -86,6 +87,7 @@ net_rate {
format_value = "[\?min_length=10 {value:.1f} {unit}]"
format_value = "[\?min_length=10 {value:.1f} {unit}]"
si_units = "True"
si_units = "True"
format = "{down}⇣ {up}⇡"
format = "{down}⇣ {up}⇡"
interfaces_blacklist = "lo"
}
}
battery all {
battery all {
...
@@ -121,3 +123,10 @@ tztime local {
...
@@ -121,3 +123,10 @@ tztime local {
# format = "%Y-%m-%d %H:%M:%S"
# format = "%Y-%m-%d %H:%M:%S"
format = " %d/%m %H:%M:%S"
format = " %d/%m %H:%M:%S"
}
}
path_exists VPN {
format = "%title"
format_down = ""
color_good = "#00ff00"
path = "/sys/class/net/tun0/dev_id"
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment