1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-04 05:19:26 +00:00

[polybar] Add custom network usage module

This commit is contained in:
2020-03-22 19:32:43 +01:00
parent c132945659
commit 0441ed825e
3 changed files with 68 additions and 4 deletions

View File

@ -80,14 +80,19 @@ label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%
# keep speed meter for other devices
label-disconnected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%downspeed:8%  %upspeed:8% %{A-}"
[module/vpn]
[module/network_usage]
type = custom/script
exec = ~/.config/polybar/scripts/network_usage
click-left = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager &
double-click-left = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager &
tail = true
[module/vpn]
type = custom/script
exec = ~/.config/polybar/scripts/check_vpn
interval = 5
[module/spotify]
type = custom/script
exec = ~/.config/polybar/scripts/spotify.py
interval = 5
@ -107,7 +112,6 @@ time-alt = %H:%M:%S
label = %{F#f5a70a}%{T4}%time%%{F-}%{T-} | %date%
[module/custom_date]
type = custom/script
exec = ~/.config/polybar/scripts/custom_date
interval = 1