Files
dotfiles/.config/polybar/backup/config
2020-01-26 11:31:35 +01:00

315 lines
7.2 KiB
INI

[colors]
background = #aa222222
#background-alt = #aa444444
foreground = #dfdfdf
foreground-alt = #555555
primary = #7596ff
secondary = #e60053
alert = #bd2c40
[settings]
screenchange-reload = false
format-background = ${colors.background}
format-foreground = ${colors.foreground}
[bar/mybar]
monitor =
fixed-center = true
width = 100%
background = ${colors.background}
foreground = ${colors.foreground}
height = 35
line-size = 1
padding = 2.5
module-margin = 2.5
font-0 = IBM Plex Sans Bold:size=8;0
font-1 = FontAwesome5Free:style=Solid:pixelsize=8;0
font-2 = FontAwesome5Brands:style=Solid:pixelsize=8;0
modules-left = i3 bspwm xwindow
modules-center = date
modules-right = my-apps backlight updates-arch-combined mpd pulseaudio wlan filesystem memory cpu battery temperature
tray-position = right
tray-padding = 0
cursor-click = pointer
[module/my-apps]
type = custom/menu
; If true, <label-toggle> will be to the left of the menu items (default).
; If false, it will be on the right of all the items.
expand-right = false
; "menu-LEVEL-N" has the same properties as "label-NAME" with
; the additional "exec" property
;
; Available exec commands:
; menu-open-LEVEL
; menu-close
; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
menu-0-0 = Browsers
menu-0-0-exec = menu-open-1
menu-1-0 = Firefox
menu-1-0-exec = firefox &
menu-1-1 = Chromium
menu-1-1-exec = chromium &
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
wrapping-scroll = false
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %icon%
label-focused-background = ${colors.background-alt}
label-focused-overline = ${colors.primary}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-padding = 2
; visible = Active workspace on unfocused monitor
label-visible = %icon%
label-visible-background = ${self.label-focused-background}
label-visible-overline = ${self.label-focused-overline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %icon%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;4
ws-icon-4 = 5;5
ws-icon-5 = 6;6
ws-icon-6 = 7;7
ws-icon-7 = 8;8
ws-icon-8 = 9;9
ws-icon-9 = 10;10
[module/bspwm]
type = internal/bspwm
format = <label-state> <label-mode>
wrapping-scroll = false
fuzzy-match = true
ws-icon-0 = term;
ws-icon-1 = web;
ws-icon-2 = chat;
ws-icon-3 = irc;
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-overline = ${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-overline = ${self.label-focused-overline}
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
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 100
[module/filesystem]
type = internal/fs
mount-0 = /
interval = 30
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted-foreground = ${colors.foreground-alt}
[module/memory]
type = internal/memory
interval = 1
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label = "RAM: %percentage_used%%"
[module/backlight]
type = internal/xbacklight
; XRandR output to get get values from
; Default: the monitor defined for the running bar
output = eDP1
; Create scroll handlers used to set the backlight value
; Default: true
enable-scroll = false
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label = "CPU:%percentage:2%%"
[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 = 100
label-song-ellipsis = true
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3.0
format-prefix = " "
format-connected = <label-connected>
label-connected = "%signal%% %essid%"
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-overline = ${self.format-connected-overline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/pulseaudio]
type = internal/pulseaudio
format-muted-prefix = " "
format-muted-prefix-foreground = ${colors.foreground-alt}
format-volume-prefix = " "
format-volume-prefix-foregroud = ${colors.foreground-alt}
format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = muted
label-muted-foreground = #666
bar-volume-width = 8
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
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}
format-overline = ${colors.primary}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 99
format-charging-prefix = " "
format-charging-prefix-foreground = ${colors.foreground-alt}
format-charging = <label-charging>
label-charging = "BAT: %percentage%%"
format-discharging-prefix = " "
format-discharging-prefix-foreground = ${colors.foreground-alt}
format-discharging = <label-discharging>
label-discharging = "BAT: %percentage%%"
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <label>
format-warn = <label-warn>
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-warn-overline = #FF0000
format-warn-prefix = " "
format-warn-prefix-foreground = ${colors.foreground-alt}
label = "TMP: %temperature-c%"
label-warn = "!TMP: %temperature-c%"
label-warn-foreground = ${colors.secondary}
[module/player-mpris-tail]
type = custom/script
exec = ~/polybar-scripts/player-mpris-tail.py -f '{icon} {artist} - {title}'
tail = true
label = %output%
format-overline = ${colors.primary}
[module/updates-arch-combined]
type = custom/script
exec = ~/polybar-scripts/update-checker.sh
interval = 600
[module/date]
type = internal/date
interval = 1.0
date = %Y-%m-%d%
time = %H:%M
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S
; Available tokens:
; %date%
; %time%
; Default: %date%
label = %date% %time%
label-font = 6
label-foreground = #F26722
; vim:ft=dosini