polybar: network
This commit is contained in:
parent
e1bf1fa7c6
commit
758aacbec3
2 changed files with 31 additions and 1 deletions
30
polybar/conf.d/mod_network
Normal file
30
polybar/conf.d/mod_network
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
[modules/network_defaults]
|
||||||
|
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
|
||||||
|
format-connected-prefix = NW
|
||||||
|
format-disconnected-prefix = NW
|
||||||
|
|
||||||
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-disconnected-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
label-connected = %ifname% : %local_ip%
|
||||||
|
label-disconnected = %ifname%: not connected
|
||||||
|
|
||||||
|
[module/wired]
|
||||||
|
inherit = module/network_defaults
|
||||||
|
type = internal/network
|
||||||
|
interface = enp0s25
|
||||||
|
interface-type = wired
|
||||||
|
|
||||||
|
[module/wireless]
|
||||||
|
inherit = module/network_defaults
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp3s0
|
||||||
|
interface-type = wireless
|
||||||
|
label-connected = %ifname%@%essid% : %local_ip%
|
||||||
|
|
||||||
|
|
||||||
|
format-charging-prefix = "PWR "
|
||||||
|
format-charging-prefix-foreground =${colors.foreground-alt}
|
|
@ -25,7 +25,7 @@ margin-bottom = 5
|
||||||
inherit = bar/defaults
|
inherit = bar/defaults
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = dunst
|
modules-center = dunst
|
||||||
modules-right = backlight cpu system-cpu-loadavg memory filesystem battery
|
modules-right = wired wireless backlight cpu system-cpu-loadavg memory filesystem battery
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue