1
Fork 0
mirror of https://github.com/wlinator/dotfiles.git synced 2024-10-02 17:03:13 +00:00
dotfiles/.config/polybar/config.ini
2024-06-19 09:02:11 -04:00

219 lines
4.6 KiB
INI

[colors]
background = #ee1c1c1c
#background = #5B5C5E
background-alt = #242424
foreground = #e5e5e5
primary = #0a5a8d
secondary = #5bb5c5
alert = #ff8888
disabled = #777777
[bar/main]
monitor = ${env:MONITOR:}
width = 100%
height = 24pt
radius = 0
bottom = false
dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 0pt
border-color = #00000000
padding-left = 3
padding-right = 3
module-margin = 2
separator = |
separator-foreground = ${colors.disabled}
font-0 = DejaVu Sans:style=Condensed,Book;3
font-1 = Font Awesome 6 Free:pixelsize=12;2
font-2 = Font Awesome 6 Free Solid:pixelsize=12;2
font-3 = Font Awesome 6 Brands:pixelsize=12;2
modules-left = power xworkspaces kernelversion checkforupdates xwindow
modules-right = filesystem pulseaudio memory cpu battery wlan eth date
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
tray-position = left
tray-detached = false
; tray-offset-x = -300
; wm-restack = generic
; wm-restack = bspwm
wm-restack = i3
; override-redirect = true
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
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:70:...%
[module/kernelversion]
type = custom/script
exec = { uname; echo " "; uname -r; } | tr -d '\n'
interval = 90
[module/checkforupdates]
type = custom/script
exec = sh ~/.config/polybar/checkupdates.sh
tail = true
label =  updates: %output:0:15:...%
label-fail = 'checkupdates' failed!! Package pacman-contrib?
interval = 90
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
#label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
label-mounted =  %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
#format-volume-prefix = "VOL "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-muted =  muted
label-muted-foreground = ${colors.disabled}
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-layout-foreground = ${colors.primary}
label-indicator-padding = 2
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 = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
#format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[module/battery]
type = internal/battery
format-prefix = "BAT0 "
format-prefix-foreground = ${colors.primary}
full-at = 100
low-at = 5
battery = BAT0
poll-interval = 1
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
; Framerate in milliseconds
animation-charging-framerate = 750
format-discharging = <ramp-capacity> <label-discharging>
format-charging = <animation-charging> <label-charging>
label-discharging = %percentage%% - %consumption% W
label-charging = %percentage%% +%consumption% W
label-low =  BATTERY LOW
label-full =  Fully charged
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
#label-disconnected = ! %{F#F0C674}%ifname%%{F#707880} disconnected
label-disconnected =  disconnected !
[module/wlan]
inherit = network-base
interface-type = wireless
#label-connected =  %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
label-connected =  %essid% %local_ip%
[module/eth]
inherit = network-base
interface-type = wired
label-connected =  %{F#F0C674}%ifname%%{F-} %local_ip%
label-disconnected =
[module/date]
type = internal/date
interval = 1
date =  %I:%M %p
date-alt =  %Y-%m-%d
label = %date%
#label-foreground = ${colors.primary}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini
[module/power]
type=custom/text
content=""
click-left= exec ~/.config/rofi/powermenu/type-1/powermenu.sh