polybar and i3: FontAwesome5

This commit is contained in:
Tristaan
2018-01-27 14:32:05 +01:00
parent 4250191d46
commit cc02c6e367
4 changed files with 46 additions and 29 deletions

View File

@@ -36,7 +36,7 @@ bright_white = '0xd7d7d7'
[bar/top]
monitor = ${env:MONITOR}
width = 100%
height = 26
height = 30
;offset-x = 1%
;offset-y = 1%
radius = 0
@@ -45,7 +45,7 @@ fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-size = 2
line-color = #f00
border-size = 0
@@ -58,11 +58,12 @@ module-margin-left = 0
module-margin-right = 1
font-0 = "xos4 Terminus:pixelsize=16"
font-1 = FontAwesome:pixelsize=16;1
font-1 = "Font Awesome 5 Free:style=Solid:pixelsize=16;1"
font-2 = "Font Awesome 5 Brands:style=Solid:pixelsize=16;1"
modules-left = i3
modules-center = xwindow
modules-right = filesystem network volume battery xkeyboard cpu memory date powermenu
modules-right = filesystem wired-network wireless-network volume battery xkeyboard cpu memory date powermenu
tray-position = right
tray-padding = 2
@@ -174,7 +175,7 @@ bar-used-fill = ▐
bar-used-empty = ▐
bar-used-empty-foreground = ${colors.foreground-alt}
[module/network]
[module/wireless-network]
type = internal/network
interface = wlp3s0
interval = 1.0
@@ -204,6 +205,29 @@ animation-packetloss-1-foreground = ${colors.black}
; Framerate in milliseconds
animation-packetloss-framerate = 500
[module/wired-network]
type = internal/network
interface = enp4s0
interval = 1.0
udspeed-minwidth = 5
accumulate-stats = true
format-connected = <label-connected>
format-disconnected = <label-disconnected>
format-packetloss = <animation-packetloss> <label-connected>
label-connected = %local_ip%%downspeed:9%
label-connected-foreground = ${colors.green}
label-disconnected = %ifname%
label-disconnected-foreground = ${colors.bright_red}
; Only applies if <animation-packetloss> is used
animation-packetloss-0 = 
animation-packetloss-0-foreground = ${colors.yellow}
animation-packetloss-1 = 
animation-packetloss-1-foreground = ${colors.black}
; Framerate in milliseconds
animation-packetloss-framerate = 500
[module/battery]
type = internal/battery
full-at = 99