dotfiles/conf.d/polybar/config

238 lines
5.6 KiB
Plaintext
Raw Normal View History

2021-01-27 21:43:00 +00:00
;==========================================================
;
; THIS IS AN EXAMPLE CONFIGURATION FILE!
; IT IS NOT SUPPOSED TO WORK OUT OF THE BOX SINCE IS CONTAINS
; SETTINGS THAT ARE SPECIFIC TO THE MACHINE WHICH WAS USED
; TO GENERATE IT.
; Please refer to the web documentation hosted at:
; https://github.com/polybar/polybar#configuration
; and
; https://github.com/polybar/polybar/wiki/Configuration
; if you want to automatically generate one for you.
;
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
;background = ${xrdb:color0:#222}
2021-01-31 18:14:03 +00:00
background = #aa000000
background-alt = #aa000000
2021-01-27 21:43:00 +00:00
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
2021-02-02 20:40:26 +00:00
foreground-1 = #fbcdeb
2021-01-27 21:43:00 +00:00
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
2021-01-31 18:14:03 +00:00
[bar/saitama]
2021-01-27 21:43:00 +00:00
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 27
;offset-x = 1%
;offset-y = 1%
radius = 6.0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 4
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
2021-01-31 18:14:03 +00:00
font-0 = "Monofur Nerd Font Mono:size=12:weight=bold"
font-1 = "FontAwesome:size=12"
2021-01-27 21:43:00 +00:00
2021-01-31 18:14:03 +00:00
modules-left = filesystem
2021-01-27 21:43:00 +00:00
modules-center = mpd
2021-02-02 20:40:26 +00:00
modules-right = pulseaudio publicip
2021-01-27 21:43:00 +00:00
tray-position = right
tray-padding = 2
;tray-background = #0063ff
cursor-click = pointer
cursor-scroll = ns-resize
2021-02-02 20:40:26 +00:00
enable-ipc = true
2021-01-27 21:43:00 +00:00
[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/mpd]
type = internal/mpd
2021-01-31 18:14:03 +00:00
host = 127.0.0.1
port = 6600
interval = 2
2021-02-02 20:40:26 +00:00
format-online = "<icon-prev> <icon-stop> <toggle> <icon-next> %{F#fbcdeb}<label-song>%{F-}: %{F#1592a6}<label-time>%{F-}"
2021-01-27 21:43:00 +00:00
2021-01-31 18:14:03 +00:00
icon-prev = %{T2}%{T-}
icon-stop = %{T2}%{T-}
icon-play = %{T2}%{T-}
icon-pause = %{T2}%{T-}
icon-next = %{T2}%{T-}
2021-01-27 21:43:00 +00:00
2021-02-02 20:40:26 +00:00
label-song = %artist%
2021-01-27 21:43:00 +00:00
label-song-maxlen = 25
label-song-ellipsis = true
2021-02-02 20:40:26 +00:00
label-time = %elapsed% / %total%
2021-01-27 21:43:00 +00:00
2021-01-31 18:14:03 +00:00
[module/publicip]
type = custom/script
exec = "curl --silent -L ipinfo.io | jq -r '.ip'"
interval = 5
format-underline = #268bd2
format-prefix = "%{T2}%{T-} "
format-prefix-foreground = #5b
2021-01-27 21:43:00 +00:00
[module/eth]
type = internal/network
2021-01-31 18:14:03 +00:00
interface = enp3s0
2021-01-27 21:43:00 +00:00
interval = 3.0
format-connected-underline = #55aa55
2021-01-31 18:14:03 +00:00
format-connected-prefix = "%{T2}%{T-} "
2021-01-27 21:43:00 +00:00
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}
2021-01-31 18:14:03 +00:00
; [module/date]
; type = internal/date
; interval = 5
2021-01-27 21:43:00 +00:00
2021-01-31 18:14:03 +00:00
; date =
; date-alt = " %Y-%m-%d"
2021-01-27 21:43:00 +00:00
2021-01-31 18:14:03 +00:00
; time = %H:%M
; time-alt = %H:%M:%S
; format-prefix = 
; format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #0a6cf5
; label = %date% %time%
2021-01-27 21:43:00 +00:00
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}
2021-01-31 18:14:03 +00:00
label-muted = %{T2}%{T-} muted
2021-01-27 21:43:00 +00:00
label-muted-foreground = #666
bar-volume-width = 10
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}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
2021-01-31 18:14:03 +00:00
label-open = ${T2}%{T-}
2021-01-27 21:43:00 +00:00
label-open-foreground = ${colors.secondary}
2021-01-31 18:14:03 +00:00
label-close = ${T2}%{T-} cancel
2021-01-27 21:43:00 +00:00
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
2021-01-31 18:14:03 +00:00
2021-01-27 21:43:00 +00:00
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
2021-02-02 20:40:26 +00:00
pseudo-transparency = true
2021-01-27 21:43:00 +00:00
2021-01-31 18:14:03 +00:00
2021-01-27 21:43:00 +00:00
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini