dotfiles/config/polybar/config (view raw)
| 1 | [settings] |
| 2 | enable-ipc = true |
| 3 | screenchange-reload = true |
| 4 | pseudo-transparency = true |
| 5 | |
| 6 | [colors] |
| 7 | background = #262A2B |
| 8 | foreground = #DFDFDF |
| 9 | secondary = #008DCD |
| 10 | alert = #FF6C6B |
| 11 | |
| 12 | [bar/bar] |
| 13 | monitor = ${env:MONITOR_MIDDLE} |
| 14 | width = 100% |
| 15 | height = 24 |
| 16 | fixed-center = true |
| 17 | wm-restack = i3 |
| 18 | background = ${colors.background} |
| 19 | foreground = ${colors.foreground} |
| 20 | module-margin-left = 1 |
| 21 | module-margin-right = 1 |
| 22 | font-0 = Iosevka Nerd Font:style=Medium:size=8;3 |
| 23 | font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 |
| 24 | modules-left = i3 pacman-up window-name |
| 25 | modules-right = pulseaudio weather wifi-signal keyboard time date |
| 26 | tray-position = right |
| 27 | |
| 28 | [module/i3] |
| 29 | type = internal/i3 |
| 30 | format = <label-state><label-mode> |
| 31 | card = intel_backlight |
| 32 | index-sort = false |
| 33 | wrapping-scroll = false |
| 34 | label-mode-padding = 1 |
| 35 | label-mode-background = ${colors.alert} |
| 36 | |
| 37 | label-focused = %icon% |
| 38 | label-focused-background = ${colors.secondary} |
| 39 | label-focused-foreground = ${colors.foreground} |
| 40 | label-focused-padding = 1 |
| 41 | label-focused-underline = ${colors.alert} |
| 42 | |
| 43 | label-unfocused = %icon% |
| 44 | label-unfocused-foreground = ${colors.foreground} |
| 45 | label-unfocused-padding = 1 |
| 46 | |
| 47 | label-urgent = %icon% |
| 48 | label-urgent-background = ${colors.alert} |
| 49 | label-urgent-foreground = ${colors.foreground} |
| 50 | label-urgent-padding = 1 |
| 51 | label-urgent-underline = ${colors.alert} |
| 52 | |
| 53 | label-visible = %icon% |
| 54 | label-visible-background = ${colors.background} |
| 55 | label-visible-foreground = ${colors.foreground} |
| 56 | label-visible-padding = 1 |
| 57 | label-visible-underline = ${colors.background} |
| 58 | |
| 59 | ws-icon-0 = "1;1 " |
| 60 | ws-icon-1 = "2;2 " |
| 61 | ws-icon-2 = "3;3 " |
| 62 | ws-icon-3 = "4;4 " |
| 63 | ws-icon-4 = "5;5 " |
| 64 | ws-icon-5 = "6;6 " |
| 65 | ws-icon-6 = "7;7 " |
| 66 | ws-icon-7 = "8;8 " |
| 67 | ws-icon-8 = "9;9 " |
| 68 | |
| 69 | [module/wifi-signal] |
| 70 | type = custom/script |
| 71 | label = %output:%% |
| 72 | exec = ~/.config/polybar/scripts/wifi-signal.sh |
| 73 | interval = 3 |
| 74 | |
| 75 | [module/pulseaudio] |
| 76 | type = internal/pulseaudio |
| 77 | interval = 2 |
| 78 | format-volume = <ramp-volume> <label-volume> |
| 79 | label-volume = %percentage%% |
| 80 | label-volume-foreground = ${root.foreground} |
| 81 | label-muted = |
| 82 | ramp-volume-0 = |
| 83 | |
| 84 | [module/weather] |
| 85 | type = custom/script |
| 86 | exec = python3 ~/.config/polybar/scripts/weather.py |
| 87 | interval = 60 |
| 88 | |
| 89 | [module/pacman-up] |
| 90 | type = custom/script |
| 91 | exec = ~/.config/polybar/scripts/updates-pacman-aur.sh |
| 92 | interval = 15 |
| 93 | |
| 94 | [module/window-name] |
| 95 | type = internal/xwindow |
| 96 | label-maxlen = 100 |
| 97 | |
| 98 | [module/keyboard] |
| 99 | type = internal/xkeyboard |
| 100 | format-prefix = "" |
| 101 | label-layout = %layout% |
| 102 | blacklist-0 = num lock |
| 103 | blacklist-1 = scroll lock |
| 104 | blacklist-2= caps lock |
| 105 | |
| 106 | [module/date] |
| 107 | type = internal/date |
| 108 | interval = 600 |
| 109 | date = %d.%m.%Y |
| 110 | label = %date% |
| 111 | |
| 112 | [module/time] |
| 113 | type = internal/date |
| 114 | time = %H:%M |
| 115 | label = %time% |