old-dotfiles/.config/polybar/config

405 lines
9.3 KiB
Plaintext
Raw Permalink Normal View History

2023-04-18 10:01:23 +02:00
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains a lot of information
;
;=====================================================
; find icon name : fc-match -a |grep -i Material
; to find icon: xfd -fa MaterialIcons,
; echo "\ueXXX" to print and paste here
;This file has been edited by squash
[colors]
background = ${xrdb:background:#222}
foreground = ${xrdb:foreground:#222}
dark-black = ${xrdb:color0:#222}
black = ${xrdb:color8:#222}
dark-red = ${xrdb:color1:#222}
red = ${xrdb:color9:#222}
dark-green = ${xrdb:color2:#222}
green = ${xrdb:color10:#222}
dark-yellow = ${xrdb:color3:#222}
yellow = ${xrdb:color11:#222}
dark-blue = ${xrdb:color4:#222}
blue = ${xrdb:color12:#222}
dark-magenta = ${xrdb:color5:#222}
magenta = ${xrdb:color13:#222}
dark-cyan = ${xrdb:color6:#222}
cyan = ${xrdb:color14:#222}
dark-white = ${xrdb:color7:#222}
white = ${xrdb:color15:#222}
warning = ${xrdb:color3:#222}
active-led = ${xrdb:color1:#222}
foreground-alt = #555
primary = #F1FA8C
secondary = #e60053
alert = #FF5555
[bar/bspbar1]
monitor = ${env:MONITOR:DVI-D-0}
width = 100%:-10
height = 25
offset-x = 5
offset-y = 5
# radius = 12
fixed-center = true
background = ${xrdb:background}
foreground = ${xrdb:foreground}
line-size = 3
padding-left = 3
padding-right = 3
module-margin-left = 2
module-margin-right = 1
font-0 = Google Sans:style=bold:antialias=true:pixelsize=11;1
font-1 = Material Icons:size=12;2
font-2 = Iosevka:size=12;1
tray-position = right
tray-background = ${colors.background}
modules-left = powermenu bspwm
modules-center = xwindow
modules-right = volume date
wm-restack = bspwm
[bar/bspbar2]
monitor = ${env:MONITOR:HDMI-0}
width = 1910
height = 25
offset-x = 5
offset-y = 5
# radius = 12
fixed-center = true
background = ${xrdb:background}
foreground = ${xrdb:foreground}
line-size = 3
padding-left = 3
padding-right = 3
module-margin-left = 2
module-margin-right = 1
font-0 = Google Sans:style=bold:antialias=true:pixelsize=11;1
font-1 = Material Icons:size=12;2
font-2 = Iosevka:size=12;1
modules-left = bspwm
modules-center = xwindow
modules-right = spotify cpu memory network
tray-position = right
tray-background = ${colors.background}
wm-restack = bspwm
[module/xwindow]
type = internal/xwindow
label = %title:0:35:...%
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
;format-connected-underline = ${colors.primary}
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
format-mounted-prefix = " "
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
module-margin-left = 4
module-margin-right = 4
index-sort = true
fuzzy-match = true
format = <label-state> <label-mode>
ws-icon-0 = ""
ws-icon-1 = "♛"
ws-icon-2 = graphics;♜
ws-icon-3 = mail;♝
ws-icon-4 = web;♞
label-focused = %name%
label-focused-background = ${xrdb:background}
label-focused-underline= ${xrdb:color9}
label-focused-padding = 1
label-occupied = %name%
label-occupied-foreground = ${xrdb:foreground}
label-occupied-padding = 1
label-urgent = %name%
label-urgent-background = ${xrdb:color3}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${xrdb:color8}
label-empty-padding = 1
[module/spotify]
type = custom/script
interval = 1
format-prefix = " "
format = <label>
exec = python $HOME/.config/polybar/polybar-spotify/spotify_status.py -f '{artist}: {song}'
format-underline = #1db954
;control players (optional)
click-left = playerctl --player=spotify play-pause
click-right = playerctl --player=spotify next
click-middle = playerctl --player=spotify previous
[module/mpd]
type = internal/mpd
format-online = <icon-prev> <toggle> <icon-next> <label-song>
# format-online = <icon-prev> <toggle> <icon-next> <label-song> | <bar-progress>
format-online-underline = ${colors.dark-yellow}
host = 127.0.0.1
port = 6600
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 35
label-song-ellipsis = true
bar-progress-width = 10
bar-progress-indicator = ""
bar-progress-fill = ━
bar-progress-empty = ━
[module/volume]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
format-volume-underline = ${colors.dark-green}
label-volume = " "
label-volume-foreground = ${colors.foreground}
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
format-muted-underline = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 10
bar-volume-foreground-0 = ${xrdb:color2}
bar-volume-foreground-1 = ${xrdb:color2}
bar-volume-foreground-2 = ${xrdb:color2}
bar-volume-foreground-3 = ${xrdb:color2}
bar-volume-foreground-4 = ${xrdb:color2}
bar-volume-foreground-5 = ${xrdb:color3}
bar-volume-foreground-6 = ${xrdb:color1}
bar-volume-underline = ${xrdb:color1}
bar-volume-gradient = true
bar-volume-indicator = ━
bar-volume-indicator-font = 1
bar-volume-fill = ━
bar-volume-fill-font = 1
bar-volume-empty = ━
bar-volume-empty-font = 1
bar-volume-empty-foreground = ${xrdb:color0}
[module/network]
type = internal/network
interface = enp3s0
format-connected-prefix = "%{T3} %{T-}"
format-connected-prefix-foreground = ${colors.foreground}
format-connected-prefix-background = ${colors.background}
format-connected-underline = ${colors.dark-magenta}
format-connected = <label-connected>
format-connected-foreground = ${colors.foreground}
format-connected-background = ${colors.background}
label-connected = "%{A1:nm-connection-editor:}%downspeed:9%%{A}"
label-connected-foreground = ${colors.foreground}
label-connected-background = ${colors.background}
format-disconnected-prefix = "%{T3} %{T-}"
format-disconnected-prefix-foreground = ${colors.black}
format-disconnected-prefix-background = ${colors.background}
format-disconnected-underline = ${colors.black}
format-disconnected = <label-disconnected>
format-disconnected-foreground = ${colors.black}
format-disconnected-background = ${colors.background}
label-disconnected = "-"
label-disconnected-foreground = ${colors.black}
label-disconnected-background = ${colors.background}
[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = ${xrdb:color3}
animation-charging-0 = 
animation-charging-1 = 
format-discharging = <label-discharging>
label-discharging =  %percentage%%
format-discharging-underline = ${xrdb:color5}
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${xrdb:color2}
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "%{F#fff} %{F-} "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${xrdb:color6}
label = %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = "%{F#fff} %{F-}"
format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${xrdb:color1}
label = %percentage_used%%
[module/date]
type = internal/date
interval = 5
date = " %A, %d %B"
time = %H:%M
format-prefix = " "
format-prefix-foreground = ${colors.foreground}
format-underline = ${xrdb:color4}
label = %time% %date%
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
expand-right = true
label-open = "  "
label-open-foreground = ${colors.dark-red}
label-open-underline = ${colors.dark-red}
label-close = "  "
label-close-foreground = ${colors.white}
label-close-underline = ${colors.white}
menu-0-0 = "  "
menu-0-0-foreground = ${colors.dark-cyan}
menu-0-0-underline = ${colors.dark-cyan}
menu-0-0-exec = betterlockscreen -l
menu-0-1 = "  "
menu-0-1-foreground = ${colors.dark-green}
menu-0-1-underline = ${colors.dark-green}
menu-0-1-exec = kill -9 -1
menu-0-2 = "  "
menu-0-2-foreground = ${colors.dark-yellow}
menu-0-2-underline = ${colors.dark-yellow}
menu-0-2-exec = shutdown -r now
menu-0-3 = "  "
menu-0-3-foreground = ${colors.dark-red}
menu-0-3-underline = ${colors.dark-red}
menu-0-3-exec = shutdown -h now
[settings]
screenchange-reload = true
compositing-background = xor
;compositing-background = screen
compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = -10
margin-bottom = -10
; vim:ft=dosini