From 97843dbbf340e4ec584e17c8dcdb5d9a43d576d3 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Wed, 5 Dec 2018 00:49:58 -0500 Subject: [PATCH] Add polybar config --- lain/.config/polybar/config | 250 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 lain/.config/polybar/config diff --git a/lain/.config/polybar/config b/lain/.config/polybar/config new file mode 100644 index 0000000..f2a9e35 --- /dev/null +++ b/lain/.config/polybar/config @@ -0,0 +1,250 @@ + +[colors] +background = ${xrdb:color0:#222} +background-alt = ${xrdb:color1:#222} +foreground = ${xrdb:color7:#222} +foreground-alt = ${xrdb:color7:#222} +primary = ${xrdb:color1:#222} +secondary = ${xrdb:color2:#222} +alert = ${xrdb:color3:#222} + +[bar/bottom] +monitor = ${env:MONITOR:DP-2} +width = 100% +height = 27 + +line-color = ${colors.background} +line-size = 2 + +padding-right = 5 +module-margin = 1 + +bottom = true + +background = #88000000 +foreground = ${colors.foreground} + +font-0 = SauceCodePro Nerd Font:size=12 + +modules-left = i3 +modules-center = +modules-right = cpu temperature memory +#modules-right = filesystem alsa pulseaudio xkeyboard memory cpu wlan eth temperature date powermenu + +[bar/top] +monitor = ${env:MONITOR:DP-2} +width=100% +height=27 + +line-color = ${colors.background} +line-size = 0 + +padding-right = 5 +padding-left = 1 +module-margin = 4 + +bottom = false + +background = #88000000 +foreground = ${colors.foreground} + +font-0 = SauceCodePro Nerd Font:size=12 + +modules-left = powermenu +modules-center = +modules-right = pulseaudio eth date + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %index% +label-unfocused-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} + +; urgent = Workspace with urgency hint set +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +; Separator in between workspaces +; label-separator = | + + +[module/mpd] +type = internal/mpd +format-online = + +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  + +label-song-maxlen = 25 +label-song-ellipsis = true + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "" +format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.background-alt} +label = %percentage:2%% + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "﬙ " +format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.background-alt} +label = %percentage_used%% + +[module/eth] +type = internal/network +interface = enp0s31f6 +interval = 3.0 + +format-connected-underline = ${colors.background-alt} +format-connected-prefix = " " +format-connected-prefix-foreground = ${colors.foreground-alt} +label-connected = %local_ip% + +format-disconnected = +;format-disconnected = +;format-disconnected-underline = ${self.format-connected-underline} +;label-disconnected = %ifname% disconnected +;label-disconnected-foreground = ${colors.foreground-alt} + +[module/date] +type = internal/date +interval = 5 + +date = +date-alt = " %Y-%m-%d" + +time = %H:%M +time-alt = %H:%M:%S + +format-prefix =  +format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.background-alt} + +label = %date% %time% + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume = +label-volume = 墳 %percentage%% +label-volume-foreground = ${colors.foreground} + +label-muted = 婢 Muted ────────| +label-muted-foreground = ${colors.foreground} + +bar-volume-width = 10 +bar-volume-foreground-0 = ${colors.background-alt} +bar-volume-foreground-1 = ${colors.background-alt} +bar-volume-foreground-2 = ${colors.background-alt} +bar-volume-foreground-3 = ${colors.background-alt} +bar-volume-foreground-4 = ${colors.background-alt} +bar-volume-foreground-5 = ${colors.background-alt} +bar-volume-foreground-6 = ${colors.background-alt} +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/temperature] +type = internal/temperature +thermal-zone = 2 +warn-temperature = 80 + +format =