[colors] dark-gray = ${xrdb:background:#282A36} light-gray = ${xrdb:color8:#4D4D4D} lighter-gray = ${xrdb:color7:#BFBFBF} white = ${xrdb:foreground:#F8F8F2} purple = ${xrdb:color4:#BD93F9} blue = ${xrdb:color6:#8BE9FD} red = ${xrdb:color1:#FF5555} pink = ${xrdb:color5:#FF79C6} yellow = ${xrdb:color3:#F1FA8C} green = ${xrdb:color2:#50FA7B} orange = ${xrdb:color16:#FFB86C} background = ${self.dark-gray} background-alt = ${self.light-gray} foreground = ${self.white} foreground-alt = ${self.lighter-gray} primary = ${self.purple} secondary = ${self.blue} alert = ${self.red} ; left powermenu = ${self.blue} date = ${self.yellow} time = ${self.purple} media-playing = ${self.green} ; center dwm-focused-foreground = ${self.primary} dwm-focused-background = ${self.background} dwm-unfocused-foreground = ${self.pink} dwm-unfocused-background = ${self.background} dwm-visible-foreground = ${self.secondary} dwm-visible-background = ${self.background} dwm-urgent-foreground = ${self.alert} dwm-urgent-background = ${self.background} dwm-empty-foreground = ${self.foreground} dwm-empty-background = ${self.background} ; right kernel = ${self.orange} cpu = ${self.blue} memory = ${self.red} filesystem = ${self.green} dunst-notification-status = ${self.yellow} [sizes] bar-height = ${xrdb:polybar.bar-height:25} module-margin = ${xrdb:polybar.module-margin:2} module-padding = ${xrdb:polybar.module-padding:2} tray-maxsize = ${xrdb:polybar.tray-maxsize:15} tray-scale = ${xrdb:polybar.tray-scale:1} maxlen = ${xrdb:polybar.maxlen:50} [intervals] cpu = 1 date = 1 time = 1 filesystem = 900 memory = 1 media-playing = 1 dunst-notification-status = 1 kernel = 86400 [global/wm] ; Adjust the _NET_WM_STRUT_PARTIAL top value ; Used for top aligned bars margin-bottom = 0 ; Adjust the _NET_WM_STRUT_PARTIAL bottom value ; Used for bottom aligned bars margin-top = 0 [bar/mybar] ; Use either of the following command to list available outputs: ; If unspecified, the application will pick the first one it finds. ; $ polybar -m | cut -d ':' -f 1 ; $ xrandr -q | grep " connected" | cut -d ' ' -f1 ; If no monitor is given, the primary monitor is used if it exists monitor = ${env:MONITOR} ; Use the specified monitor as a fallback if the main one is not found. ; monitor-fallback = ; Require the monitor to be in connected state ; XRandR sometimes reports my monitor as being disconnected (when in use) monitor-strict = false ; Use fuzzy matching for monitors (only ignores dashes -) ; Useful when monitors are named differently with different drivers. monitor-exact = true ; Tell the Window Manager not to configure the window. ; Use this to detach the bar if your WM is locking its size/position. ; Note: With this most WMs will no longer reserve space for ; the bar and it will overlap other windows. You need to configure ; your WM to add a gap where the bar will be placed. override-redirect = false ; Put the bar at the bottom of the screen bottom = false ; Prefer fixed center position for the `modules-center` block. ; The center block will stay in the middle of the bar whenever ; possible. It can still be pushed around if other blocks need ; more space. ; When false, the center block is centered in the space between ; the left and right block. fixed-center = true ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), ; the percentage can optionally be extended with a pixel offset like so: ; 50%:-10, this will result in a width or height of 50% minus 10 pixels width = 100% height = ${sizes.bar-height} ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) ; the percentage can optionally be extended with a pixel offset like so: ; 50%:-10, this will result in an offset in the x or y direction ; of 50% minus 10 pixels offset-x = 0 offset-y = 0 ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) background = ${colors.background} ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) foreground = ${colors.foreground} ; Background gradient (vertical steps) ; background-[0-9]+ = #aarrggbb ; background-0 = ; Value used for drawing rounded corners ; Note: This shouldn't be used together with border-size because the border ; doesn't get rounded. For this to work you may also need to enable ; pseudo-transparency or use a compositor like compton. ; Individual top/bottom values can be defined using: ; radius-{top,bottom} radius = 0.0 ; Under-/overline pixel size and argb color ; Individual values can be defined using: ; {overline,underline}-size ; {overline,underline}-color line-size = 1 line-color = #fff ; Values applied to all borders ; Individual side values can be defined using: ; border-{left,top,right,bottom}-size ; border-{left,top,right,bottom}-color ; The top and bottom borders are added to the bar height, so the effective ; window height is: ; height + border-top-size + border-bottom-size ; Meanwhile the effective window width is defined entirely by the width key and ; the border is placed within this area. So you effectively only have the ; following horizontal space on the bar: ; width - border-right-size - border-left-size ; border-size can be defined as pixel value (e.g. 35) or percentage (e.g. 50%), ; the percentage can optionally be extended with a pixel offset like so: ; 50%:-10, this will result in 50% minus 10 pixels. The percentage is relative ; to the monitor width or height depending on the border direction. ; border-size = ; border-color = ; Number of spaces to add at the beginning/end of the bar ; Individual side values can be defined using: ; padding-{left,right} padding-right = ${self.module-margin} ; Number of spaces to add before/after each module ; Individual side values can be defined using: ; module-margin-{left,right} module-margin = ${sizes.module-margin} ; Fonts are defined using ; ; Font names are specified using a fontconfig pattern. ; font-0 = NotoSans-Regular:size=8;2 ; font-1 = MaterialIcons:size=10 ; font-2 = Termsynu:size=8;-1 ; font-3 = FontAwesome:size=10 ; See the Fonts wiki page for more details font-0 = "NotoSansDisplay Nerd Font:size=11;3" font-1 = "FiraCode Nerd Font:size=11;3" font-2 = "Droid Sans Mono:size=11;3" font-3 = "IPAPGothic:size=11;3" ; Modules are added to one of the available blocks ; modules-left = cpu ram ; modules-center = xwindow xbacklight ; modules-right = ipc clock modules-left = powermenu date time media-playing modules-center = dwm modules-right = kernel cpu memory filesystem ; The separator will be inserted between the output of each module separator = "" ; This value is used to add extra spacing between elements ; @deprecated: This parameter will be removed in an upcoming version ; spacing = 0 ; Opacity value between 0.0 and 1.0 used on fade in/out dim-value = 1.0 ; Value to be used to set the WM_NAME atom ; If the value is empty or undefined, the atom value ; will be created from the following template: polybar-[BAR]_[MONITOR] ; NOTE: The placeholders are not available for custom values ; wm-name = ; Locale used to localize various module data (e.g. date) ; Expects a valid libc locale, for example: sv_SE.UTF-8 locale = en_US.utf8 ; Position of the system tray window ; If empty or undefined, tray support will be disabled ; NOTE: A center aligned tray will cover center aligned modules ; ; Available positions: ; left ; center ; right ; none tray-position = ${env:TRAY_POS} ; If true, the bar will not shift its ; contents when the tray changes tray-detached = false ; Tray icon max size tray-maxsize = ${sizes.tray-maxsize} ; DEPRECATED! Since 3.3.0 the tray always uses pseudo-transparency ; Enable pseudo transparency ; Will automatically be enabled if a fully transparent ; background color is defined using `tray-background` ; tray-transparent = false ; Background color for the tray container ; ARGB color (e.g. #f00, #ff992a, #ddff1023) ; By default the tray container will use the bar ; background color. tray-background = ${colors.background} ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) tray-offset-x = 0 tray-offset-y = 0 ; Pad the sides of each tray icon tray-padding = ${self.module-margin} ; Scale factor for tray clients tray-scale = ${sizes.tray-scale} ; Restack the bar window. Fixes the issue where the ; bar is being drawn on top of fullscreen windows. ; ; Currently supported options: ; generic (works in xmonad, may work with other WMs) ; bspwm ; i3 (requires: `override-redirect = true`) ; wm-restack = generic ; Set a DPI values used when rendering text ; This only affects scalable fonts ; Set this to 0 to let polybar calculate the dpi from the screen size. ; dpi = dpi-x = ${xrdb:dpi} dpi-y = ${xrdb:dpi} ; Enable support for inter-process messaging ; See the Messaging wiki page for more details. enable-ipc = true ; Fallback click handlers that will be called if ; there's no matching module handler found. ; click-left = ; click-middle = ; click-right = ; scroll-up = ; scroll-down = ; double-click-left = ; double-click-middle = ; double-click-right = ; Requires polybar to be built with xcursor support (xcb-util-cursor) ; Possible values are: ; - default : The default pointer as before, can also be an empty string (default) ; - pointer : Typically in the form of a hand ; - ns-resize : Up and down arrows, can be used to indicate scrolling cursor-click = pointer cursor-scroll = ns-resize [module/powermenu] type = custom/text content = " Menu" ; "content" has the same properties as "format-NAME" ; content-background = #000 content-foreground = ${colors.powermenu} content-underline = ${colors.powermenu} content-padding = ${bar/mybar.module-margin} ; "click-(left|middle|right)" will be executed using "/bin/sh -c $COMMAND" ; click-left = notify-send left ; click-middle = notify-send middle ; click-right = notify-send right click-left = "rofi -show combi" click-right = "/home/sravan/.scripts/control-center.sh --rofi" ; "scroll-(up|down)" will be executed using "/bin/sh -c $COMMAND" ; scroll-up = notify-send scroll up ; scroll-down = notify-send scroll down [module/dwm] type = internal/dwm ; format = format = ; Path to dwm socket (default: /tmp/dwm.sock) ; socket-path = /tmp/dwm.sock ; Left-click to view tag, right-click to toggle tag view enable-tags-click = true ; Scroll to cycle between available tags enable-tags-scroll = true ; If true and enable-tags-scroll = true, scrolling will view all tags regardless if occupied tags-scroll-empty = true ; If true and enable-tags-scroll = true, scrolling will cycle through tags backwards tags-scroll-reverse = false ; If true and enable-tags-scroll = true, wrap active tag when scrolling tags-scroll-wrap = true ; Left-click to set secondary layout, right-click to switch to previous layout enable-layout-click = true ; Scroll to cycle between available layouts enable-layout-scroll = false ; Wrap when scrolling and reaching beginning/end of layouts layout-scroll-wrap = true ; Reverse scroll direction layout-scroll-reverse = false ; If enable-layout-click = true, clicking the layout symbol will switch to this layout secondary-layout-symbol = [M] ; Separator in between shown tags ; label-separator = | ; Title of currently focused window ; Available tokens: ; %title% label-title = %title% label-title-padding = ${sizes.module-padding} label-title-foreground = ${colors.dwm-focused-background} label-title-maxlen = ${sizes.maxlen} ; Symbol of current layout ; Available tokens: ; %symbol% label-layout = %symbol% label-layout-foreground = ${colors.green} label-layout-background = ${colors.background} label-layout-underline = ${colors.green} label-layout-padding = ${sizes.module-padding} ; Text to show when currently focused window is floating label-floating = "(F)" ; States: focused, unfocused, visible, urgent, empty ; Available tokens: ; %name% ; focused = Selected tag on focused monitor label-focused = %name% label-focused-foreground = ${colors.dwm-focused-foreground} label-focused-background = ${colors.dwm-focused-background} label-focused-underline = ${colors.dwm-focused-foreground} label-focused-padding = ${sizes.module-padding} ; unfocused = Unselected tag on unselected monitor label-unfocused = %name% label-unfocused-foreground = ${colors.dwm-unfocused-foreground} label-unfocused-background = ${colors.dwm-unfocused-background} label-unfocused-underline = ${colors.dwm-unfocused-foreground} label-unfocused-padding = ${sizes.module-padding} ; visible = Unselected tag, but occupied tag on any monitor label-visible = %name% label-visible-foreground = ${colors.dwm-visible-foreground} label-visible-background = ${colors.dwm-visible-background} label-visible-underline = ${colors.dwm-visible-foreground} label-visible-padding = ${sizes.module-padding} ; urgent = Unselected tag with window that has urgency hint set label-urgent = %name% label-urgent-foreground = ${colors.dwm-urgent-foreground} label-urgent-background = ${colors.dwm-urgent-background} label-urgent-underline = ${colors.dwm-urgent-foreground} label-urgent-padding = ${sizes.module-padding} ; empty = Unselected and unoccupied tag ; This can be set to an empty string to hide empty tags label-empty = %name% label-empty-foreground = ${colors.dwm-empty-foreground} label-empty-background = ${colors.dwm-empty-background} label-empty-underline = ${colors.dwm-empty-background} label-empty-padding = ${sizes.module-padding} [module/media-playing] type = custom/script ; Available tokens: ; %counter% ; Command to be executed (using "/bin/sh -c [command]") exec = ~/.config/dwm-flexipatch/polybar/scripts/get-media-playing.sh ; Conditional command that, if defined, needs to exit successfully ; before the main exec command is invoked. ; Default: "" ; exec-if = pgrep -x myservice ; Will the script output continous content? ; Default: false tail = false ; Seconds to sleep between updates ; Default: 5 (0 if `tail = true`) interval = ${intervals.media-playing} ; Available tags: ; - deprecated ;