dot/polybar/config

189 lines
5.1 KiB
INI
Executable File

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
background = #031014
foreground = #e63e62
primary = #e63e62
secondary = #e63e62
alert = #f16c56
disabled = #6c56f1
[bar/example]
monitor = ${env:MONITOR:}
width = 100%
height = 24pt
radius = 1
; dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
border-size = 2
border-color = ${colors.primary}
padding-left = 0
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.primary}
font-0 = mononoki;2
font-1 = Noto Color Emoji:style=Regular:scale=10;2
font-2 = Noto Sans Mono CJK JP;2
font-3 = nasin\-nanpa;3
modules-left = i3 xwindow
modules-right = pulseaudio battery memory cpu date
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
; wm-restack = generic
; wm-restack = bspwm
wm-restack = i3
; override-redirect = true
[module/i3]
type = internal/i3
strip-wsnumbers = true
label-focused = %name%
label-focused-foreground = ${colors.background}
label-focused-background = ${colors.primary}
label-focused-underline= ${colors.primary}
label-focused-padding = 1
label-unfocused = %name%
label-unfocused-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
label-urgent-foreground = ${colors.background}
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title:0:50:...%
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = "󱤕 "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>
label-volume = %percentage%%
label-muted = 󱤕󱤂
label-muted-foreground = ${colors.disabled}
click-right = pavucontrol
[module/memory]
type = internal/memory
interval = 2
format-warn = <label-warn>
format-warn-prefix = "󱥡󱤧󱤖󱤨󱤀 "
format-warn-foreground = ${colors.alert}
format-prefix = "󱥡 "
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%
warn-percentage = 90%
label-warn = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-warn = <label>
format-warn-prefix = "󱥉󱤧󱤼󱤀 "
format-warn-color = ${colors.alert}
format-prefix = "󱥉"
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected!!!
[module/date]
type = internal/date
interval = 1
date = %H:%M
date-alt = %a %d/%b/%Y %H:%M:%S %W
label = 󱥫 %date%
label-foreground = ${colors.primary}
[module/battery]
type = internal/battery
battery = BAT1
format-charging-prefix-foreground = ${colors.primary}
format-charging-prefix = "󱥵󱤧󱤖󱥣 "
format-discharging-prefix-foreground = ${colors.primary}
format-discharging-prefix = "󱥵󱤧󱤖󱤨 "
label-full = "󱥵󱤼󱤀"
label-full-foreground = ${colors.primary}
label-low-foreground = ${colors.alert}
label-low = "󱥵󱤨󱤀"
[module/player-mpris-tail]
type = custom/script
exec = ~/.config/polybar/player-mpris-tail.py -f '{icon} {:artist:t25:{artist}:}{:artist: - :}{:t25:{title}:}' --icon-playing "󱥄󱤠:" --icon-paused "󱥄󱤠󱤂:" --truncate ...
tail = true
scroll-down = ~/.config/polybar/player-mpris-tail.py previous &
scroll-up = ~/.config/polybar/player-mpris-tail.py next &
click-left = ~/.config/polybar/player-mpris-tail.py play-pause &
[module/vpn]
type = custom/script
exec = $HOME/.config/polybar/polybar-vpn-controller/vpn_module.sh
click-left = $HOME/.config/polybar/polybar-vpn-controller/vpn_module.sh --toggle-connection &
click-right = $HOME/.config/polybar/polybar-vpn-controller/vpn_module.sh --location-menu &
click-middle = $HOME/.config/polybar/polybar-vpn-controller/vpn_module.sh --ip-address &
interval = 5
format = <label>
format-background = ${color.background}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini