mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 17:28:01 +00:00
[polybar] Improve network monitoring and add systray
This commit is contained in:
parent
e4cc947c5f
commit
5a007f25e8
@ -10,7 +10,7 @@ include-file = ~/.config/polybar/modules.ini
|
|||||||
|
|
||||||
background = #263238
|
background = #263238
|
||||||
background-alt = #444
|
background-alt = #444
|
||||||
foreground = #DFDFDF
|
foreground = #FFFFFF
|
||||||
foreground-alt = #555
|
foreground-alt = #555
|
||||||
primary = #F5A70A
|
primary = #F5A70A
|
||||||
secondary = #e60053
|
secondary = #e60053
|
||||||
@ -23,6 +23,7 @@ bd = #e53935
|
|||||||
|
|
||||||
[bar/top]
|
[bar/top]
|
||||||
monitor = ${env:MONITOR:}
|
monitor = ${env:MONITOR:}
|
||||||
|
bottom = false
|
||||||
|
|
||||||
offset-x = 0
|
offset-x = 0
|
||||||
offset-y = 0
|
offset-y = 0
|
||||||
@ -31,14 +32,14 @@ radius-bottom = 0.0
|
|||||||
|
|
||||||
border-bottom-size = 3
|
border-bottom-size = 3
|
||||||
border-color = ${colors.primary}
|
border-color = ${colors.primary}
|
||||||
padding = 1
|
padding-right = 2
|
||||||
|
|
||||||
module-margin-left = 1
|
module-margin-left = 1
|
||||||
module-margin-right = 2
|
module-margin-right = 2
|
||||||
separator =
|
separator =
|
||||||
dim-value = 1.0
|
dim-value = 1.0
|
||||||
locale = es_ES.UTF-8
|
locale = es_ES.UTF-8
|
||||||
tray-position = none
|
tray-position = right
|
||||||
tray-detached = false
|
tray-detached = false
|
||||||
tray-maxsize = 32
|
tray-maxsize = 32
|
||||||
tray-background = ${root.background}
|
tray-background = ${root.background}
|
||||||
@ -49,8 +50,9 @@ tray-scale = 1.0
|
|||||||
|
|
||||||
width = 100%
|
width = 100%
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
dpi = 96
|
dpi-x = 96
|
||||||
height = 36
|
dpi-y = 96
|
||||||
|
height = 40
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
|
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
@ -63,9 +65,9 @@ font-2 = "Material Icons:size=16;1"
|
|||||||
font-3 = NotoSans-Regular:size=18:weight=bold;2
|
font-3 = NotoSans-Regular:size=18:weight=bold;2
|
||||||
font-4 = NotoSans-Regular:size=18:weight=bold;-7
|
font-4 = NotoSans-Regular:size=18:weight=bold;-7
|
||||||
|
|
||||||
modules-left = windows spotify
|
modules-left = spotify
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = updates cpu_bar memory_bar network_manager vpn wireless wired alsa_bar
|
modules-right = updates cpu_bar memory_bar vpn wireless wired alsa_bar
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
|
@ -49,14 +49,6 @@ bar-used-foreground-8 = ${colors.bd}
|
|||||||
bar-used-empty = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A-}"
|
bar-used-empty = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A-}"
|
||||||
bar-used-empty-foreground = ${colors.foreground-alt}
|
bar-used-empty-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
|
||||||
[module/network_manager]
|
|
||||||
type = custom/text
|
|
||||||
content = ""
|
|
||||||
content-font = 2
|
|
||||||
; since I'm in zsh, bash invocation is necessary even if the shebang is set
|
|
||||||
click-left = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager
|
|
||||||
|
|
||||||
[module/wireless]
|
[module/wireless]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp4s0
|
interface = wlp4s0
|
||||||
@ -81,11 +73,12 @@ accumulate-stats = true
|
|||||||
unknown-as-up = true
|
unknown-as-up = true
|
||||||
|
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
format-connected-prefix =
|
format-connected-prefix = ""
|
||||||
format-disconnected = <label-disconnected>
|
format-disconnected = <label-disconnected>
|
||||||
|
|
||||||
label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%downspeed:8% %upspeed:8% %{A-}"
|
label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%downspeed:8% %upspeed:8% %{A-}"
|
||||||
label-disconnected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}Not connected%{A-}"
|
# 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/vpn]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user