dotfiles/bigg/polybar/config.ini
2023-05-03 18:59:40 +03:00

557 lines
12 KiB
INI

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
background = #ccfdf6e3
; background = #00fdf6e3
background-alt = #ccfdf6e3
foreground = #657b83
primary = #657b83
secondary = #657b83
alert = #A54242
disabled = #707880
[settings]
screenchange-reload = true
pseudo-transparency = true
[bar/biggtop]
width = 100%
height = 15pt
radius = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 0pt
border-color = #00000000
padding-left = 1
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2
font-1 = PowerlineSymbols:size=10;2
font-2 = SymbolsNerdFont:size=10;2
modules-left = xwin-bigg
modules-center = date
modules-right = openvpn wireguard ethernet memory swap cpu pulseaudio xkeyboard powermenu
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
monitor = DVI-D-0
[bar/smoltop]
width = 100%
height = 15pt
radius = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 0pt
border-color = #00000000
padding-left = 1
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2
font-1 = PowerlineSymbols:size=10;2
font-2 = SymbolsNerdFont:size=10;2
modules-left = xwin-smol
modules-center = date
modules-right = pulseaudio xkeyboard powermenu
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = false
monitor = HDMI-A-0
[bar/biggbott]
bottom = true
width = 100%
height = 15pt
radius = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 0pt
border-color = #00000000
; padding-left = 1
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2
font-1 = PowerlineSymbols:size=10;2
font-2 = SymbolsNerdFont:size=10;2
modules-left = i3
modules-right = mpd mpdvol weather updates uptime
cursor-click = pointer
cursor-scroll = ns-resize
; enable-ipc = false
enable-ipc = true
monitor = DVI-D-0
tray-position = right
[bar/smolbott]
bottom = true
width = 100%
height = 15pt
radius = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 0pt
border-color = #00000000
; padding-left = 1
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2
font-1 = PowerlineSymbols:size=10;2
font-2 = SymbolsNerdFont:size=10;2
modules-left = i3
; modules-right = filesystem
modules-right = root home storage
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = false
monitor = HDMI-A-0
; tray-position = right
###############
# CUSTOMS #
###############
[module/weather]
; format-background = ${colors.background-alt}
type = custom/script
; hook-0 = ~/.config/polybar/scripts/weather-plugin.sh
# exec = ~/.config/polybar/scripts/weather-plugin.sh
exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr ':' ' '
tail = false
interval = 900
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/updates.sh
interval = 600
[module/uptime]
type = custom/script
format-prefix = "󰅔 "
# exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' )
# exec = uptime | sed 's/.*up //g;s/,.*user.*//g'
exec = uptime | sed 's/.*up //;s/,.*user.*//' | tr ' ' ' '
interval = 60
[module/mpdvol]
type = custom/ipc
interval = 10
initial = 1
# hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%)
hook-0 = echo 󰴸 $(mpc --host=192.168.0.186 status %volume%)
hook-1 = mpc --host=192.168.0.186 volume +1 > /dev/null
hook-2 = mpc --host=192.168.0.186 volume -1 > /dev/null
hook-3 = mpc --host=192.168.0.186 toggleoutput 1 > /dev/null
hook-4 = mpc --host=192.168.0.186 volume +5 > /dev/null
hook-5 = mpc --host=192.168.0.186 volume -5 > /dev/null
# exec = echo  $(mpc --host=192.168.0.186 status %volume%)
# scroll-up = mpc --host=192.168.0.186 volume +5
# scroll-down = mpc --host=192.168.0.186 volume -5
# click-left = mpc --host=192.168.0.186 toggleoutput 1
[module/ddcci]
type = custom/script
exec = echo `ddcutil getvcp 10` | sed 's/VCP code 0x10 (Brightness ): current value = //'| sed 's/, max value = 100//'
interval = 20
format-prefix = "󰍹 "
format-suffix = "%"
click-left = ddcutil setvcp 10 + 10
click-right = ddcutil setvcp 10 - 10
click-middle = ddcutil setvcp 10 0
double-click-left = ddcutil setvcp 10 + 25
double-click-right = ddcutil setvcp 10 - 25
[module/powermenu]
type = custom/menu
menu-0-0 = Poweroff
menu-0-0-exec = poweroff
menu-0-1 = Suspend
menu-0-1-exec = systemctl suspend
label-open =
[module/openvpn]
type = custom/script
exec = hostname -i | sed 's#.*10\.8#10\.8#' | sed 's# 10.66.66.2*##'
exec-if = pgrep -x openvpn
tail = true
interval = 5
format-prefix = "󰢭 "
###############
# INTERNAL #
###############
[module/i3]
type = internal/i3
pin-workspaces = true
enable-scroll = true
show-urgent = true
strip-wsnumbers = true
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 1
label-unfocused = %name%
label-unfocused-padding = 1
label-visible = %name%
label-visible-padding = 1
label-urgent = %name%
label-urgent-foreground = #fdf6e3
label-urgent-background = #9a847c
label-urgent-underline = #9a847c
label-urgent-padding = 1
[xwindow-main]
type = internal/xwindow
label =  %title%
label-ellipsis = true
; label-padding-right = 2
[module/xwin-bigg]
inherit = xwindow-main
label-maxlen = 123
[module/xwin-smol]
inherit = xwindow-main
label-maxlen = 59
[filesystem]
type = internal/fs
interval = 25
label-mounted = 󰋊 %mountpoint% %used%/%total%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/root]
inherit = filesystem
mount-0 = /
[module/home]
inherit = filesystem
mount-0 = /home
[module/storage]
inherit = filesystem
mount-0 = /storage
[module/mpd]
type = internal/mpd
host = 192.168.0.186
port = 6600
; password = mysecretpassword
interval = 1
; Available tags:
; <label-song> (default)
; <label-time>
; <bar-progress>
; <toggle> - gets replaced with <icon-(pause|play)>
; <toggle-stop> - gets replaced with <icon-(stop|play)>
; <icon-random>
; <icon-repeat>
; <icon-repeatone> (deprecated)
; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone>
; <icon-consume>
; <icon-prev>
; <icon-stop>
; <icon-play>
; <icon-pause>
; <icon-next>
; <icon-seekb>
; <icon-seekf>
format-online = 󰝚 Now playing: <label-song> | <label-time> | <icon-prev> <icon-stop> <toggle> <icon-next>
format-playing = ${self.format-online}
format-paused = ${self.format-online}
format-stopped = Press! -> <toggle> <-
format-offline = <label-offline>
; Available tokens:
; %artist%
; %album-artist%
; %album%
; %date%
; %title%
; Default: %artist% - %title%
label-song = %artist% - %title:0:100%
label-time = %elapsed% / %total%
label-offline = 󰝚 mpd is offline
icon-play =
icon-pause =
icon-stop =
icon-prev =
icon-next =
[module/temperature]
type = internal/temperature
; Seconds to sleep between updates
; Default: 1
interval = 1
format =  <label>
; Thermal zone to use
; To list all the zone types, run
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
; Default: 0
; thermal-zone = 0
; Full path of temperature sysfs path
; Use `sensors` to find preferred temperature source, then run
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
; to find path to desired file
; Default reverts to thermal zone setting
; hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
hwmon-path = /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp2_input
; Base temperature for where to start the ramp (in degrees celsius)
; Default: 0
base-temperature = 20
; Threshold temperature to display warning label (in degrees celsius)
; Default: 80
warn-temperature = 80
[module/pulseaudio]
type = internal/pulseaudio
; Available tags:
; <label-volume> (default)
; <ramp-volume>
; <bar-volume>
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-muted = 󰖁
label-muted-foreground = ${colors.disabled}
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = false
; Right and Middle click
click-right = kitty pulsemixer
; click-middle =
; Only applies if <ramp-volume> is used
ramp-volume-0 = 󰕿
ramp-volume-1 = 󰖀
ramp-volume-2 = 󰕾
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = 󰌌 %layout%
label-layout-foreground = ${colors.primary}
label-indicator-padding = 1
label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
# format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = 󰍛 %gb_used%/%gb_total%
[module/swap]
type = internal/memory
interval = 2
# format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = 󰋊 %swap_used%/%swap_total%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "󰻠 "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
; Available tags:
; <label> (default)
; <bar-load>
; <ramp-load>
; <ramp-coreload>
; format = <label> <ramp-coreload>
; Spacing (number of spaces, pixels, points) between individual per-core ramps
ramp-coreload-spacing = 1
ramp-coreload-0 =
ramp-coreload-1 =
ramp-coreload-2 =
ramp-coreload-3 =
ramp-coreload-4 =
ramp-coreload-5 =
ramp-coreload-6 =
ramp-coreload-7 =
[module/freq]
type = custom/script
format = <label> MHz
exec = cat /proc/cpuinfo | grep MHz | sed 's/cpu MHz//' | sed 's/://' | awk '{print int($1+0.5)}'
# tail = true
click-left = kill -USR1 %pid%
format-prefix = " "
interval = 3
[module/wireguard]
type = internal/network
interface = wg
interface-type = wired
interval = 3.0
#ping-interval = 5
; unknown-as-up = true
label-connected = 󰒄 %ifname% %local_ip%
label-disconnected = 󰒄 %local_ip%
# [module/tun0]
# type = internal/network
# interface = tun0
# interface-type = wired
# interval = 3.0
# ping-interval = 5
# label-connected = 󰖂 %local_ip%
# label-disconnected =
[module/ethernet]
type = internal/network
interface = enp37s0
interface-type = wired
interval = 3.0
#ping-interval = 5
; accumulate-stats = true
; unknown-as-up = true
; speed-unit = ''
; format-connected = <ramp-signal> <label-connected>
; format-disconnected = <label-disconnected>
; format-packetloss = <animation-packetloss> <label-connected>
; All labels support the following tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %upspeed% [wireless+wired]
; %downspeed% [wireless+wired]
; %netspeed% [wireless+wired] (%upspeed% + %downspeed%) (New in version 3.6.0)
; %linkspeed% [wired]
; %mac% [wireless+wired] (New in version 3.6.0)
label-connected = 󰱔 %local_ip%
label-disconnected = 󰅛󰅖
[module/date]
type = internal/date
interval = 1
date = %a %d/%m %H:%M
date-alt = %H:%M:%S
label = 󰥔 %date%
label-foreground = ${colors.primary}
right-click = kitty ikhal
; vim:ft=dosini