diff --git a/README.md b/README.md index 97283f9..85ddc91 100644 --- a/README.md +++ b/README.md @@ -258,8 +258,10 @@ Available formatters: * {name} same as setting * {v4} IPv4 address * {v4mask} subnet mask +* {v4cidr} IPv4 address in cidr notation (i.e. 192.168.2.204/24) * {v6} IPv6 address * {v6mask} subnet mask +* {v6cidr} IPv6 address in cidr notation * {mac} MAC of interface Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings. diff --git a/i3pystatus/network.py b/i3pystatus/network.py index 0673a58..da64001 100644 --- a/i3pystatus/network.py +++ b/i3pystatus/network.py @@ -48,6 +48,7 @@ class Network(IntervalModule): * {name} same as setting * {v4} IPv4 address * {v4mask} subnet mask + * {v4cidr} IPv4 address in cidr notation (i.e. 192.168.2.204/24) * {v6} IPv6 address * {v6mask} subnet mask * {v6cidr} IPv6 address in cidr notation