dots/.config/polybar/config

345 lines
7.3 KiB
INI

;
; ____ _ _
; | _ \ ___ | |_ _| |__ __ _ _ __
; | |_) / _ \| | | | | '_ \ / _` | '__|
; | __/ (_) | | |_| | |_) | (_| | |
; |_| \___/|_|\__, |_.__/ \__,_|_|
; |___/
;
;~~~~~~~~~~~~~~~~~~~
; Colors & Settings
;~~~~~~~~~~~~~~~~~~~
[colors]
background = ${xrdb:background}
foreground = ${xrdb:color4}
;foreground = ${xrdb:foreground}
moderate = ${xrdb:color3}
urgent = ${xrdb:color1}
black = ${xrdb:color0}
darkgrey = ${xrdb:color8}
red = ${xrdb:color1}
green = ${xrdb:color2}
yellow = ${xrdb:color3}
blue = ${xrdb:color4}
magenta = ${xrdb:color5}
cyan = ${xrdb:color6}
white = ${xrdb:color7}
[settings]
throttle-output = 5
throttle-output-for = 10
throttle-input-for = 30
compositing-background = source
compositing-foreground = source
compositing-overline = source
compositing-underline = source
compositing-border = source
screenchange-reload = true
format-foreground = ${colors.foreground}
format-background = ${colors.background}
;~~~~~~~~~~~~~~~~~~
; Top Bar Settings
;~~~~~~~~~~~~~~~~~~
[bar/topbar]
monitor = ${env:MONITOR}
monitor-fallback = HDMI1
monitor-strict = false
modules-left = i3
modules-right = wireless-network | wired-network | battery | pulseaudio | clock
;tray-position = right
;tray-padding = 2
width = 100%
height = 28
border-size = 0
border-top-size = 0
border-bottom-size = 0
radius = 0
bottom = false
overline-size = 2
font-0 = "DejaVu Sans Mono:pixelsize=10:antialias=true;3"
font-1 = "Font Awesome 5 Brands:pixelsize=13:antialias=true;3"
font-2 = "Font Awesome 5 Free:style=Solid:pixelsize=12:antialias=true;3"
background = ${colors.background}
foreground = ${colors.foreground}
fixed-center = false
module-margin = 0
padding-right = 2
padding-left = 1
offset-x = 0
offset-y = 0
cursor-click = pointer
;~~~~~~~~~~~~~~~
; i3 Workspaces
;~~~~~~~~~~~~~~~
[module/i3]
type = internal/i3
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
enable-click = true
fuzzy-match = true
format = <label-state><label-mode>
label-mode = %mode%
label-mode-padding = 2
label-focused = %index% %name%
label-focused-padding = 2
label-focused-background = ${colors.darkgrey}
label-focused-foreground = ${colors.foreground}
label-focused-underline = ${colors.foreground}
label-focused-overline = ${colors.foreground}
label-unfocused = %index% %name%
label-unfocused-padding = 1
label-visible = %index% %name%
label-visible-padding = 1
label-urgent = %index% %name%
label-urgent-padding = 1
;~~~~~~~~~
; CPU use
;~~~~~~~~~
[module/coreuse]
type = internal/cpu
interval = 3
format-padding = 1
format = <label><ramp-coreload>
label = %{a1:termite -e "htop -s percent_cpu" & disown:} %percentage:2%% %{A}
ramp-coreload-0 =
ramp-coreload-1 =
ramp-coreload-2 =
ramp-coreload-3 =
ramp-coreload-4 =
ramp-coreload-5 =
ramp-coreload-0-foreground = ${colors.foreground}
ramp-coreload-1-foreground = ${colors.foreground}
ramp-coreload-2-foreground = ${colors.foreground}
ramp-coreload-3-foreground = ${colors.foreground}
ramp-coreload-4-foreground = ${colors.foreground}
ramp-coreload-5-foreground = ${colors.urgent}
;~~~~~~~~
; Memory
;~~~~~~~~
[module/memory]
type = internal/memory
interval = 3
format = <label>
label-padding = 1
label = %{A1:st -e "htop -s PERCENT_MEM" & disown:} %percentage_used%%%{A}
;~~~~~~~~~~~~~~
; Date + Clock
;~~~~~~~~~~~~~~
[module/clock]
type = internal/date
format = <label>
interval = 2
date = %a %d %b
; 24h system
;time = %R
; 12h system
time = %I:%M%p
label = %{A1:gsimplecal & disown:}%{A3:gsimplecal & disown:} %date% %time%%{A}%{A}
;~~~~~~~~~~~~~~~~~
; CPU Temperature
;~~~~~~~~~~~~~~~~~
[module/temperature]
type = internal/temperature
interval = 3
thermal-zone = 0
warn-temperature = 75
format = <ramp><label>
format-padding = 1
label = %{A1:termite -e "watch sensors" & disown:} %temperature-c%%{A}
ramp-0 = ""
ramp-1 = ""
ramp-2 = ""
ramp-3 = ""
ramp-4 = ""
ramp-5 = ""
ramp-5-foreground = ${colors.urgent}
format-warn = <label-warn>
label-warn = " %temperature-c%"
label-warn-padding = 1
label-warn-foreground = ${colors.urgent}
;~~~~~~~
; sndio
;~~~~~~~
[module/sndio]
type = custom/script
interval = 2
exec = ~/.script/polybar-sndio.sh
;~~~~~~~~~~~~
; PulseAudio
;~~~~~~~~~~~~
[module/pulseaudio]
type = internal/pulseaudio
use-ui-max = true
label-volume = %{A3:pavucontrol & disown:}%percentage:2%%%{A}
format-volume = <ramp-volume> <label-volume>
label-muted = " muted"
ramp-volume-0 = ""
ramp-volume-1 = ""
ramp-volume-2 = ""
ramp-volume-3 = ""
;~~~~~
; MPD
;~~~~~
[module/simple_mpd]
type = custom/script
interval = 5
exec = ~/.script/polybar-mpd.sh
;~~~~~~~~~
; Battery
;~~~~~~~~~
[module/battery]
type = internal/battery
label-padding = 30
; Use $ ls -1 /sys/class/power_supply/
battery = BAT1
adapter = AC
full-at = 98
poll-interval = 5
bar-capacity-width = 10
time-format = %H:%M
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = ""
ramp-capacity-3 = ""
ramp-capacity-4 = ""
ramp-capacity-5 = ""
ramp-capacity-6 = ""
ramp-capacity-7 = ""
ramp-capacity-8 = ""
ramp-capacity-9 = ""
ramp-capacity-0-foreground = ${colors.urgent}
ramp-capacity-1-foreground = ${colors.urgent}
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-3 = " "
animation-charging-4 = " "
animation-charging-framerate = 750
;~~~~~~~~~~~~~~~~~
; Keyboard Layout
;~~~~~~~~~~~~~~~~~
[module/keyboard]
type = internal/xkeyboard
blacklist-0 = scroll lock
format = <label-layout> <label-indicator>
format-spacing = 0
label-layout =  %layout%
label-indicator = %name%
label-indicator-padding = 2
;~~~~~~~~~~~~
; Filesystem
;~~~~~~~~~~~~
[module/filesystem]
type = internal/fs
format-mounted = <label-mounted>
label-mounted = %mountpoint% : %percentage_free%%
mount-0 = /
interval = 1200
fixed-values = false
spacing = 2
label-mounted-foreground = ${colors.moderate}
;~~~~~~~~~~~~~~~~~~~~~~~~~~
; Wireless Network / WiFi
;~~~~~~~~~~~~~~~~~~~~~~~~~~
[module/wireless-network]
type = internal/network
interface = ${env:WIRELESS}
format-connected = <ramp-signal> <label-connected>
format-packetloss = <animation-packetloss>
label-connected = %{A1:networkmanager_dmenu& disown:}%{A3:networkmanager_dmenu& disown:}%local_ip%%{A}%{A}
label-disconnected = %{A1:networkmanager_dmenu& disown:}%{A3:networkmanager_dmenu& disown:} disconnected%{A}%{A}
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-4 =
ramp-signal-5 =
animation-packetloss-0 =
animation-packetloss-1 =
animation-packetloss-0-foreground = ${colors.moderate}
animation-packetloss-1-foreground = ${colors.urgent}
animation-packetloss-framerate = 500
;~~~~~~~~~~~~~~~~~~~~~~~~~~
; Wired Network / Ethernet
;~~~~~~~~~~~~~~~~~~~~~~~~~~
[module/wired-network]
type = internal/network
interface = ${env:WIRED}
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-connected =  %local_ip%
label-disconnected =  disconnected
format-connected-foreground = ${colors.foreground}
;~~~~~~~~~~~
; Seperator
;~~~~~~~~~~~
[module/|]
type = custom/text
content = " "
; vim:ft=dosini