This commit is contained in:
edwark43
2023-11-19 23:55:40 -05:00
committed by GitHub
parent f5fd9fb9f4
commit 4dc48552c7
82 changed files with 5097 additions and 2 deletions

6
config/polybar/bar.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
for mon in $(polybar --list-monitors | cut -d":" -f1); do
(MONITOR=$mon polybar -q bar1 -c "$HOME"/.config/polybar/config.ini)&
(MONITOR=$mon polybar -q bar2 -c "$HOME"/.config/polybar/config.ini)&
done

23
config/polybar/colors.ini Normal file
View File

@@ -0,0 +1,23 @@
[bar]
bg = #0b0910
bg-alt = #708491
fg = #8C8C8C
mb = #252533
trans = #00000000
white = #FFFFFF
black = #000000
red = #EC7875
pink = #EC407A
purple = #BA68C8
blue = #42A5F5
cyan = #4DD0E1
teal = #00B19F
green = #61C766
lime = #B9C244
yellow = #FDD835
amber = #FBC02D
orange = #E57C46
brown = #AC8476
grey = #8C8C8C
indigo = #6C77BB
blue-gray = #6D8895

118
config/polybar/config.ini Normal file
View File

@@ -0,0 +1,118 @@
[global/wm]
margin-bottom = 0
margin-top = 0
include-file = system.ini
include-file = colors.ini
include-file = modules.ini
[bar/bar1]
monitor = ${env:MONITOR:}
monitor-strict = false
override-redirect = false
bottom = false
fixed-center = true
width = 100%
height = 30
offset-x = 0
offset-y = 0
background = ${bar.bg}
foreground = ${bar.fg}
radius = 0
line-size = 2
line-color = ${bar.blue}
border-size = 8
border-color = ${bar.bg}
padding-left = 1
padding-right = 1
module-margin-left = 0
module-margin-right = 0
font-0 = "JetBrainsMono:style=Regular:size=9;2"
font-1 = "Material Design Icons Desktop:size=13;3"
font-2 = "Material Design Icons Desktop:size=16;4"
font-3 = "MesloLGS NF:style=Regular:size=17;4"
modules-left = sep date sep
modules-center = bspwm
modules-right = sep filesystem cpu_bar memory_bar sep network sep battery sep
separator =
dim-value = 1.0
wm-restack = bspwm
enable-ipc = true
cursor-click = pointer
cursor-scroll =
[bar/bar2]
monitor = ${env:MONITOR:}
monitor-strict = false
override-redirect = false
bottom = true
fixed-center = true
width = 100%
height = 30
offset-x = 0
offset-y = 0
background = ${bar.bg}
foreground = ${bar.fg}
radius = 0
line-size = 2
line-color = ${bar.blue}
border-size = 8
border-color = ${bar.bg}
padding-left = 1
padding-right = 1
module-margin-left = 0
module-margin-right = 0
font-0 = "JetBrainsMono:style=Regular:size=9;3"
font-1 = "Material Design Icons Desktop:size=13;4"
font-2 = "Font Awesome 6 Free Solid:size=10;3"
font-3 = "MesloLGS NF:style=Regular:size=17;4"
modules-left = title
modules-center = mpd_control sep mpd
modules-right = mod sep weather sep pulseaudio sep sep updates sep
separator =
dim-value = 1.0
wm-restack = bspwm
enable-ipc = true
cursor-click = pointer
cursor-scroll =
[settings]
screenchange-reload = false
compositing-background = source
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over
pseudo-transparency = true

276
config/polybar/modules.ini Normal file
View File

@@ -0,0 +1,276 @@
[module/date]
type = internal/date
interval = 1.0
time = %I:%M %P
format-foreground = ${bar.fg}
date-alt = " %A, %d %B %Y"
format = <label>
label = "%date% %time%"
######################################################
[module/filesystem]
type = internal/fs
mount-0 = /
interval = 60
fixed-values = false
format-mounted = <label-mounted>
format-mounted-prefix = "disk: "
format-mounted-prefix-foreground = ${bar.green}
format-unmounted = <label-unmounted>
format-unmounted-prefix = "disk: "
label-mounted = "%used% "
label-unmounted = %mountpoint%: not mounted
######################################################
[module/network]
type = internal/network
interface = ${system.sys_network_interface}
interval = 3.0
accumulate-stats = true
unknown-as-up = true
format-connected = <label-connected>
format-connected-prefix = "net: "
format-connected-foreground = ${bar.green}
speed-unit = ""
label-connected = "%netspeed%"
label-connected-foreground = ${bar.blue}
format-disconnected = <label-disconnected>
format-disconnected-prefix = "net: "
format-disconnected-foreground = ${bar.red}
label-disconnected = offline
label-disconnected-foreground = ${bar.red}
######################################################
[module/pulseaudio]
type = internal/pulseaudio
use-ui-max = true
interval = 5
;;<bar-volume>
format-volume = <label-volume>
format-volume-prefix = "vol: "
format-volume-foreground = ${bar.green}
label-volume = "%percentage%"
label-volume-foreground = ${bar.fg}
format-muted = <label-muted>
format-muted-prefix = 󰝟
label-muted = " Muted"
label-muted-foreground = ${bar.red}
######################################################
[module/battery]
type = internal/battery
full-at = 99
battery = ${system.sys_battery}
adapter = ${system.sys_adapter}
poll-interval = 2
time-format = %H:%M
format-charging = <label-charging>
format-charging-prefix = " bat: "
format-charging-prefix-font = 5
format-charging-prefix-foreground = ${bar.green}
label-charging = "%percentage%%"
format-discharging = <label-discharging>
format-discharging-prefix = " bat: "
format-discharging-prefix-font = 5
format-discharging-prefix-foreground = ${bar.green}
label-discharging = "%percentage%%"
format-full = <label-full>
format-full-prefix = " bat: "
format-full-prefix-font = 5
format-full-prefix-foreground = ${bar.green}
label-full = "%percentage%%"
######################################################
[module/weather]
type = custom/script
exec = weather wmodule
interval = 900
format = <label>
label = " %output% "
######################################################
[module/bspwm]
type = internal/bspwm
enable-click = true
enable-scroll = true
reverse-scroll = true
pin-workspaces = true
occupied-scroll = false
ws-icon-0 = 1;󰬺
ws-icon-1 = 2;󰬻
ws-icon-2 = 3;󰬼
ws-icon-3 = 4;󰬽
ws-icon-4 = 5;󰬾
ws-icon-5 = 6;󰬿
ws-icon-default = "♟ "
format = <label-state>
format-font = 3
label-focused = %icon%
label-focused-background = ${bar.mb}
label-focused-padding = 1
label-focused-foreground = ${bar.fg}
label-occupied = %icon%
label-occupied-padding = 1
label-occupied-foreground= ${bar.fg}
label-urgent = %icon%
label-urgent-padding = 1
label-empty = %icon%
label-empty-foreground = ${bar.fg}
label-empty-padding = 1
label-separator = ""
label-separator-padding = 0
label-separator-foreground = ${bar.bg-alt}
[module/mod]
type = internal/bspwm
format = <label-mode>
format-background = ${bar.bg}
format-foreground = ${bar.green}
format-padding = 1
format-font = 1
label-monocle = "monocle"
label-tiled = "tiled"
label-floating = " | float"
label-pseudotiled = " | pseudo"
label-fullscreen = " | full"
label-locked = " | locked"
label-sticky = " | sticky"
label-private = " | private"
######################################################
[module/title]
type = internal/xwindow
format = <label>
label = %title%
label-maxlen = 45
label-empty = "bspwm"
label-empty-foreground = ${bar.grey}
######################################################
[module/updates]
type = custom/script
exec = updates --get-updates
interval = 120
label = "%output%"
format-prefix = "upd: "
format-prefix-foreground = ${bar.green}
######################################################
[module/sep]
type = custom/text
label = " "
label-foreground = ${bar.bg-alt}
######################################################
[module/cpu_bar]
type = internal/cpu
interval = 0.5
format = <label>
format-prefix = "cpu: "
format-prefix-foreground = ${bar.green}
label = "%percentage%% "
######################################################
[module/memory_bar]
type = internal/memory
interval = 3
format = <label>
format-prefix = "mem: "
format-prefix-foreground = ${bar.green}
label = "%used% "
######################################################
[module/mpd_control]
type = internal/mpd
host = 127.0.0.1
port = 6600
interval = 2
format-online = <icon-prev><toggle><icon-next>
format-offline = <label-offline>
label-offline = "󰝛 No Music"
icon-play = " %{T2}󰐌"
icon-pause = " %{T2}󰏥"
icon-stop = " %{T2}󰙦"
icon-prev = "%{T2}󰼨"
icon-next = " %{T2}󰼧"
format-offline-foreground = ${bar.grey}
icon-play-foreground = ${bar.lime}
icon-pause-foreground = ${bar.lime}
icon-stop-foreground = ${bar.lime}
icon-prev-foreground = ${bar.blue}
icon-next-foreground = ${bar.blue}
toggle-on-foreground = ${bar.green}
toggle-off-foreground = ${bar.red}
######################################################
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
interval = 2
format-online = "%{F#9ece6a}[%{F-} %{A1:openapp --music:}<label-song>%{A} %{F#9ece6a}]%{F-}"
format-offline = ""
label-song = "%title%"
label-song-maxlen = 40
icon-repeat = "󰝚"
icon-repeat-background = ${bar.bg}
toggle-on-foreground = ${bar.green}
toggle-off-foreground = ${bar.red}
#####################################################

11
config/polybar/system.ini Normal file
View File

@@ -0,0 +1,11 @@
;; The variables for the polybar modules are taken from this file.
;; Edit according to your system
;; Run `ls -1 /sys/class/power_supply/` to list list batteries and adapters.
;; Run `ls -1 /sys/class/backlight/` to list available graphics cards.
;; Run `ip link | awk '/state UP/ {print $2}' | tr -d :` to get active network interface.
[system]
sys_adapter = AC
sys_battery = BAT1
sys_graphics_card = intel_backlight
sys_network_interface = wlan0