updated polybar style, changed font in alacritty to terminess

This commit is contained in:
Tristaan
2018-08-22 14:00:35 +02:00
parent 2f48e3a2ce
commit c7b33a6ad7
4 changed files with 110 additions and 88 deletions

View File

@@ -56,19 +56,19 @@ draw_bold_text_with_bright_colors: true
font: font:
# The normal (roman) font face to use. # The normal (roman) font face to use.
normal: normal:
family: "xos4 Terminus" # should be "Menlo" or something on macOS. family: "xos4 Terminess Powerline" # should be "Menlo" or something on macOS.
# Style can be specified to pick a specific face. # Style can be specified to pick a specific face.
style: Regular style: Regular
# The bold font face # The bold font face
bold: bold:
family: "xos4 Terminus" # should be "Menlo" or something on macOS. family: "xos4 Terminess Powerline" # should be "Menlo" or something on macOS.
# Style can be specified to pick a specific face. # Style can be specified to pick a specific face.
style: Bold style: Bold
# The italic font face # The italic font face
italic: italic:
family: "xos4 Terminus" # should be "Menlo" or something on macOS. family: "xos4 Terminess Powerline" # should be "Menlo" or something on macOS.
# Style can be specified to pick a specific face. # Style can be specified to pick a specific face.
# style: Italic # style: Italic

View File

@@ -8,35 +8,36 @@
;===================================================== ;=====================================================
[colors] [colors]
;background = ${xrdb:color0:#222} bg = #10101000
background = #15325A bg2 = #10101033
background-alt = #25426A fg = #f8f8f2
;foreground = ${xrdb:color7:#222} select = #44475a
foreground = #dfdfdf blue = ${env:COLOR_BLUE}
foreground-alt = #55729A cyan = ${env:COLOR_CYAN}
alert = #bd2c40 pink = #ff79c6
black = #1d1d1d purple = #bd93f9
red = #d73555 green = ${env:COLOR_GREEN}
green = #35d755 orange = #ffb86c
yellow = #d7d755 red = #ff5555
blue = #3555d7 yellow = #f1fa8c
magenta = #d755d7
cyan = #55b7b7
white = #e7e7e7
bright_black = '0x303030'
bright_red = '0xc76484'
bright_green = '0x64c784'
bright_yellow = '0xc7c784'
bright_blue = '0x6484c7'
bright_magenta = '0x7355d7'
bright_cyan = '0x84c7c7'
bright_white = '0xd7d7d7'
;++++++++++++++++++++++
;background = ${xrdb:color0:#222}
background = ${colors.bg}
background-alt = ${colors.select}
background-alt2 = ${colors.bg2}
;foreground = ${xrdb:color7:#222}
foreground = ${colors.fg}
foreground-alt = ${colors.select}
primary = ${colors.purple}
secondary = ${colors.cyan}
alert = ${colors.pink}
[bar/top] [bar/top]
monitor = ${env:MONITOR} monitor = ${env:MONITOR}
width = 100% width = 100%
height = 30 height = 28
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
radius = 0 radius = 0
@@ -45,34 +46,63 @@ fixed-center = false
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
line-size = 2 line-size = 0
line-color = #f00 line-color = #f00
border-size = 0 border-size = 0
border-color = #00000000 border-color = ${colors.background-alt}
module-padding-left = 1 spacing = 1
module-padding-right = 1 padding = 1
module-margin-left = 0 module-margin-left = 1
module-margin-right = 1 module-margin-right = 0
font-0 = "xos4 Terminus:pixelsize=16" font-0 = "xos4 Terminess Powerline:pixelsize=16"
font-1 = "Font Awesome 5 Free:style=Solid: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" font-2 = "Font Awesome 5 Brands:style=Regular:pixelsize=16;1"
modules-left = i3 modules-left = filesystem wired-network wireless-network volume
modules-center = xwindow modules-center = xwindow
modules-right = filesystem wired-network wireless-network volume battery xkeyboard cpu memory date powermenu modules-right = battery xkeyboard date
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 1
tray-background = ${colors.background}
tray-transparent = true
scroll-up = i3wm-wsnext scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev scroll-down = i3wm-wsprev
cursor-click = pointer cursor-click = pointer
cursor-scroll = ns-resize cursor-scroll = ns-resize
[bar/bottom]
monitor = DP-1
bottom = true
width = 100%
height = 30
background = ${colors.background}
foreground = ${colors.foreground}
line-color = ${bar/top.background}
line-size = 4
font-0 = "xos4 Terminess Powerline:pixelsize=16"
font-1 = "Font Awesome 5 Free:style=Solid:pixelsize=16;1"
font-2 = "Font Awesome 5 Brands:style=Regular:pixelsize=16;1"
spacing = 0
padding = 1
module-margin-left = 1
module-margin-right = 1
modules-left = i3
modules-right = cpu memory powermenu
border-size = 3
border-color = ${colors.background}
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
format = <label-state> <label-mode> format = <label-state> <label-mode>
@@ -84,13 +114,13 @@ strip-wsnumbers = true
pin-workspaces = true pin-workspaces = true
label-mode-padding = 1 label-mode-padding = 1
label-mode-foreground = ${colors.black} label-mode-foreground = ${colors.foreground}
label-mode-background = ${colors.cyan} label-mode-background = ${colors.background-alt2}
; focused = Active workspace on focused monitor ; focused = Active workspace on focused monitor
label-focused = %name% label-focused = %name%
label-focused-background = ${colors.background-alt} label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.cyan} label-focused-underline= ${colors.primary}
label-focused-padding = 1 label-focused-padding = 1
; unfocused = Inactive workspace on any monitor ; unfocused = Inactive workspace on any monitor
@@ -105,13 +135,13 @@ label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set ; urgent = Workspace with urgency hint set
label-urgent = %index% label-urgent = %index%
label-urgent-background = ${colors.red} label-urgent-background = ${colors.alert}
label-urgent-padding = 2 label-urgent-padding = 2
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
label = %title:0:30:...% label = %title:0:30:...%
format-foreground = ${colors.white} format-foreground = ${colors.foreground-alt}
[module/xkeyboard] [module/xkeyboard]
type = internal/xkeyboard type = internal/xkeyboard
@@ -120,7 +150,6 @@ blacklist-1 = scroll lock
blacklist-2 = caps lock blacklist-2 = caps lock
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.red} format-prefix-underline = ${colors.red}
label-layout = %layout% label-layout = %layout%
@@ -136,8 +165,8 @@ format-unmounted = <label-unmounted>
mount-0 = / mount-0 = /
mount-1 = /media mount-1 = /media
label-mounted = %{F#55b7b7}%mountpoint%%{F-}: %free% label-mounted = ${env:LABEL_MOUNTED}
label-unmounted = %mountpoint% label-unmounted =
label-unmounted-foreground = ${colors.foreground-alt} label-unmounted-foreground = ${colors.foreground-alt}
[module/cpu] [module/cpu]
@@ -146,7 +175,6 @@ interval = 2
format = <ramp-coreload> format = <ramp-coreload>
format-prefix = format-prefix =
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${colors.yellow}
ramp-coreload-0 = ▁ ramp-coreload-0 = ▁
ramp-coreload-1 = ▂ ramp-coreload-1 = ▂
ramp-coreload-2 = ▃ ramp-coreload-2 = ▃
@@ -162,15 +190,14 @@ interval = 2
format = <bar-used> format = <bar-used>
format-prefix = format-prefix =
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${colors.green}
label = %gb_used%/%gb_total% label = %gb_used%/%gb_total%
bar-used-indicator = bar-used-indicator =
bar-used-width = 12 bar-used-width = 12
bar-used-foreground-0 = ${colors.bright_green} bar-used-foreground-0 = ${colors.green}
bar-used-foreground-1 = ${colors.green} bar-used-foreground-1 = ${colors.foreground}
bar-used-foreground-2 = ${colors.red} bar-used-foreground-2 = ${colors.orange}
bar-used-foreground-3 = ${colors.bright_red} bar-used-foreground-3 = ${colors.red}
bar-used-fill = ▐ bar-used-fill = ▐
bar-used-empty = ▐ bar-used-empty = ▐
bar-used-empty-foreground = ${colors.foreground-alt} bar-used-empty-foreground = ${colors.foreground-alt}
@@ -189,7 +216,7 @@ format-packetloss = <animation-packetloss> <label-connected>
label-connected = %essid% label-connected = %essid%
label-connected-foreground = ${colors.green} label-connected-foreground = ${colors.green}
label-disconnected = %ifname% label-disconnected = %ifname%
label-disconnected-foreground = ${colors.bright_red} label-disconnected-foreground = ${colors.alert}
ramp-signal-0 = ▁ ramp-signal-0 = ▁
ramp-signal-1 = ▃ ramp-signal-1 = ▃
@@ -201,30 +228,30 @@ ramp-signal-5 = █
animation-packetloss-0 =  animation-packetloss-0 = 
animation-packetloss-0-foreground = ${colors.yellow} animation-packetloss-0-foreground = ${colors.yellow}
animation-packetloss-1 =  animation-packetloss-1 = 
animation-packetloss-1-foreground = ${colors.black} animation-packetloss-1-foreground = ${colors.foreground-alt}
; Framerate in milliseconds ; Framerate in milliseconds
animation-packetloss-framerate = 500 animation-packetloss-framerate = 500
[module/wired-network] [module/wired-network]
type = internal/network type = internal/network
interface = enp0s20u2 interface = enp9s0
interval = 1.0 interval = 2
udspeed-minwidth = 5 udspeed-minwidth = 2
accumulate-stats = true accumulate-stats = true
format-connected = <label-connected> format-connected = <label-connected>
format-disconnected = <label-disconnected> format-disconnected = <label-disconnected>
format-packetloss = <animation-packetloss> <label-connected> format-packetloss = <animation-packetloss> <label-connected>
label-connected = %local_ip%%downspeed:1:4% label-connected = ${env:LABEL_NETWORK_CONNECTED}
label-connected-foreground = ${colors.green} label-connected-foreground = ${colors.green}
label-disconnected = %ifname% label-disconnected = %ifname%
label-disconnected-foreground = ${colors.bright_red} label-disconnected-foreground = ${colors.alert}
; Only applies if <animation-packetloss> is used ; Only applies if <animation-packetloss> is used
animation-packetloss-0 =  animation-packetloss-0 = 
animation-packetloss-0-foreground = ${colors.yellow} animation-packetloss-0-foreground = ${colors.yellow}
animation-packetloss-1 =  animation-packetloss-1 = 
animation-packetloss-1-foreground = ${colors.black} animation-packetloss-1-foreground = ${colors.foreground-alt}
; Framerate in milliseconds ; Framerate in milliseconds
animation-packetloss-framerate = 500 animation-packetloss-framerate = 500
@@ -238,6 +265,8 @@ time-format = %H:%M
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
format-full-foreground = ${colors.green} format-full-foreground = ${colors.green}
format-charging-foreground = ${colors.yellow}
format-discharging-foreground = ${colors.cyan}
label-charging = %percentage%% label-charging = %percentage%%
label-discharging = %time% label-discharging = %time%
label-full =  label-full = 
@@ -267,39 +296,27 @@ date-alt = " %d/%m/%Y"
time = %H:%M time = %H:%M
time-alt = %H:%M:%S time-alt = %H:%M:%S
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground}
format-prefix=  format-prefix= 
format-underline = ${colors.blue} format-underline = ${colors.blue}
label = %time%%date% label = %time%%date%
[module/volume] [module/volume]
type = internal/alsa type = internal/pulseaudio
format-volume = <label-volume> <bar-volume> format-volume = <ramp-volume>: <label-volume>
label-volume = "VOL" label-muted = : MUTE
label-volume-foreground = ${root.foreground} label-muted-foreground = ${colors.foreground-alt}
format-muted-prefix = " " ramp-volume-0-foreground = ${colors.cyan}
format-muted-foreground = ${colors.foreground-alt} ramp-volume-1-foreground = ${colors.cyan}
label-muted = sound muted ramp-volume-2-foreground = ${colors.cyan}
ramp-volume-3-foreground = ${colors.red}
bar-volume-width = 10 ramp-volume-0 =
bar-volume-foreground-0 = #55aa55 ramp-volume-1 = 
bar-volume-foreground-1 = #55aa55 ramp-volume-2 = 
bar-volume-foreground-2 = #55aa55 ramp-volume-3 = 
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/powermenu] [module/powermenu]
type = custom/menu type = custom/menu

View File

@@ -41,7 +41,7 @@ client.urgent #2f343a #900000 #ffffff #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 client.placeholder #000000 #0c0c0c #ffffff #000000
client.background #ffffff client.background #ffffff
new_window pixel 4 new_window normal 4
new_float normal 5 new_float normal 5
hide_edge_borders smart hide_edge_borders smart
#//APPEARANCE//# #//APPEARANCE//#

View File

@@ -8,11 +8,16 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
if type "xrandr"; then if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
export COLOR_CYAN="#8be9fd"
export COLOR_BLUE="#6272a4"
export COLOR_GREEN="#50fa7b"
export LABEL_MOUNTED="%{F$COLOR_CYAN}%mountpoint%%{F-}:%free%"
export LABEL_NETWORK_CONNECTED="%{F$COLOR_CYAN}%local_ip%%{F-}:%downspeed:4%"
MONITOR=$m polybar --reload top & MONITOR=$m polybar --reload top &
MONITOR=$m polybar --reload bottom &
done done
else else
polybar --reload top & polybar --reload top &
fi fi
echo "Bars launched..." echo "Bars launched..."