Improved network connectivity indicator
It now shows up/down speeds, which is far more helpful than the current network's SSID
This commit is contained in:
parent
925e047c1e
commit
b09d30b899
@ -45,7 +45,7 @@ height = 24
|
|||||||
|
|
||||||
; Module padding and spacing
|
; Module padding and spacing
|
||||||
padding = 2
|
padding = 2
|
||||||
module-margin = 2
|
module-margin = 1
|
||||||
|
|
||||||
; Module colors
|
; Module colors
|
||||||
background = ${res/colors.background}
|
background = ${res/colors.background}
|
||||||
@ -67,7 +67,7 @@ tray-padding = 2
|
|||||||
|
|
||||||
modules-left = i3 | xwindow
|
modules-left = i3 | xwindow
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = temperature | wlan
|
modules-right = wlan-up wlan-down | temperature
|
||||||
|
|
||||||
; LOWER
|
; LOWER
|
||||||
;====================
|
;====================
|
||||||
@ -117,6 +117,21 @@ bar-empty = /
|
|||||||
bar-empty-foreground = ${res/colors.background-alt}
|
bar-empty-foreground = ${res/colors.background-alt}
|
||||||
bar-empty-background = ${res/colors.background}
|
bar-empty-background = ${res/colors.background}
|
||||||
|
|
||||||
|
[template/module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp1s0
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-connected-foreground = ${res/colors.foreground}
|
||||||
|
format-connected-background = ${res/colors.background}
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
format-disconnected-foreground = ${res/colors.accent-red}
|
||||||
|
format-disconnected-background = ${res/colors.background}
|
||||||
|
|
||||||
|
label-connected = %upspeed% %downspeed% - %signal%%
|
||||||
|
label-disconnected =
|
||||||
|
|
||||||
|
interval = 1
|
||||||
|
|
||||||
; STOCK
|
; STOCK
|
||||||
;====================
|
;====================
|
||||||
[module/i3]
|
[module/i3]
|
||||||
@ -310,20 +325,16 @@ bar-volume-empty-background = ${template/module/bar.bar-empty-background}
|
|||||||
|
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan-up]
|
||||||
type = internal/network
|
inherit = template/module/network
|
||||||
interface = wlp1s0
|
label-connected = %upspeed%
|
||||||
format-connected = <label-connected>
|
label-connected-foreground = ${res/colors.accent-blue}
|
||||||
format-connected-foreground = ${res/colors.accent-green}
|
label-disconnected = %ifname% Disconnected
|
||||||
format-connected-background = ${res/colors.background}
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
format-disconnected-foreground = ${res/colors.accent-red}
|
|
||||||
format-disconnected-background = ${res/colors.background}
|
|
||||||
|
|
||||||
label-connected = %essid%
|
[module/wlan-down]
|
||||||
label-disconnected = %ifname%
|
inherit = template/module/network
|
||||||
|
label-connected = %downspeed%
|
||||||
interval = 3
|
label-connected-foreground = ${res/colors.accent-blue-dark}
|
||||||
|
|
||||||
[module/xbacklight]
|
[module/xbacklight]
|
||||||
type = internal/xbacklight
|
type = internal/xbacklight
|
||||||
|
Loading…
Reference in New Issue
Block a user