config.ini (9579B)
1 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 2 ;; 3 ;; ____ __ __ 4 ;; / __ \____ / /_ __/ /_ ____ ______ 5 ;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/ 6 ;; / ____/ /_/ / / /_/ / /_/ / /_/ / / 7 ;; /_/ \____/_/\__, /_.___/\__,_/_/ 8 ;; /____/ 9 ;; 10 ;; Created By Aditya Shakya @adi1090x 11 ;; 12 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 13 14 ;; Global WM Settings 15 16 [global/wm] 17 ; Adjust the _NET_WM_STRUT_PARTIAL top value 18 ; Used for top aligned bars 19 margin-bottom = 0 20 21 ; Adjust the _NET_WM_STRUT_PARTIAL bottom value 22 ; Used for bottom aligned bars 23 margin-top = 8 24 25 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 26 27 ;; File Inclusion 28 ; include an external file, like module file, etc. 29 30 include-file = ~/.config/polybar/spark/colors.ini 31 include-file = ~/.config/polybar/spark/modules.ini 32 33 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 34 35 ;; Bar Settings 36 37 [bar/main] 38 ; Use either of the following command to list available outputs: 39 ; If unspecified, the application will pick the first one it finds. 40 ; $ polybar -m | cut -d ':' -f 1 41 ; $ xrandr -q | grep " connected" | cut -d ' ' -f1 42 monitor = 43 44 ; Use the specified monitor as a fallback if the main one is not found. 45 monitor-fallback = 46 47 ; Require the monitor to be in connected state 48 ; XRandR sometimes reports my monitor as being disconnected (when in use) 49 monitor-strict = false 50 51 ; Tell the Window Manager not to configure the window. 52 ; Use this to detach the bar if your WM is locking its size/position. 53 override-redirect = false 54 55 ; Put the bar at the bottom of the screen 56 bottom = true 57 58 ; Prefer fixed center position for the `modules-center` block 59 ; When false, the center position will be based on the size of the other blocks. 60 fixed-center = true 61 62 ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), 63 ; the percentage can optionally be extended with a pixel offset like so: 64 ; 50%:-10, this will result in a width or height of 50% minus 10 pixels 65 width = 70% 66 height = 38 67 68 ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) 69 ; the percentage can optionally be extended with a pixel offset like so: 70 ; 50%:-10, this will result in an offset in the x or y direction 71 ; of 50% minus 10 pixels 72 offset-x = 15% 73 offset-y = 1% 74 75 ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) 76 background = ${color.BG} 77 78 ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) 79 foreground = ${color.FG} 80 81 ; Background gradient (vertical steps) 82 ; background-[0-9]+ = #aarrggbb 83 ;;background-0 = 84 85 ; Value used for drawing rounded corners 86 ; Note: This shouldn't be used together with border-size because the border 87 ; doesn't get rounded 88 ; Individual top/bottom values can be defined using: 89 ; radius-{top,bottom} 90 radius-top = 4.0 91 radius-bottom = 4.0 92 93 ; Under-/overline pixel size and argb color 94 ; Individual values can be defined using: 95 ; {overline,underline}-size 96 ; {overline,underline}-color 97 line-size = 2 98 line-color = ${color.AC} 99 100 ; Values applied to all borders 101 ; Individual side values can be defined using: 102 ; border-{left,top,right,bottom}-size 103 ; border-{left,top,right,bottom}-color 104 ; The top and bottom borders are added to the bar height, so the effective 105 ; window height is: 106 ; height + border-top-size + border-bottom-size 107 ; Meanwhile the effective window width is defined entirely by the width key and 108 ; the border is placed withing this area. So you effectively only have the 109 ; following horizontal space on the bar: 110 ; width - border-right-size - border-left-size 111 border-top-size = 0 112 border-color = ${color.AC} 113 114 ; Number of spaces to add at the beginning/end of the bar 115 ; Individual side values can be defined using: 116 ; padding-{left,right} 117 padding = 2 118 119 ; Number of spaces to add before/after each module 120 ; Individual side values can be defined using: 121 ; module-margin-{left,right} 122 module-margin-left = 1 123 module-margin-right = 1 124 125 ; Fonts are defined using <font-name>;<vertical-offset> 126 ; Font names are specified using a fontconfig pattern. 127 ; font-0 = "Iosevka Nerd Font:size=10;3" 128 ; font-1 = MaterialIcons:size=10 129 ; font-2 = Termsynu:size=8;-1 130 ; font-3 = FontAwesome:size=10 131 ; See the Fonts wiki page for more details 132 133 font-0 = "Iosevka Nerd Font:size=10;3" 134 font-1 = "Iosevka Nerd Font:size=12;3" 135 font-2 = "Iosevka Nerd Font:size=6;3" 136 137 ; Modules are added to one of the available blocks 138 ; modules-left = cpu ram 139 ; modules-center = xwindow xbacklight 140 ; modules-right = ipc clock 141 142 ;; Available modules 143 ;; 144 ;alsa backlight battery 145 ;bspwm cpu date 146 ;filesystem github i3 147 ;subscriber demo memory 148 ;menu-apps mpd wired-network 149 ;wireless-network network pulseaudio 150 ;name_you_want temperature my-text-label 151 ;backlight keyboard title workspaces 152 ;; 153 ;; User modules 154 ;checknetwork updates window_switch launcher powermenu sysmenu menu 155 ;; 156 ;; Bars 157 ;cpu_bar memory_bar filesystem_bar mpd_bar 158 ;volume brightness battery_bar 159 160 modules-left = workspaces sep mpd 161 ;modules-center = mpd 162 modules-right = volume sep battery sep network sep date 163 164 ; The separator will be inserted between the output of each module 165 separator = 166 167 ; This value is used to add extra spacing between elements 168 ; @deprecated: This parameter will be removed in an upcoming version 169 spacing = 0 170 171 ; Opacity value between 0.0 and 1.0 used on fade in/out 172 dim-value = 1.0 173 174 ; Value to be used to set the WM_NAME atom 175 ; If the value is empty or undefined, the atom value 176 ; will be created from the following template: polybar-[BAR]_[MONITOR] 177 ; NOTE: The placeholders are not available for custom values 178 wm-name = 179 180 ; Locale used to localize various module data (e.g. date) 181 ; Expects a valid libc locale, for example: sv_SE.UTF-8 182 locale = 183 184 ; Position of the system tray window 185 ; If empty or undefined, tray support will be disabled 186 ; NOTE: A center aligned tray will cover center aligned modules 187 ; 188 ; Available positions: 189 ; left 190 ; center 191 ; right 192 ; none 193 tray-position = none 194 195 ; If true, the bar will not shift its 196 ; contents when the tray changes 197 tray-detached = false 198 199 ; Tray icon max size 200 tray-maxsize = 16 201 202 ; DEPRECATED! Since 3.3.0 the tray always uses pseudo-transparency 203 ; Enable pseudo transparency 204 ; Will automatically be enabled if a fully transparent 205 ; background color is defined using `tray-background` 206 ; tray-transparent = false 207 208 ; Background color for the tray container 209 ; ARGB color (e.g. #f00, #ff992a, #ddff1023) 210 ; By default the tray container will use the bar 211 ; background color. 212 tray-background = ${color.BGA} 213 214 ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) 215 tray-offset-x = 0 216 tray-offset-y = 0 217 218 ; Pad the sides of each tray icon 219 tray-padding = 0 220 221 ; Scale factor for tray clients 222 tray-scale = 1.0 223 224 ; Restack the bar window and put it above the 225 ; selected window manager's root 226 ; 227 ; Fixes the issue where the bar is being drawn 228 ; on top of fullscreen window's 229 ; 230 ; Currently supported WM's: 231 ; bspwm 232 ; i3 (requires: `override-redirect = true`) 233 ; wm-restack = 234 235 ; Set a DPI values used when rendering text 236 ; This only affects scalable fonts 237 ; dpi = 238 239 ; Enable support for inter-process messaging 240 ; See the Messaging wiki page for more details. 241 enable-ipc = true 242 243 ; Fallback click handlers that will be called if 244 ; there's no matching module handler found. 245 click-left = 246 click-middle = 247 click-right = 248 scroll-up = 249 scroll-down = 250 double-click-left = 251 double-click-middle = 252 double-click-right = 253 254 ; Requires polybar to be built with xcursor support (xcb-util-cursor) 255 ; Possible values are: 256 ; - default : The default pointer as before, can also be an empty string (default) 257 ; - pointer : Typically in the form of a hand 258 ; - ns-resize : Up and down arrows, can be used to indicate scrolling 259 cursor-click = 260 cursor-scroll = 261 262 ;; WM Workspace Specific 263 264 ; bspwm 265 ;;scroll-up = bspwm-desknext 266 ;;scroll-down = bspwm-deskprev 267 ;;scroll-up = bspc desktop -f prev.local 268 ;;scroll-down = bspc desktop -f next.local 269 270 ;i3 271 ;;scroll-up = i3wm-wsnext 272 ;;scroll-down = i3wm-wsprev 273 ;;scroll-up = i3-msg workspace next_on_output 274 ;;scroll-down = i3-msg workspace prev_on_output 275 276 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 277 278 ;; Application Settings 279 280 [settings] 281 ; The throttle settings lets the eventloop swallow up til X events 282 ; if they happen within Y millisecond after first event was received. 283 ; This is done to prevent flood of update event. 284 ; 285 ; For example if 5 modules emit an update event at the same time, we really 286 ; just care about the last one. But if we wait too long for events to swallow 287 ; the bar would appear sluggish so we continue if timeout 288 ; expires or limit is reached. 289 throttle-output = 5 290 throttle-output-for = 10 291 292 ; Time in milliseconds that the input handler will wait between processing events 293 throttle-input-for = 30 294 295 ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events 296 screenchange-reload = false 297 298 ; Compositing operators 299 ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t 300 compositing-background = source 301 compositing-foreground = over 302 compositing-overline = over 303 compositing-underline = over 304 compositing-border = over 305 306 ; Define fallback values used by all module formats 307 format-foreground = 308 format-background = 309 format-underline = 310 format-overline = 311 format-spacing = 312 format-padding = 313 format-margin = 314 format-offset = 315 316 ; Enables pseudo-transparency for the bar 317 ; If set to true the bar can be transparent without a compositor. 318 pseudo-transparency = false 319 320 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 321 ;; __________ ______ 322 ;; / ____/ __ \/ ____/ 323 ;; / __/ / / / / /_ 324 ;; / /___/ /_/ / __/ 325 ;; /_____/\____/_/ 326 ;; 327 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 328