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