diff options
author | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-12-23 06:11:46 -0700 |
---|---|---|
committer | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-12-23 06:11:46 -0700 |
commit | 0a2b876abaef41c858ba05bc8a5dee3be47d2958 (patch) | |
tree | d7f6ba1618c386dcdfe402b7cbf0c65d865d6fd3 | |
parent | 23dac3c9677720e0b2c38c4dbbbcce19792b5d46 (diff) |
Add wifi module and tune ethernet
-rw-r--r-- | .config/polybar/config | 24 | ||||
-rw-r--r-- | .config/polybar/eth.ini | 4 | ||||
-rw-r--r-- | .config/polybar/main.ini | 2 | ||||
-rw-r--r-- | .config/polybar/wlan.ini | 97 |
4 files changed, 102 insertions, 25 deletions
diff --git a/.config/polybar/config b/.config/polybar/config index fcdc86f..e35a292 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -30,7 +30,7 @@ include-file = $XDG_CONFIG_HOME/polybar/memory.ini include-file = $XDG_CONFIG_HOME/polybar/xkeyboard.ini include-file = $XDG_CONFIG_HOME/polybar/filesystem.ini include-file = $XDG_CONFIG_HOME/polybar/eth.ini -# include-file = $XDG_CONFIG_HOME/polybar/wlan.ini +include-file = $XDG_CONFIG_HOME/polybar/wlan.ini # Other modules that came by default on the example config. @@ -49,28 +49,6 @@ include-file = $XDG_CONFIG_HOME/polybar/eth.ini # label-song-maxlen = 25 # label-song-ellipsis = true -# [module/wlan] -# type = internal/network -# interface = wlp6s0 -# interval = 3.0 - -# format-connected = <ramp-signal> <label-connected> -# format-connected-underline = #9f78e1 -# label-connected = %essid% - -# format-disconnected = -# format-disconnected = <label-disconnected> -# format-disconnected-underline = ${self.format-connected-underline} -# label-disconnected = %ifname% disconnected -# label-disconnected-foreground = ${colors.foreground-alt} - -# ramp-signal-0 = -# ramp-signal-1 = -# ramp-signal-2 = -# ramp-signal-3 = -# ramp-signal-4 = -# ramp-signal-foreground = ${colors.foreground-alt} - # [module/temperature] # type = internal/temperature # thermal-zone = 0 diff --git a/.config/polybar/eth.ini b/.config/polybar/eth.ini index 44430ed..6b2b965 100644 --- a/.config/polybar/eth.ini +++ b/.config/polybar/eth.ini @@ -43,6 +43,7 @@ format-connected-underline = ${colors.green} # Available tags: # <label-disconnected> (default) format-disconnected = <label-disconnected> +format-disconnected-prefix = " " format-disconnected-underline = ${self.format-connected-underline} # Available tags: @@ -50,6 +51,7 @@ format-disconnected-underline = ${self.format-connected-underline} # <label-packetloss> # <animation-packetloss> format-packetloss = <label-connected> <label-packetloss> +format-packetloss-prefix = " " format-packetloss-underline = ${self.format-connected-underline} # All labels support the following tokens: @@ -67,7 +69,7 @@ label-connected = %downspeed% %upspeed% # label-connected-foreground = #eefafafa # Default: (none) -label-disconnected = (disconnected) +label-disconnected = (dc) label-disconnected-foreground = ${colors.black-alt} # Default: (none) diff --git a/.config/polybar/main.ini b/.config/polybar/main.ini index 5e8ab3a..1523dad 100644 --- a/.config/polybar/main.ini +++ b/.config/polybar/main.ini @@ -4,7 +4,7 @@ monitor = ${env:MAINMON:HDMI-0} modules-left=bspwm xwindow modules-center= -modules-right=eth xkeyboard cpu memory pulseaudio date powermenu +modules-right=wlan eth xkeyboard cpu memory pulseaudio date powermenu # tray-position = right # tray-padding = 2 diff --git a/.config/polybar/wlan.ini b/.config/polybar/wlan.ini new file mode 100644 index 0000000..69028dd --- /dev/null +++ b/.config/polybar/wlan.ini @@ -0,0 +1,97 @@ +[module/wlan] +type = internal/network + +# Name of the network interface to display. You can get the names of the +# interfaces on your machine with `ip link` +# Wireless interfaces often start with `wl` and ethernet interface with `eno` or `eth` +interface = wlp6s0 + +# Seconds to sleep between updates +# Default: 1 +interval = 1 + +# Test connectivity every Nth update +# A value of 0 disables the feature +# NOTE: Experimental (needs more testing) +# Default: 0 +# ping-interval = 3 + +# @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%) +# Minimum output width of upload/download rate +# Default: 3 +# udspeed-minwidth = 5 + +# Accumulate values from all interfaces +# when querying for up/downspeed rate +# Default: false +accumulate-stats = false + +# Consider an `UNKNOWN` interface state as up. +# Some devices like USB network adapters have +# an unknown state, even when they're running +# Default: false +unknown-as-up = false + +# Available tags: +# <label-connected> (default) +# <ramp-signal> +format-connected = <ramp-signal> <label-connected> +format-connected-prefix = " " +# format-connected-prefix-foreground = ${colors.foreground-alt} +format-connected-underline = ${colors.red} + +# Available tags: +# <label-disconnected> (default) +format-disconnected = <label-disconnected> +format-disconnected-prefix = " " +format-disconnected-underline = ${self.format-connected-underline} + +# Available tags: +# <label-connected> (default) +# <label-packetloss> +# <animation-packetloss> +format-packetloss = <label-connected> <label-packetloss> +format-packetloss-prefix = " " +format-packetloss-underline = ${self.format-connected-underline} + +# All labels support the following tokens: +# %ifname% [wireless+wired] +# %local_ip% [wireless+wired] +# %local_ip6% [wireless+wired] +# %essid% [wireless] +# %signal% [wireless] +# %upspeed% [wireless+wired] +# %downspeed% [wireless+wired] +# %linkspeed% [wired] + +# Default: %ifname% %local_ip% +# label-connected = %essid% +label-connected = %downspeed% %upspeed% +# label-connected-foreground = #eefafafa + +# Default: (none) +label-disconnected = (dc) +label-disconnected-foreground = ${colors.black-alt} + +# Default: (none) +label-packetloss = (pl) +label-packetloss-foreground = ${colors.red} + +# Only applies if <ramp-signal> is used +ramp-signal-0 = ▁ +ramp-signal-1 = ▂ +ramp-signal-2 = ▃ +ramp-signal-3 = ▄ +ramp-signal-4 = ▅ +ramp-signal-5 = ▆ +ramp-signal-6 = ▇ +ramp-signal-7 = █ +# ramp-signal-foreground = ${colors.foreground-alt} + +# Only applies if <animation-packetloss> is used +animation-packetloss-0 = ⚠ +animation-packetloss-0-foreground = #ffa64c +animation-packetloss-1 = 📶 +animation-packetloss-1-foreground = #000000 +# Framerate in milliseconds +animation-packetloss-framerate = 500 |