From 23dac3c9677720e0b2c38c4dbbbcce19792b5d46 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Wed, 23 Dec 2020 05:53:02 -0700 Subject: Some changes and add ethernet module --- .config/polybar/bspwm.ini | 10 ++--- .config/polybar/config | 18 +-------- .config/polybar/date.ini | 2 +- .config/polybar/eth.ini | 91 ++++++++++++++++++++++++++++++++++++++++++ .config/polybar/main.ini | 10 ++--- .config/polybar/pulseaudio.ini | 2 +- .config/polybar/second.ini | 8 +++- .config/polybar/xwindow.ini | 7 ++-- .config/shell/profile | 1 - 9 files changed, 115 insertions(+), 34 deletions(-) create mode 100644 .config/polybar/eth.ini diff --git a/.config/polybar/bspwm.ini b/.config/polybar/bspwm.ini index 2abaf1e..af76822 100644 --- a/.config/polybar/bspwm.ini +++ b/.config/polybar/bspwm.ini @@ -76,21 +76,21 @@ label-monitor = %name% # %icon% # %index% # Default: %icon% %name% -label-focused = %icon% %name% +label-focused = %icon% label-focused-background = ${colors.blue} label-focused-foreground = ${colors.black} label-focused-underline= ${colors.cyan} label-dimmed-focused-background = ${colors.blue-alt} label-dimmed-focused-foreground = ${colors.black-alt} label-dimmed-focused-underline= ${colors.cyan-alt} -label-focused-padding = 4 +label-focused-padding = 3 # Available tokens: # %name% # %icon% # %index% # Default: %icon% %name% -label-occupied = %icon% %name% +label-occupied = %icon% label-occupied-foreground= ${colors.white-alt} label-occupied-underline = ${colors.blue} label-dimmed-occupied-foreground= ${colors.white} @@ -102,14 +102,14 @@ label-occupied-padding = 2 # %icon% # %index% # Default: %icon% %name% -label-urgent = %icon% %name% +label-urgent = %icon% label-urgent-foreground = ${colors.white-alt} label-urgent-background = ${colors.red} label-urgent-underline = ${colors.yellow} label-dimmed-urgent-foreground = ${colors.white} label-dimmed-urgent-background = ${colors.red-alt} label-dimmed-urgent-underline = ${colors.yellow-alt} -label-urgent-padding = 2 +label-urgent-padding = 3 # Available tokens: # %name% diff --git a/.config/polybar/config b/.config/polybar/config index db68c99..fcdc86f 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -29,6 +29,8 @@ include-file = $XDG_CONFIG_HOME/polybar/cpu.ini 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 # Other modules that came by default on the example config. @@ -69,22 +71,6 @@ include-file = $XDG_CONFIG_HOME/polybar/filesystem.ini # ramp-signal-4 =  # ramp-signal-foreground = ${colors.foreground-alt} -# [module/eth] -# type = internal/network -# interface = enp3s0 -# interval = 3.0 - -# format-connected-underline = #55aa55 -# format-connected-prefix = " " -# format-connected-prefix-foreground = ${colors.foreground-alt} -# label-connected = %local_ip% - -# format-disconnected = -# format-disconnected = -# format-disconnected-underline = ${self.format-connected-underline} -# label-disconnected = %ifname% disconnected -# label-disconnected-foreground = ${colors.foreground-alt} - # [module/temperature] # type = internal/temperature # thermal-zone = 0 diff --git a/.config/polybar/date.ini b/.config/polybar/date.ini index 69b520c..5096b93 100644 --- a/.config/polybar/date.ini +++ b/.config/polybar/date.ini @@ -8,7 +8,7 @@ interval = 1.0 # See "https://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string # NOTE: if you want to use syntax tags here you need to use %%{...} -date = %d-%m-%y% +date = %d # Optional time format time = %H:%M diff --git a/.config/polybar/eth.ini b/.config/polybar/eth.ini new file mode 100644 index 0000000..44430ed --- /dev/null +++ b/.config/polybar/eth.ini @@ -0,0 +1,91 @@ +[module/eth] +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 = enp3s0 + +# 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: +# (default) +# +format-connected = +format-connected-prefix = " " +# format-connected-prefix-foreground = ${colors.foreground-alt} +format-connected-underline = ${colors.green} + +# Available tags: +# (default) +format-disconnected = +format-disconnected-underline = ${self.format-connected-underline} + +# Available tags: +# (default) +# +# +format-packetloss = +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 =  %downspeed%  %upspeed% +# label-connected-foreground = #eefafafa + +# Default: (none) +label-disconnected = (disconnected) +label-disconnected-foreground = ${colors.black-alt} + +# Default: (none) +label-packetloss = (pl) +label-packetloss-foreground = ${colors.red} + +# Only applies if is used +ramp-signal-0 = 😱 +ramp-signal-1 = 😠 +ramp-signal-2 = 😒 +ramp-signal-3 = 😊 +ramp-signal-4 = 😃 +ramp-signal-5 = 😈 + +# Only applies if 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 diff --git a/.config/polybar/main.ini b/.config/polybar/main.ini index 0b681dd..5e8ab3a 100644 --- a/.config/polybar/main.ini +++ b/.config/polybar/main.ini @@ -2,10 +2,10 @@ inherit = bar/common monitor = ${env:MAINMON:HDMI-0} -modules-left=bspwm -modules-center=xwindow -modules-right=xkeyboard cpu memory pulseaudio date powermenu +modules-left=bspwm xwindow +modules-center= +modules-right=eth xkeyboard cpu memory pulseaudio date powermenu -tray-position = right -tray-padding = 2 +# tray-position = right +# tray-padding = 2 # tray-background = ${colors.cyan} diff --git a/.config/polybar/pulseaudio.ini b/.config/polybar/pulseaudio.ini index 1aa7548..8e9b1f8 100644 --- a/.config/polybar/pulseaudio.ini +++ b/.config/polybar/pulseaudio.ini @@ -17,7 +17,7 @@ interval = 2 # (default) # # -format-volume = +format-volume = format-volume-underline = ${colors.green} # Available tags: diff --git a/.config/polybar/second.ini b/.config/polybar/second.ini index cefaa3b..483356c 100644 --- a/.config/polybar/second.ini +++ b/.config/polybar/second.ini @@ -2,6 +2,10 @@ inherit = bar/common monitor = ${env:SECMON:HDMI-0} -modules-left=bspwm -modules-center=xwindow +modules-left=bspwm xwindow +modules-center= modules-right=date + +tray-position = right +tray-padding = 2 +# tray-background = ${colors.cyan} diff --git a/.config/polybar/xwindow.ini b/.config/polybar/xwindow.ini index b27a545..66df569 100644 --- a/.config/polybar/xwindow.ini +++ b/.config/polybar/xwindow.ini @@ -4,19 +4,20 @@ type = internal/xwindow # Available tags: #