dotfiles/bigg/polybar/config.ini

525 lines
12 KiB
INI
Raw Normal View History

2023-02-14 17:25:15 +00:00
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; 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-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
2023-05-13 20:33:27 +00:00
separator =
2023-02-14 17:25:15 +00:00
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
2023-02-27 19:56:21 +00:00
modules-right = openvpn wireguard ethernet memory swap cpu pulseaudio xkeyboard powermenu
2023-02-14 17:25:15 +00:00
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
2023-05-13 20:33:27 +00:00
separator =
2023-02-14 17:25:15 +00:00
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
2023-02-27 19:56:21 +00:00
modules-right = pulseaudio xkeyboard powermenu
2023-02-14 17:25:15 +00:00
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
2023-05-13 20:33:27 +00:00
# padding-left = 1
2023-02-14 17:25:15 +00:00
padding-right = 1
module-margin = 1
2023-05-13 20:33:27 +00:00
separator =
2023-02-14 17:25:15 +00:00
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
2023-02-27 19:56:21 +00:00
modules-right = mpd mpdvol weather updates uptime
2023-02-14 17:25:15 +00:00
cursor-click = pointer
cursor-scroll = ns-resize
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
2023-05-13 20:33:27 +00:00
# padding-left = 1
2023-02-14 17:25:15 +00:00
padding-right = 1
module-margin = 1
2023-05-13 20:33:27 +00:00
separator =
2023-02-14 17:25:15 +00:00
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
2023-02-27 19:56:21 +00:00
modules-right = root home storage
2023-02-14 17:25:15 +00:00
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = false
monitor = HDMI-A-0
###############
# CUSTOMS #
###############
[module/weather]
type = custom/script
2023-05-13 20:33:27 +00:00
exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr -d ':,-'
2023-02-14 17:25:15 +00:00
tail = false
2023-05-13 20:33:27 +00:00
interval = 1800
2023-02-14 17:25:15 +00:00
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/updates.sh
2023-04-24 16:52:12 +00:00
interval = 600
2023-02-14 17:25:15 +00:00
2023-02-27 19:56:21 +00:00
[module/uptime]
type = custom/script
2023-04-24 16:52:12 +00:00
format-prefix = "󰅔 "
exec = uptime | sed 's/.*up //;s/,.*user.*//' | tr ' ' ' '
2023-02-27 19:56:21 +00:00
interval = 60
2023-02-14 17:25:15 +00:00
[module/mpdvol]
2023-04-01 20:37:44 +00:00
type = custom/ipc
interval = 10
initial = 1
2023-05-03 15:59:40 +00:00
hook-0 = echo 󰴸 $(mpc --host=192.168.0.186 status %volume%)
2023-04-01 20:37:44 +00:00
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
2023-04-24 16:52:12 +00:00
hook-4 = mpc --host=192.168.0.186 volume +5 > /dev/null
hook-5 = mpc --host=192.168.0.186 volume -5 > /dev/null
2023-04-01 20:37:44 +00:00
2023-02-14 17:25:15 +00:00
[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
2023-05-03 15:59:40 +00:00
format-prefix = "󰍹 "
2023-02-14 17:25:15 +00:00
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 =
2023-04-01 20:37:44 +00:00
[module/openvpn]
type = custom/script
2023-04-24 16:52:12 +00:00
exec = hostname -i | sed 's#.*10\.8#10\.8#' | sed 's# 10.66.66.2*##'
2023-04-01 20:37:44 +00:00
exec-if = pgrep -x openvpn
tail = true
interval = 5
format-prefix = "󰢭 "
2023-02-14 17:25:15 +00:00
###############
# 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
[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>
2023-05-13 20:33:27 +00:00
format-online = 󰝚 Now playing: <label-song> <label-time> <icon-prev> <icon-stop> <toggle> <icon-next>
2023-02-14 17:25:15 +00:00
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%
2023-05-06 20:08:15 +00:00
label-song = %artist% - %title:0:115%
2023-02-14 17:25:15 +00:00
label-time = %elapsed% / %total%
2023-04-24 16:52:12 +00:00
label-offline = 󰝚 mpd is offline
2023-02-14 17:25:15 +00:00
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%%
2023-05-03 15:59:40 +00:00
label-muted = 󰖁
2023-02-14 17:25:15 +00:00
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
2023-04-24 16:52:12 +00:00
click-right = kitty pulsemixer
2023-02-14 17:25:15 +00:00
; click-middle =
; Only applies if <ramp-volume> is used
2023-05-03 15:59:40 +00:00
ramp-volume-0 = 󰕿
ramp-volume-1 = 󰖀
ramp-volume-2 = 󰕾
2023-02-14 17:25:15 +00:00
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
2023-05-03 15:59:40 +00:00
label-layout = 󰌌 %layout%
2023-02-14 17:25:15 +00:00
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}
2023-05-03 15:59:40 +00:00
label = 󰍛 %gb_used%/%gb_total%
2023-02-27 19:56:21 +00:00
[module/swap]
type = internal/memory
interval = 2
# format-prefix = " "
format-prefix-foreground = ${colors.primary}
2023-05-03 15:59:40 +00:00
label = 󰋊 %swap_used%/%swap_total%
2023-02-14 17:25:15 +00:00
[module/cpu]
type = internal/cpu
interval = 2
2023-05-03 15:59:40 +00:00
format-prefix = "󰻠 "
2023-02-14 17:25:15 +00:00
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 =
2023-04-01 20:37:44 +00:00
[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
2023-02-14 17:25:15 +00:00
[module/wireguard]
type = internal/network
interface = wg
interface-type = wired
interval = 3.0
2023-05-03 15:59:40 +00:00
#ping-interval = 5
2023-02-14 17:25:15 +00:00
; unknown-as-up = true
label-connected = 󰒄 %ifname% %local_ip%
2023-02-27 19:56:21 +00:00
label-disconnected = 󰒄 %local_ip%
2023-02-14 17:25:15 +00:00
[module/ethernet]
type = internal/network
interface = enp37s0
interface-type = wired
interval = 3.0
2023-05-03 15:59:40 +00:00
#ping-interval = 5
2023-02-14 17:25:15 +00:00
; 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)
2023-02-27 19:56:21 +00:00
label-connected = 󰱔 %local_ip%
2023-02-14 17:25:15 +00:00
label-disconnected = 󰅛󰅖
[module/date]
type = internal/date
interval = 1
date = %a %d/%m %H:%M
date-alt = %H:%M:%S
2023-05-03 15:59:40 +00:00
label = 󰥔 %date%
2023-02-14 17:25:15 +00:00
label-foreground = ${colors.primary}
2023-04-24 16:52:12 +00:00
right-click = kitty ikhal
2023-02-14 17:25:15 +00:00
; vim:ft=dosini