install -m 755 -d $(DESTDIR)/etc
install -m 755 -d $(DESTDIR)/usr/share/man/man1
install -m 755 i3status $(DESTDIR)/usr/bin/i3status
+ # Allow network configuration for getting the link speed
+ which setcap && setcap cap_net_admin=ep $(DESTDIR)/usr/bin/i3status
install -m 644 i3status.conf $(DESTDIR)/etc/i3status.conf
install -m 644 man/i3status.1 $(DESTDIR)/usr/share/man/man1
}
ethernet eth0 {
- # if you use %speed, i3status requires root privileges
+ # if you use %speed, i3status requires the cap_net_admin capability
format = "E: %ip (%speed)"
}
=== Ethernet
Gets the IP address and (if possible) the link speed of the given ethernet
-interface. Getting the link speed requires root privileges.
+interface. Getting the link speed requires the cap_net_admin capability. Set
+it using +setcap cap_net_admin=ep $(which i3status)+.
*Example order*: +ethernet eth0+