Added ethernet option to polybar

This commit is contained in:
Vlad Doster 2020-02-20 12:10:13 -05:00
parent 5f51ad1d60
commit 296ca97a05

View File

@ -7,7 +7,7 @@ blue = #83a598
darkyellow = #d79921 darkyellow = #d79921
foreground = #ebdbb2 foreground = #ebdbb2
gray = #928374 gray = #928374
green = #b8bb26 green = #20c723
orange = #ffa500 orange = #ffa500
red = #ff0000 red = #ff0000
white = #ebdbb2 white = #ebdbb2
@ -109,12 +109,12 @@ label = %{A1:google-chrome-stable https\://calendar.google.com >/dev/null 2>&1 &
[module/ethernet] [module/ethernet]
type = internal/network type = internal/network
interface = eth1 interface = ens4u1u2
interval = 3.0 interval = 3.0
format-connected-underline = ${colors.green} format-connected-underline = ${colors.green}
format-connected-prefix-foreground = ${colors.gray} format-connected-prefix-foreground = ${colors.gray}
label-connected = %local_ip% label-connected = %local_ip% %upspeed% %downspeed%
format-disconnected = <label-disconnected> format-disconnected = <label-disconnected>
format-disconnected-underline = ${colors.red} format-disconnected-underline = ${colors.red}
@ -193,7 +193,7 @@ bar-volume-empty-foreground = ${colors.gray}
[module/wifi] [module/wifi]
type = internal/network type = internal/network
interface = wlp2s0 interface = wlo1
interval = 3.0 interval = 3.0
format-connected = <label-connected> format-connected = <label-connected>
@ -208,7 +208,9 @@ label-disconnected-foreground = ${colors.gray}
margin-bottom = 5 margin-bottom = 5
margin-top = 5 margin-top = 5
[module/xwindow] #[module/xwindow]
format-foreground = ${colors.blue} #format-foreground = ${colors.blue}
label = %title:0:100:...% #label = %title:0:100:...%
type = internal/xwindow #type = internal/xwindow
#label-maxlen = 20