From ee542f5334862ccd7bdcdd857544ec936de2b904 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 7 Jan 2019 00:07:15 +0000 Subject: Add icons to polybar --- polybar/config | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) (limited to 'polybar') diff --git a/polybar/config b/polybar/config index fa3ddb6..7c674dc 100644 --- a/polybar/config +++ b/polybar/config @@ -42,9 +42,8 @@ module-margin-right = 2 font-0 = scientifica:style=Regular:pixelsize=12 font-1 = Unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = Wuncon Siji:style=Regular:pixelsize=10;1 -font-3 = Font Awesome 5 Free:style=Regular:pixelsize=14 -font-4 = Font Awesome 5 Brands:style=Regular:pixelsize=14 +font-2 = FontAwesome:style=Regular +font-4 = Wuncon Siji:style=Regular:pixelsize=10;1 modules-left = bspwm modules-center = date @@ -60,11 +59,11 @@ wm-restack = bspwm ;override-redirect = true -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize @@ -135,6 +134,13 @@ label-urgent-padding = 1 [module/bspwm] type = internal/bspwm + +ws-icon-0 = term; +ws-icon-1 = web; +ws-icon-2 = code; +ws-icon-3 = music; +ws-icon-default =  + format = index-sort = true wrapping-scroll = false @@ -142,30 +148,20 @@ wrapping-scroll = false ; Only show workspaces on the same output as the bar ;pin-workspaces = true -label-mode-padding = 1 -label-mode-foreground = #000 -label-mode-background = ${colors.primary} - -; focused = Active workspace on focused monitor -label-focused = %index% +label-focused = %icon% label-focused-background = ${colors.background} -label-focused-underline = ${colors.primary} -label-focused-padding = 1 +label-focused-underline= ${colors.primary} +label-focused-padding = 2 -; unfocused = Inactive workspace on any monitor -label-unfocused = %index% -label-unfocused-padding = 1 +label-occupied = %icon% +label-occupied-padding = 2 -; visible = Active workspace on unfocused monitor -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} +label-urgent = %icon% +label-urgent-padding = 2 -; urgent = Workspace with urgency hint set -label-urgent = %index% -label-urgent-background = ${colors.alert} -label-urgent-padding = 1 +label-empty = %icon% +label-empty-foreground = ${colors.primary} +label-empty-padding = 2 [module/mpd] type = internal/mpd -- cgit