This repository has been archived on 2026-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dotfiles-inist/polybar/config
2023-10-10 08:00:37 +02:00

651 lines
16 KiB
INI

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
include-file = $HOME/.config/polybar/powerline-for-polybar/powerline-for-polybar.config
[colors]
;background = ${xrdb:color0:#222}
background = #00000000
;foreground = ${xrdb:color7:#222}
foreground = #DFDFDF
foreground-alt = #4B8783
primary = #0065CE
secondary = #005DBC
alert = #F7001B
success = #00B100
module-bg = #171717
module-bg-alt = #1E1E1E
; ============ BARS ============
[common]
monitor = ${env:MONITOR:}
width = 100%
height = 17
radius = 0
fixed-center = false
font-0 = FiraCode Nerd Font Mono:size=10:style=Retina,Regular;2
font-1 = FiraCode Nerd Font Mono:size=13:style=Retina,Regular;3
font-2 = FiraCode Nerd Font Mono:size=15:style=Retina,Regular;4
font-3 = Roboto:size=10,Regular;2
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
padding-left = 0
padding-right = 0
module-margin-right = 0
module-margin-left = 0
module-padding = 1
cursor-click = pointer
[bar/primary]
; inherit = bar/secondary
inherit = common
modules-left = powermenu i3-alt
modules-center =
modules-right = xkeyboard clipboard-alt colorpicker-alt emojipicker-alt
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
bottom = true
tray-position = right
tray-background = ${colors.module-bg}
tray-padding = 2
[bar/secondary]
inherit = common
modules-left = i3
modules-center =
modules-right = xkeyboard-alt clipboard colorpicker emojipicker
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
bottom = true
[bar/top]
inherit = common
modules-left = date dunst
modules-center =
modules-right = pulseaudio battery cpu memory temperature eth wlan vpn
; ============ MODULES ============
[module/xwindow]
type = internal/xwindow
label = %title:0:50:...%
label-font = 4
label-padding = 2
format-background = ${colors.module-bg}
format-prefix-foreground = ${colors.module-bg}
format-prefix-background = ${colors.background}
format-prefix = ""
format-suffix-foreground = ${colors.module-bg}
format-suffix-background = ${colors.background}
format-suffix = ""
[module/xkeyboard]
type = internal/xkeyboard
inherit = powerline-templates/right-to-left-item
background = ${colors.module-bg}
background-next = ${colors.background}
format = "%{} <label-indicator> %{F#6E6E6E}%{F-} <label-layout> "
format-background = ${colors.module-bg}
indicator-icon-default =
indicator-icon-0 = caps lock;C;C
indicator-icon-1 = num lock;N;N
indicator-icon-2 = scroll lock;RS;RS
label-indicator-on = "%{F#DFDFDF}%icon%%{F#DFDFDF}"
label-indicator-off = "%{F#555}%icon%%{F#DFDFDF}"
[module/xkeyboard-alt]
inherit = module/xkeyboard
background = ${colors.module-bg-alt}
format-background = ${colors.module-bg-alt}
; [module/filesystem]
; type = internal/fs
; interval = 25
; mount-0 = /
; label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
; label-unmounted = %mountpoint% not mounted
; label-unmounted-foreground = ${colors.foreground-alt}
; [module/bspwm]
; type = internal/bspwm
; label-focused = %index%
; label-focused-background = ${colors.background}
; label-focused-underline= ${colors.primary}
; label-focused-padding = 2
; label-occupied = %index%
; label-occupied-padding = 2
; label-urgent = %index%!
; label-urgent-background = ${colors.alert}
; label-urgent-padding = 2
; label-empty = %index%
; label-empty-foreground = ${colors.foreground-alt}
; label-empty-padding = 2
; Separator in between workspaces
; label-separator = |
[module/i3]
type = internal/i3
inherit = powerline-templates/left-to-right-item
background = ${colors.module-bg}
background-next = ${colors.background}
format = "%{B#171717} %{B-}<label-state><label-mode>%{B#171717} %{B-}"
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
label-mode = "%{B#171717} %{F#6E6E6E}%{F-} %{F#F7001B}%mode%%{F-}%{B-}"
; focused = Active workspace on focused monitor
label-focused = %index%
; label-focused-background = ${colors.background}
label-focused-background= ${colors.primary}
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-background = ${colors.module-bg}
label-unfocused-padding = 1
; visible = Active workspace on unfocused monitor
label-visible = %index%
; label-visible-background = ${self.label-focused-background}
label-visible-background = ${colors.secondary}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
; Separator in between workspaces
; label-separator = |
[module/i3-alt]
inherit = module/i3
format = "%{B#1E1E1E} %{B-}<label-state><label-mode>%{B#1E1E1E} %{B-}"
background = ${colors.module-bg-alt}
label-mode = "%{B#1E1E1E} %{F#6E6E6E}%{F-} %{F#F7001B}%mode%%{F-}%{B-}"
label-mode-background = ${colors.module-bg-alt}
label-unfocused-background = ${colors.module-bg-alt}
; [module/mpd]
; type = internal/mpd
; format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
; icon-prev = 
; icon-stop = 
; icon-play = 
; icon-pause = 
; icon-next = 
; label-song-maxlen = 25
; label-song-ellipsis = true
; [module/xbacklight]
; type = internal/xbacklight
; format = <label> <bar>
; label = BL
; bar-width = 10
; bar-indicator = |
; bar-indicator-foreground = #fff
; bar-indicator-font = 2
; bar-fill = ─
; bar-fill-font = 2
; bar-fill-foreground = #9f78e1
; bar-empty = ─
; bar-empty-font = 2
; bar-empty-foreground = ${colors.foreground-alt}
; [module/backlight-acpi]
; inherit = module/xbacklight
; type = internal/backlight
; card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
inherit = powerline-templates/right-to-left-item
background = ${colors.module-bg-alt}
background-next = ${colors.module-bg}
format = "%{T2}%{F#4B8783} %{F-}%{T-} <label> "
format-background = ${colors.module-bg-alt}
label = "%percentage:2%%"
[module/memory]
type = internal/memory
interval = 2
format-prefix = ""
format-prefix-foreground = #6E6E6E
format = "%{T2}%{F#4B8783} %{F-}%{T-} <label> "
format-background = ${colors.module-bg-alt}
label = %percentage_used:2%%
[module/wlan]
type = internal/network
interface = wlp0s20f3
interval = 3
inherit = powerline-templates/right-to-left-item
background = ${colors.module-bg}
background-next = ${colors.module-bg-alt}
format-connected = " 直 "
format-connected-foreground = ${colors.foreground-alt}
format-connected-background = ${colors.module-bg}
format-connected-font = 4
format-disconnected =
[module/eth]
type = internal/network
interface = enxc84bd64ef53d
interval = 3
inherit = powerline-templates/right-to-left-item
background = ${colors.module-bg}
background-next = ${colors.module-bg-alt}
format-connected = "  "
format-connected-foreground = ${colors.foreground-alt}
format-connected-background = ${colors.module-bg}
format-connected-font = 2
format-disconnected =
[module/vpn]
type = internal/network
interface = tun0
interval = 3
format-connected = " "
format-connected-foreground = ${colors.success}
format-connected-background = ${colors.module-bg}
format-connected-font = 1
; format-connected-prefix = ""
; format-connected-prefix-foreground = #6E6E6E
format-disconnected =
[module/date]
type = internal/date
interval = 5
inherit = powerline-templates/left-to-right-item
background = ${colors.module-bg}
background-next = ${colors.module-bg-alt}
date = "%d/%m"
date-alt = "%d/%m/%Y"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = "  "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-font = 2
format-background = ${colors.module-bg}
; format-underline = #0a6cf5
label = "%date% %time% "
[module/pulseaudio]
type = internal/pulseaudio
inherit = powerline-templates/right-to-left-item
background = ${colors.module-bg-alt}
background-next = ${colors.background}
format-volume = "%{} <label-volume> <bar-volume>"
format-volume-suffix = "  "
format-volume-suffix-foreground = ${colors.foreground-alt}
format-volume-suffix-font = 2
format-volume-background = ${colors.module-bg-alt}
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
format-muted-background = ${colors.module-bg-alt}
label-muted = "  "
label-muted-foreground = ${colors.alert}
label-muted-font = 2
bar-volume-width = 10
bar-volume-foreground-0 = ${colors.success}
bar-volume-foreground-1 = ${colors.success}
bar-volume-foreground-2 = ${colors.success}
bar-volume-foreground-3 = ${colors.success}
bar-volume-foreground-4 = ${colors.success}
bar-volume-foreground-5 = ${colors.success}
bar-volume-foreground-6 = ${colors.success}
bar-volume-gradient = false
bar-volume-indicator = |
; bar-volume-indicator-font = 2
bar-volume-fill =
; bar-volume-fill-font = 2
bar-volume-empty =
; bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
; [module/alsa]
; type = internal/alsa
; format-volume = <label-volume> <bar-volume>
; label-volume = VOL
; label-volume-foreground = ${root.foreground}
; format-muted-prefix = " "
; format-muted-foreground = ${colors.foreground-alt}
; label-muted = sound muted
; bar-volume-width = 10
; bar-volume-foreground-0 = #55aa55
; bar-volume-foreground-1 = #55aa55
; bar-volume-foreground-2 = #55aa55
; bar-volume-foreground-3 = #55aa55
; bar-volume-foreground-4 = #55aa55
; bar-volume-foreground-5 = #f5a70a
; bar-volume-foreground-6 = #ff5555
; bar-volume-gradient = false
; bar-volume-indicator = |
; bar-volume-indicator-font = 2
; bar-volume-fill = ─
; bar-volume-fill-font = 2
; bar-volume-empty = ─
; bar-volume-empty-font = 2
; bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 90
low-at = 10
format-charging = "<animation-charging> <label-charging> "
format-charging-prefix-foreground = ${colors.module-bg}
format-charging-prefix-background = ${colors.module-bg-alt}
format-charging-prefix = ""
format-charging-background = ${colors.module-bg}
format-discharging = "<ramp-capacity> <label-discharging> "
format-discharging-prefix-foreground = ${colors.module-bg}
format-discharging-prefix-background = ${colors.module-bg-alt}
format-discharging-prefix = ""
format-discharging-background = ${colors.module-bg}
format-low-prefix-foreground = ${colors.module-bg}
format-low-prefix-background = ${colors.module-bg-alt}
format-low-prefix = ""
format-low = "<animation-low> <animation-low> "
format-low-background = ${colors.module-bg}
format-full = "%{T2} %{T-} <label-full> "
format-full-prefix-foreground = ${colors.module-bg}
format-full-prefix-background = ${colors.module-bg-alt}
format-full-prefix = ""
format-full-foreground = ${colors.success}
format-full-background = ${colors.module-bg}
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
animation-charging-font = 2
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
ramp-capacity-foreground = ${colors.foreground-alt}
ramp-capacity-font = 2
animation-low-0 = " "
animation-low-1 = " "
animation-low-foreground = ${colors.alert}
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format-prefix = ""
format-prefix-foreground = #6E6E6E
format-warn-prefix = ""
format-warn-prefix-foreground = #6E6E6E
format = <ramp> <label>
format-background = ${colors.module-bg-alt}
format-warn = <ramp> <label-warn>
format-warn-background = #f50a4d
label = "%temperature-c% "
label-warn = "%temperature-c% "
label-warn-foreground = ${colors.secondary}
ramp-0 = " "
ramp-1 = " "
ramp-2 = " "
ramp-foreground = ${colors.foreground-alt}
[module/github]
type = internal/github
label = %notifications%
format-background = ${colors.module-bg}
format-prefix = "  "
format-prefix-font = 2
format-prefix-foreground = ${colors.foreground-alt}
format-suffix = " "
format-suffix-foreground = #6E6E6E
click-left = "xdg-open https://github.com/notifications"
; Accessing an access token stored in an environment variable
token = "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"
; The github user for the token
; Effectively required; otherwise the module uses a deprecated method of fetching
; notifications, which has stopped working
user = oxypomme
; Whether empty notifications should be displayed or not
empty-notifications = true
; Number of seconds in between requests
interval = 10
; Github API URL
; Default: https://api.github.com/
api-url = https://api.github.com/
; [module/powermenu]
; type = custom/menu
; inherit = powerline-templates/left-to-right-item
; background = ${colors.module-bg}
; background-next = ${colors.module-bg-alt}
; expand-right = true
; format-spacing = 1
; format-background = ${colors.module-bg}
; label-open = "  "
; label-open-foreground = ${colors.primary}
; label-open-font = 3
; label-close = " "
; label-close-foreground = ${colors.primary}
; label-close-font = 3
; label-separator = |
; label-separator-foreground = ${colors.foreground-alt}
; menu-0-0 = 
; menu-0-0-exec = menu-open-1
; menu-0-1 = " "
; menu-0-1-exec = menu-open-2
; menu-1-0 = 
; menu-1-0-exec = menu-open-0
; menu-1-1 = " "
; menu-1-1-exec = sudo reboot
; menu-2-0 = 
; menu-2-0-exec = menu-open-0
; menu-2-1 = " "
; menu-2-1-exec = sudo poweroff
[module/powermenu]
type = custom/text
inherit = powerline-templates/left-to-right-item
background = ${colors.module-bg}
background-next = ${colors.module-bg-alt}
content = "  "
content-font = 3
content-foreground = ${colors.primary}
content-background = ${colors.module-bg}
click-left = $HOME/.config/rofi/scripts/powermenu_t2 &
[module/colorpicker]
type = custom/text
content = "%{T2}%{T-}"
click-left = "gpick --class=floating_window"
content-background = ${colors.module-bg}
content-padding = ${common.module-padding}
[module/colorpicker-alt]
inherit = module/colorpicker
content-background = ${colors.module-bg-alt}
[module/emojipicker]
type = custom/text
content = "%{T2}%{T-}"
click-left = $HOME/.config/rofi.custom/emojis/emoji.sh &
content-background = ${colors.module-bg}
content-padding = ${common.module-padding}
[module/emojipicker-alt]
inherit = module/emojipicker
content-background = ${colors.module-bg-alt}
content-suffix-foreground = ${colors.module-bg}
content-suffix-background = ${colors.module-bg-alt}
content-suffix = " "
[module/clipboard]
type = custom/text
content = " %{T1}%{T-} "
click-left = $HOME/.config/rofi.custom/clipboard/clipboard.sh &
inherit = powerline-templates/right-to-left-item
background = ${colors.module-bg}
background-next = ${colors.module-bg-alt}
content-background = ${colors.module-bg}
[module/clipboard-alt]
inherit = module/clipboard
background = ${colors.module-bg-alt}
background-next = ${colors.module-bg}
content-background = ${colors.module-bg-alt}
[module/dunst]
type = custom/script
inherit = powerline-templates/left-to-right-item
background = ${colors.module-bg-alt}
background-next = ${colors.background}
format = "%{} <label> "
format-background = ${colors.module-bg-alt}
exec = $HOME/.config/polybar/scripts/dunst.sh
click-left = $HOME/.config/rofi.custom/notifications/notification.sh &
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini