dotfiles/config/polybar/config (view raw)
| 1 | [settings] |
| 2 | pseudo-transparency = true |
| 3 | |
| 4 | [colors] |
| 5 | background = #262A2B |
| 6 | foreground = #ffffff |
| 7 | secondary = #008DCD |
| 8 | alert = #008DCD |
| 9 | |
| 10 | [bar/i3bar] |
| 11 | width = 100% |
| 12 | height = 24 |
| 13 | |
| 14 | fixed-center = true |
| 15 | wm-restack = i3 |
| 16 | background = ${colors.background} |
| 17 | foreground = ${colors.foreground} |
| 18 | module-margin-left = 1 |
| 19 | module-margin-right = 1 |
| 20 | font-0 = Iosevka Nerd Font:style=Medium:size=8;3 |
| 21 | font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 |
| 22 | font-2 = Weather Icons:size=7;2 |
| 23 | |
| 24 | modules-left = i3 |
| 25 | modules-right = keyboard pulseaudio backlight wifi-signal time |
| 26 | tray-position = right |
| 27 | |
| 28 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 29 | [settings] |
| 30 | screenchange-reload = true |
| 31 | |
| 32 | [module/i3] |
| 33 | type = internal/i3 |
| 34 | format = <label-state><label-mode> |
| 35 | index-sort = false |
| 36 | wrapping-scroll = false |
| 37 | label-mode-padding = 1 |
| 38 | label-mode-background = ${colors.alert} |
| 39 | |
| 40 | label-focused = %icon% |
| 41 | label-focused-background = ${colors.secondary} |
| 42 | label-focused-foreground = ${colors.foreground} |
| 43 | label-focused-padding = 1 |
| 44 | label-focused-underline = ${colors.alert} |
| 45 | |
| 46 | label-unfocused = %icon% |
| 47 | label-unfocused-foreground = ${colors.foreground} |
| 48 | label-unfocused-padding = 1 |
| 49 | |
| 50 | label-urgent = %icon% |
| 51 | label-urgent-background = ${colors.alert} |
| 52 | label-urgent-foreground = ${colors.foreground} |
| 53 | label-urgent-padding = 1 |
| 54 | label-urgent-underline = ${colors.alert} |
| 55 | |
| 56 | label-visible = %icon% |
| 57 | label-visible-background = ${colors.background} |
| 58 | label-visible-foreground = ${colors.foreground} |
| 59 | label-visible-padding = 1 |
| 60 | label-visible-underline = ${colors.background} |
| 61 | |
| 62 | ws-icon-0 = "1;1 " |
| 63 | ws-icon-1 = "2;2 " |
| 64 | ws-icon-2 = "3;3 " |
| 65 | ws-icon-3 = "4;4 " |
| 66 | ws-icon-4 = "5;5 " |
| 67 | ws-icon-5 = "6;6 " |
| 68 | ws-icon-6 = "7;7 " |
| 69 | ws-icon-7 = "8;8 " |
| 70 | ws-icon-8 = "9;9 " |
| 71 | |
| 72 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 73 | ;; INCLUDE MODULES |
| 74 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 75 | [module/backlight] |
| 76 | type = internal/xbacklight |
| 77 | format = <ramp> <label> |
| 78 | label = %percentage%% |
| 79 | ramp-0 = |
| 80 | |
| 81 | |
| 82 | [module/wifi-name] |
| 83 | type = internal/network |
| 84 | interface = wlp3s0 |
| 85 | format-connected = <ramp-signal> <label-connected> |
| 86 | label-connected = %essid% |
| 87 | format-disconnected = No sig |
| 88 | ramp-signal-0 = |
| 89 | interval = 3.0 |
| 90 | |
| 91 | |
| 92 | [module/wifi-signal] |
| 93 | type = custom/script |
| 94 | label = %output:%% |
| 95 | exec = ~/.config/polybar/scripts/wifi-signal.sh |
| 96 | interval = 3.0 |
| 97 | |
| 98 | |
| 99 | [module/filesystem] |
| 100 | type = internal/fs |
| 101 | interval = 25 |
| 102 | mount-0 = / |
| 103 | mount-1 = /home |
| 104 | label-mounted = %mountpoint%: %percentage_used%% |
| 105 | label-unmounted = %mountpoint% not mounted |
| 106 | label-unmounted-foreground = ${colors.foreground} |
| 107 | |
| 108 | |
| 109 | [module/pulseaudio] |
| 110 | type = internal/pulseaudio |
| 111 | format-volume = <ramp-volume> <label-volume> |
| 112 | label-volume = %percentage%% |
| 113 | label-volume-foreground = ${root.foreground} |
| 114 | label-muted = |
| 115 | |
| 116 | ramp-volume-0 = |
| 117 | ramp-volume-1 = |
| 118 | ramp-volume-2 = |
| 119 | ramp-volume-3 = |
| 120 | ramp-volume-4 = |
| 121 | |
| 122 | |
| 123 | [module/cpu] |
| 124 | type = internal/cpu |
| 125 | interval = 2 |
| 126 | format-prefix = " " |
| 127 | format-prefix-foreground = ${colors.foreground} |
| 128 | label = CPU %percentage%% |
| 129 | |
| 130 | |
| 131 | [module/memory] |
| 132 | type = internal/memory |
| 133 | interval = 2 |
| 134 | format-prefix = " " |
| 135 | label = MEM %percentage_used%% |
| 136 | |
| 137 | |
| 138 | [module/weather] |
| 139 | type = custom/script |
| 140 | exec = python3 ~/.config/polybar/scripts/weather.py |
| 141 | interval = 60 |
| 142 | label-font = 1 |
| 143 | |
| 144 | |
| 145 | [module/spotify] |
| 146 | type = custom/script |
| 147 | interval = 1 |
| 148 | format = <label> |
| 149 | exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}' |
| 150 | format-underline = ${colors.alert} |
| 151 | |
| 152 | [module/updates-pacman] |
| 153 | type = custom/script |
| 154 | exec = ~/.config/polybar/scripts/updates-pacman-aur.sh |
| 155 | interval = 60 |
| 156 | |
| 157 | |
| 158 | [module/keyboard] |
| 159 | type = internal/xkeyboard |
| 160 | label-NAME-maxlen = 10 |
| 161 | format-prefix = "" |
| 162 | label-layout = %layout% |
| 163 | |
| 164 | blacklist-0 = num lock |
| 165 | blacklist-1 = scroll lock |
| 166 | blacklist-2= caps lock |
| 167 | |
| 168 | |
| 169 | [module/microphone] |
| 170 | type = custom/script |
| 171 | label = %output:0:40:...% |
| 172 | exec = ~/.config/polybar/scripts/microphone.sh |
| 173 | click-left = ~/.config/polybar/scripts/microphone.sh --click |
| 174 | interval = 0 |
| 175 | |
| 176 | |
| 177 | [module/sp2] |
| 178 | type = custom/text |
| 179 | content = "┇" |
| 180 | |
| 181 | |
| 182 | [module/date] |
| 183 | type = internal/date |
| 184 | interval = 600 |
| 185 | date = %b %e |
| 186 | label = %date% |
| 187 | |
| 188 | |
| 189 | [module/time] |
| 190 | type = internal/date |
| 191 | interval = 0 |
| 192 | time = %H:%M |
| 193 | label = %time% |
| 194 | |
| 195 | |
| 196 | [module/title] |
| 197 | type = internal/xwindow |
| 198 | label = %title:0:50:...% |
| 199 | label-empty = |
| 200 | label-maxlen = 50 |
| 201 | |
| 202 | |
| 203 | [module/clipmenu] |
| 204 | type = custom/text |
| 205 | content = "" |
| 206 | click-left = "CM_LAUNCHER=rofi clipmenu" |
| 207 | interval = 0 |