add environment variable for docker

This commit is contained in:
JesseBot 2023-05-19 23:20:07 +02:00
parent eebe5e405f
commit 92539755aa
No known key found for this signature in database
GPG key ID: C01D207CE04D55D9
2 changed files with 15 additions and 7 deletions

View file

@ -7,7 +7,7 @@
"information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] },
"warning:regular": { "fg": "white", "bg": "brightred", "attrs": ["bold"] },
"critical:failure": { "fg": "white", "bg": "darkestred", "attrs": [] },
"critical:success": { "fg": "white", "bg": "darkestgreen", "attrs": [] },
"critical:success": { "fg": "brightgreen", "bg": "gray2", "attrs": [] },
"background": { "fg": "gray2", "bg": "gray2", "attrs": [] },
"background:divider": { "fg": "gray2", "bg": "gray2", "attrs": [] },
"session": { "fg": "black", "bg": "gray10", "attrs": ["bold"] },
@ -16,11 +16,11 @@
"time:divider": { "fg": "cornflowerblue", "bg": "gray3", "attrs": [] },
"email_alert": { "fg": "brightorange", "bg": "gray3", "attrs": [] },
"email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attrs": ["bold"] },
"hostname": { "fg": "cornflowerblue", "bg": "gray2", "attrs": [] },
"hostname": { "fg": "cornflowerblue", "bg": "gray2", "attrs": [] },
"weather": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"weather_temp_gradient": { "fg": "blue_red", "bg": "gray0", "attrs": [] },
"weather_condition_hot": { "fg": "khaki1", "bg": "gray0", "attrs": [] },
"weather_condition_snowy": { "fg": "skyblue1", "bg": "gray0", "attrs": [] },
"weather_condition_snowy": { "fg": "skyblue1", "bg": "gray2", "attrs": [] },
"weather_condition_rainy": { "fg": "skyblue1", "bg": "gray0", "attrs": [] },
"uptime": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"external_ip": { "fg": "gray8", "bg": "gray0", "attrs": [] },
@ -30,10 +30,10 @@
"network_load_sent_gradient": "network_load_gradient",
"network_load_recv_gradient": "network_load_gradient",
"network_load:divider": "background:divider",
"system_load": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"system_load": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"system_load_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] },
"environment": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"cpu_load_percent": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"environment_variable": { "fg": "white", "bg": "gray1", "attrs": [] },
"cpu_load_percent": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"cpu_load_percent_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] },
"battery": { "fg": "brightorange", "bg": "gray2", "attrs": [] },
"battery_online": { "fg": "green", "bg": "gray2", "attrs": [] },

View file

@ -1,6 +1,15 @@
{ "segments": {
"above": [{
"left": [
{
"function": "powerline.segments.common.env.environment",
"name": "docker_enabled",
"draw_soft_divider": false,
"draw_hard_divider": true,
"args": {
"variable": "DOCKER_CONTAINER"
}
},
{
"function": "powerline.segments.common.net.hostname"
},
@ -69,7 +78,6 @@
"use_ssl": false,
"interval": 60
}
},
{
"function": "powerline.segments.common.bat.battery",