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