aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2019-01-07 00:07:15 +0000
committerYann Herklotz <ymherklotz@gmail.com>2019-01-07 00:07:15 +0000
commitee542f5334862ccd7bdcdd857544ec936de2b904 (patch)
tree93188c2b7fdb951cf855774c727e1adda0a730f4
parentf75a5244ade3af5a7415f043d6cc7d0114b3228b (diff)
downloaddotfiles-ee542f5334862ccd7bdcdd857544ec936de2b904.tar.gz
dotfiles-ee542f5334862ccd7bdcdd857544ec936de2b904.zip
Add icons to polybar
-rw-r--r--polybar/config50
1 files changed, 23 insertions, 27 deletions
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 = <label-state> <label-mode>
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