aboutsummaryrefslogtreecommitdiff
path: root/polybar
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2017-02-25 17:16:58 +0100
committerSébastien Dailly <sebastien@chimrod.com>2017-02-25 17:16:58 +0100
commit0c371663f5bb5ea6f3e12318e9321bb0815e24a5 (patch)
treeb3ee3e4f743a0543985ba329455449f8a602f76c /polybar
First commit
Diffstat (limited to 'polybar')
-rw-r--r--polybar/.config/polybar/config177
1 files changed, 177 insertions, 0 deletions
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config
new file mode 100644
index 0000000..1b26157
--- /dev/null
+++ b/polybar/.config/polybar/config
@@ -0,0 +1,177 @@
+;=====================================================
+;
+; To learn more about how to configure Polybar
+; go to https://github.com/jaagr/polybar
+;
+; The README contains alot of information
+;
+;=====================================================
+
+[colors]
+background = #f222
+background-alt = #444
+#foreground = #dfdfdf
+foreground = #000
+foreground-alt = #55
+primary = #ffb52a
+secondary = #e60053
+alert = #b32c59
+
+color2 = #86b359
+
+[global/wm]
+margin-top = 0
+margin-bottom = 0
+
+
+[bar/i3]
+;monitor = ${env:MONITOR:HDMI-1}
+width = 100%
+height = 30
+offset-x = 0
+offset-y = 0
+
+
+; Prefer fixed center position for the `modules-center` block
+; When false, the center position will be based on the size of the other blocks.
+fixed-center = true
+
+#background = ${xrdb:color9}
+background = ${colors.background}
+foreground = ${colors.foreground}
+
+
+overline-size = 2
+overline-color = #f00
+underline-size = 2
+underline-color = #00f
+
+border-bottom-size = 0
+border-bottom-color = #333
+
+spacing = 1
+padding-left = 0
+padding-right = 2
+module-margin-left = 1
+module-margin-right = 2
+
+font-0 = Dejavu Sans Mono:size=12
+font-1 = materialdesignicons:size=16
+
+modules-left = xwindow
+modules-center = i3
+modules-right = date
+
+tray-position = right
+tray-padding = 2
+;tray-transparent = true
+;tray-background = #0063ff
+
+;wm-restack = bspwm
+;wm-restack = i3
+
+;override-redirect = true
+
+;scroll-up = bspwm-desknext
+;scroll-down = bspwm-deskprev
+
+scroll-up = i3wm-wsnext
+scroll-down = i3wm-wsprev
+
+[module/xwindow]
+type = internal/xwindow
+label = %title:0:100:...%
+
+[module/bspwm]
+type = internal/bspwm
+ws-icon-default = x
+
+label-focused = %index%
+label-focused-background = ${colors.background-alt}
+label-focused-underline= ${colors.primary}
+label-focused-padding = 2
+
+label-occupied = %index%
+label-occupied-padding = 2
+
+label-urgent = %index%!
+label-urgent-background = ${colors.alert}
+label-urgent-padding = 2
+
+label-empty = %index%
+label-empty-foreground = ${colors.foreground-alt}
+label-empty-padding = 2
+
+[module/i3]
+label-active-font = 0
+type = internal/i3
+format = <label-state> <label-mode>
+index-sort = true
+wrapping-scroll = false
+
+label-mode-padding = 2
+label-mode-foreground = #000
+label-mode-background = ${colors.primary}
+
+border-size = 1
+
+#label-focused = %name%
+label-focused = %icon%
+#label-focused-background = ${module/bspwm.label-focused-background}
+label-focused-background = #ffff
+label-focused-underline = #000
+label-focused-padding = ${module/bspwm.label-focused-padding}
+#label-focused-foreground = #fff
+
+label-unfocused = %icon%
+label-unfocused-padding = ${module/bspwm.label-occupied-padding}
+
+label-urgent = %icon%
+label-urgent-background = ${colors.background}
+label-urgent-foreground = ${module/bspwm.label-urgent-background}
+label-urgent-underline = ${module/bspwm.label-urgent-background}
+label-urgent-padding = ${module/bspwm.label-urgent-padding}
+
+label-visible = %icon%
+label-visible-background = ${self.label-focused-background}
+label-visible-underline = ${self.label-focused-underline}
+label-visible-padding = ${self.label-focused-padding}
+
+strip-wsnumbers = true
+
+ws-icon-0 = 101:Web;
+ws-icon-1 = 100:Mail;
+
+ws-icon-2 = 102:Musique;
+ws-icon-3 = 1;
+ws-icon-4 = 2;
+ws-icon-5 = 3;
+ws-icon-6 = 4;
+ws-icon-7 = 5;
+ws-icon-8 = 6;
+ws-icon-9 = 7;
+ws-icon-10 = 8;
+ws-icon-11 = 9;
+ws-icon-12 = 10;
+ws-icon-13 = 11;
+ws-icon-14 = 12;
+
+
+[module/date]
+type = internal/date
+interval = 30
+
+date =
+date-alt = " %Y-%m-%d"
+
+time = " %H:%M"
+time-alt =  %d %b %H:%M
+
+format-prefix =
+format-prefix-foreground = ${colors.foreground-alt}
+format-underline = #0a6cf5
+
+#label = %date% %time%
+label = %time%
+
+; vim:ft=dosini