1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-12-10 21:48:09 -05:00
dotfiles/lain/.config/polybar/config
2018-12-05 00:49:58 -05:00

251 lines
5.6 KiB
INI

[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 = <label-state> <label-mode>
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 = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
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 = <label-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> <bar-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 = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary}
ramp-0 =
ramp-1 =
ramp-2 =
ramp-3 =
ramp-4 =
ramp-5 =
ramp-6 =
ramp-7 =
ramp-8 =
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = ﮣ Power
label-open-foreground = ${colors.secondary}
label-close = ﮤ Close
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = ⏻ Shutdown
menu-0-0-exec = systemctl poweroff
menu-0-1 = ⏼ Restart
menu-0-1-exec = systemctl reboot
menu-0-2 = ⏾ Suspend
menu-0-2-exec = systemctl suspend
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini