241 lines
5.8 KiB
INI
241 lines
5.8 KiB
INI
;==========================================================
|
|
;
|
|
; 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}
|
|
background = #aa000000
|
|
background-alt = #aa000000
|
|
;foreground = ${xrdb:color7:#222}
|
|
foreground = #dfdfdf
|
|
foreground-alt = #555
|
|
foreground-1 = #fbcdeb
|
|
primary = #ffb52a
|
|
secondary = #e60053
|
|
alert = #bd2c40
|
|
|
|
|
|
|
|
[bar/saitama]
|
|
;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
|
|
|
|
font-0 = "Monofur Nerd Font Mono:size=12:weight=bold"
|
|
font-1 = "FontAwesome:size=12"
|
|
|
|
; modules-left = publicip filesystem
|
|
modules-left = filesystem
|
|
modules-center = mpd
|
|
modules-right = pulseaudio
|
|
|
|
tray-position = right
|
|
tray-padding = 2
|
|
;tray-background = #0063ff
|
|
|
|
cursor-click = pointer
|
|
cursor-scroll = ns-resize
|
|
|
|
enable-ipc = true
|
|
|
|
|
|
|
|
[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
|
|
host = 127.0.0.1
|
|
port = 6600
|
|
interval = 2
|
|
; format-online = "<icon-prev> <icon-stop> %{F#fbcdeb}<label-song>%{F-} %{F#1592a6}<label-time>%{F-} <toggle> <icon-next>"
|
|
format-online = "%{F#fbcdeb}<label-song>%{F-} %{F#1592a6}<label-time>%{F-}"
|
|
|
|
icon-prev = %{T2}%{T-}
|
|
icon-stop = %{T2}%{T-}
|
|
icon-play = %{T2}%{T-}
|
|
icon-pause = %{T2}%{T-}
|
|
icon-next = %{T2}%{T-}
|
|
|
|
; label-song = %artist%:
|
|
label-song = %artist% - %title%:
|
|
label-song-maxlen = 50
|
|
label-song-ellipsis = true
|
|
label-time = %elapsed% / %total%
|
|
|
|
|
|
|
|
[module/publicip]
|
|
type = custom/script
|
|
exec = "curl --silent -L 'ipinfo.io?token=2a605445c3e4fe' | jq -r '.ip'"
|
|
interval = 86400
|
|
format-underline = #268bd2
|
|
format-prefix = "%{T2}%{T-} "
|
|
format-prefix-foreground = #5b
|
|
|
|
|
|
|
|
[module/eth]
|
|
type = internal/network
|
|
interface = enp3s0
|
|
interval = 3.0
|
|
|
|
format-connected-underline = #55aa55
|
|
format-connected-prefix = "%{T2}%{T-} "
|
|
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 = #0a6cf5
|
|
|
|
; label = %date% %time%
|
|
|
|
|
|
|
|
[module/pulseaudio]
|
|
type = internal/pulseaudio
|
|
|
|
format-volume = <label-volume> <bar-volume>
|
|
label-volume = VOL %percentage%%
|
|
label-volume-foreground = ${root.foreground}
|
|
|
|
label-muted = %{T2}%{T-} muted
|
|
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
|
|
|
|
label-open = ${T2}%{T-}
|
|
label-open-foreground = ${colors.secondary}
|
|
label-close = ${T2}%{T-} cancel
|
|
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
|
|
|
|
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
;compositing-background = xor
|
|
;compositing-background = screen
|
|
;compositing-foreground = source
|
|
;compositing-border = over
|
|
pseudo-transparency = true
|
|
|
|
|
|
|
|
[global/wm]
|
|
margin-top = 5
|
|
margin-bottom = 5
|
|
|
|
; vim:ft=dosini
|