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