123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- ;==========================================================
- ;
- ;
- ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
- ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
- ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
- ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
- ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
- ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
- ;
- ;
- ; By: Anas Elgarhy: @anas-elgarhy, @anaselgarhy
- ;
- ;==========================================================
- [colors]
- background = #282A2E
- background-alt = #373B41
- foreground = #C5C8C6
- primary = #F0C674
- secondary = #8ABEB7
- alert = #A54242
- disabled = #707880
- [bar/example]
- width = 100%
- height = 20pt
- radius = 6
- ; dpi = 96
- background = ${colors.background}
- foreground = ${colors.foreground}
- line-size = 3pt
- border-size = 2pt
- border-color = #00000000
- padding-left = 0
- padding-right = 1
- module-margin = 1
- separator = |
- separator-foreground = ${colors.disabled}
- font-0 = "FiraCode Nerd Font:size=13;0"
- ; https://github.com/polybar/polybar/wiki/Known-Issues#huge-emojis
- font-1 = "NotoColorEmoji:scale=10;1"
- modules-left = xworkspaces xwindow
- modules-right = pulseaudio xkeyboard memory cpu backlight battery date
- cursor-click = pointer
- cursor-scroll = ns-resize
- enable-ipc = true
- tray-position = right
- ; 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:60:...%
- [module/pulseaudio]
- type = internal/pulseaudio
- label-muted = 🔇 muted
- label-muted-foreground = #666
- ; Only applies if <ramp-volume> is used
- ramp-volume-0 = 🔈
- ramp-volume-1 = 🔉
- ramp-volume-2 = 🔊
- ; Right and Middle click
- click-right = pavucontrol
- format-volume-prefix-foreground = ${colors.primary}
- format-volume = <ramp-volume> <label-volume>
- label-volume = %percentage%%
- [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 = "RAM "
- format-prefix-foreground = ${colors.primary}
- label = %percentage_used:2%%
- [module/cpu]
- type = internal/cpu
- interval = 2
- format-prefix = "CPU "
- format-prefix-foreground = ${colors.primary}
- label = %percentage:2%%
- [module/backlight]
- type = internal/backlight
- ; Use the following command to list available cards:
- ; $ ls -1 /sys/class/backlight/
- card = nvidia_0
- ; Use the `/sys/class/backlight/.../actual-brightness` file
- ; rather than the regular `brightness` file.
- ; Defaults to true unless the specified card is an amdgpu backlight.
- ; New in version 3.6.0
- use-actual-brightness = true
- ; Available tags:
- ; <label> (default)
- ; <ramp>
- ; <bar>
- format = <ramp> <label>
- ; Available tokens:
- ; %percentage% (default)
- label = %percentage%%
- ; Only applies if <ramp> is used
- ramp-0 = 🌕
- ramp-1 = 🌔
- ramp-2 = 🌓
- ramp-3 = 🌒
- ramp-4 = 🌑
- ; Only applies if <bar> is used
- bar-width = 10
- bar-indicator = |
- bar-fill = ─
- bar-empty = ─
- [module/battery]
- type = internal/battery
- ; format-low once this charge percentage is reached
- ; Default: 10
- ; New in version 3.6.0
- low-at = 20
- ; Use the following command to list batteries and adapters:
- ; $ ls -1 /sys/class/power_supply/
- battery = BAT0
- adapter = ADP0
- ; If an inotify event haven't been reported in this many
- ; seconds, manually poll for new values.
- ;
- ; Needed as a fallback for systems that don't report events
- ; on sysfs/procfs.
- ;
- ; Disable polling by setting the interval to 0.
- ;
- ; Default: 5
- poll-interval = 20
- ; Available tags:
- ; <label-charging> (default)
- ; <bar-capacity>
- ; <ramp-capacity>
- ; <animation-charging>
- format-charging = <animation-charging> <label-charging>
- format-discharging = <ramp-capacity> <label-discharging>
- format-full = <ramp-capacity> <label-full>
- ; Format used when battery level drops to low-at
- ; If not defined, format-discharging is used instead.
- ;format-low = <label-low> <animation-low>
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- ; %time%
- ; %consumption% (shows current charge rate in watts)
- label-charging = " %percentage%%+"
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- ; %time%
- ; %consumption% (shows current discharge rate in watts)
- label-discharging = " %percentage%%-"
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- label-full = " %percentage%%*"
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- ; %time%
- ; %consumption% (shows current discharge rate in watts)
- ; New in version 3.6.0
- label-low = " %percentage%%!"
- ; Only applies if <ramp-capacity> is used
- ramp-capacity-0 =
- ramp-capacity-1 =
- ramp-capacity-2 =
- ramp-capacity-3 =
- ramp-capacity-4 =
- ; Only applies if <bar-capacity> is used
- bar-capacity-width = 10
- ; Only applies if <animation-charging> is used
- animation-charging-0 =
- animation-charging-1 =
- animation-charging-2 =
- animation-charging-3 =
- animation-charging-4 =
- ; Framerate in milliseconds
- animation-charging-framerate = 750
- ; Only applies if <animation-discharging> is used
- animation-discharging-0 =
- animation-discharging-1 =
- animation-discharging-2 =
- animation-discharging-3 =
- animation-discharging-4 =
- ; Framerate in milliseconds
- animation-discharging-framerate = 500
- ; Only applies if <animation-low> is used
- ; New in version 3.6.0
- animation-low-0 = !
- animation-low-1 =
- animation-low-framerate = 200
- [module/date]
- type = internal/date
- interval = 1
- date = %r
- date-alt = %Y-%m-%d %H:%M:%S
- label = %date%
- label-foreground = ${colors.primary}
- [settings]
- screenchange-reload = true
- pseudo-transparency = true
- ; vim:ft=dosini
|