Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # vim:ft=dosini
- ;==========================================================
- ;
- ;
- ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
- ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
- ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
- ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
- ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
- ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
- ;
- ;
- ; To learn more about how to configure Polybar
- ; go to https://github.com/jaagr/polybar
- ;
- ; The README contains alot of information
- ;
- ;==========================================================
- [colors]
- background = ${xrdb:background:#aa}
- background-alt = ${xrdb:color6:#666}
- foreground = ${xrdb:foreground:#FFFFFF}
- primary = #ffb52a
- secondary = #e60053
- alert = #bd2c40
- [bar/bottom]
- ; 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
- monitor = ${env:MONITOR:eDP-1}
- ; 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
- ; 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 = true
- ; Restack the bar window and put it above the
- ; selected window manager's root
- ;
- ; Fixes the issue where the bar is being drawn
- ; on top of fullscreen window's
- ;
- ; Currently supported WM's:
- ; bspwm
- ; i3 (requires: `override-redirect = true`)
- wm-restack = i3
- ; Put the bar at the bottom of the screen
- bottom = false
- ; Prefer fixed center position for the `modules-center` block
- ; When false, the center position will be based on the size of the other blocks.
- 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 = 93.25%
- ##width = 97.25%
- width = 100%
- ##height = 37
- height = 30
- ; 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 = 3.4%
- ##offset-x = 26
- offset-x = 0
- #offset-y = 12
- offset-y = 0
- ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
- #background = #66010101
- #background = #FF000000
- 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
- ; Under-/overline pixel size and argb color
- ; Individual values can be defined using:
- ; {overline,underline}-size
- ; {overline,underline}-color
- line-size = 1
- line-color = #f00
- ; 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 withing this area. So you effectively only have the
- ; following horizontal space on the bar:
- ; width - border-right-size - border-left-size
- ; Number of spaces to add at the beginning/end of the bar
- ; Individual side values can be defined using:
- ; padding-{left,right}
- ##padding-right = 4
- padding-right = 2
- ; Number of spaces to add before/after each module
- ; Individual side values can be defined using:
- ; module-margin-{left,right}
- module-margin = 1
- ; Fonts are defined using <font-name>;<vertical-offset>
- ; 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 = TerminessTTF Nerd Font:style=bold:size=12;1
- ;font-0 = Inconsolata:bold:size=10;1.5
- ; Modules are added to one of the available blocks
- ; modules-left = cpu ram
- ; modules-center = xwindow xbacklight
- ; modules-right = ipc clock
- ##modules-left = i3
- ##modules-center =
- ##modules-right = mpd sep wireless-network sep temperature sep pulseaudio sep backlight-acpi sep battery0 sep battery1 sep memory sep cpu sep ext-ipv4 sep date
- modules-left = i3 sep ext-ipv4
- modules-center = sep date sep
- modules-right = mpd sep wireless-network sep temperature sep pulseaudio sep backlight-acpi sep battery0 sep battery1 sep memory sep cpu
- ; 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 = i3
- ; 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 = right
- ; If true, the bar will not shift its
- ; contents when the tray changes
- tray-detached = false
- ; Tray icon max size
- tray-maxsize = 16
- ; 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 = 0
- ; Scale factor for tray clients
- tray-scale = 1.0
- ; 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 = 96
- dpi-y = 96
- ; Enable support for inter-process messaging
- ; See the Messaging wiki page for more details.
- enable-ipc = false
- ; Fallback click handlers that will be called if
- ; there's no matching module handler found.
- [module/i3]
- type = internal/i3
- ; Only show workspaces defined on the same output as the bar
- ;
- ; Useful if you want to show monitor specific workspaces
- ; on different bars
- ;
- ; Default: false
- pin-workspaces = true
- ; This will split the workspace name on ':'
- ; Default: false
- strip-wsnumbers = true
- ; Sort the workspaces by index instead of the default
- ; sorting that groups the workspaces by output
- ; Default: false
- index-sort = true
- ; Create click handler used to focus workspace
- ; Default: true
- enable-click = true
- ; Create scroll handlers used to cycle workspaces
- ; Default: true
- enable-scroll = false
- ; Wrap around when reaching the first/last workspace
- ; Default: true
- wrapping-scroll = false
- ; Set the scroll cycle direction
- ; Default: true
- reverse-scroll = false
- ; Use fuzzy (partial) matching on labels when assigning
- ; icons to workspaces
- ; Example: code;♚ will apply the icon to all workspaces
- ; containing 'code' in the label
- ; Default: false
- fuzzy-match = true
- #label-unfocused = %index%
- label-unfocused = %name%
- label-unfocused-padding = 2
- label-unfocused-foreground = ${colors.foreground}
- #label-focused = %index%
- label-focused = %name%
- label-focused-foreground = ${colors.foreground}
- label-focused-background = ${colors.background-alt}
- label-focused-underline = ${colors.background}
- label-focused-padding = 2
- ; urgent = Workspace with urgency hint set
- #label-urgent = %index%
- label-urgent = %name%
- label-urgent-background = ${colors.alert}
- label-urgent-padding = 2
- [module/battery]
- type = internal/battery
- adapter = AC
- full-at = 98
- format-charging = <ramp-capacity> <label-charging>
- label-charging-foreground = #add8e6
- format-discharging = <ramp-capacity> <label-discharging>
- label-discharging-foreground = #FF9999
- format-full = 100%
- format-full-foreground = ${self.label-charging-foreground}
- ramp-capacity-0 =
- ramp-capacity-1 =
- ramp-capacity-2 =
- ramp-capacity-3 =
- ramp-capacity-4 =
- ramp-capacity-foreground = ${self.label-discharging-foreground}
- ;animation-charging-0 =
- animation-charging-1 =
- ;animation-charging-2 =
- ;animation-charging-3 =
- ;animation-charging-4 =
- ;animation-charging-foreground = ${colors.foreground-alt}
- ;animation-charging-framerate = 750
- ;
- ;animation-discharging-0 =
- ;animation-discharging-1 =
- ;animation-discharging-2 =
- ;animation-discharging-3 =
- ;animation-discharging-4 =
- ;animation-discharging-foreground = ${colors.foreground-alt}
- ;animation-discharging-framerate = 750
- [module/battery0]
- inherit = module/battery
- battery = BAT0
- [module/battery1]
- inherit = module/battery
- battery = BAT1
- [module/date]
- type = internal/date
- ; Seconds to sleep between updates
- interval = 1.0
- ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
- ; NOTE: if you want to use syntax tags here you need to use %%{...}
- date = %Y-%m-%d%
- ; Optional time format
- time = %H:%M
- ; if `date-alt` or `time-alt` is defined, clicking
- ; the module will toggle between formats
- date-alt = %A, %d %B %Y
- time-alt = %H:%M:%S
- label = %date% %time%
- label-font = 0
- label-foreground = ${colors.foreground}
- [module/wireless-network]
- type = internal/network
- interface = wlp3s0
- label-connected = %essid%
- format-connected = <ramp-signal>
- label-connected-foreground = #5ab414
- format-disconnected = <label-disconnected>
- label-disconnected = Not connected
- label-disconnected-foreground = #BF616A
- ramp-signal-foreground = #5ab414
- ramp-signal-0 =
- ramp-signal-1 =
- ramp-signal-2 =
- ramp-signal-3 =
- ramp-signal-4 =
- ramp-signal-5 =
- [module/mpd]
- type = internal/mpd
- ;format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
- format-online = <icon-prev> <toggle> <icon-next> <label-song>
- label-foreground = #5ab414
- format-prefix-foreground = #5ab414
- icon-prev =
- icon-stop =
- icon-play =
- icon-pause =
- icon-next =
- label-song-maxlen = 25
- label-song-ellipsis = true
- [module/cpu]
- type = internal/cpu
- ; Seconds to sleep between updates
- ; Default: 1
- interval = 0.5
- label = %percentage%%
- label-foreground = #0066cc
- label-padding-right = 1
- [module/memory]
- type = internal/memory
- ; Seconds to sleep between updates
- ; Default: 1
- interval = 0.5
- format = <label>
- ; Available tokens:
- ; %percentage_used% (default)
- ; %percentage_free%
- ; %gb_used%
- ; %gb_free%
- ; %gb_total%
- ; %mb_used%
- ; %mb_free%
- ; %mb_total%
- ; %percentage_swap_used%
- ; %percentage_swap_free%
- ; %mb_swap_total%
- ; %mb_swap_free%
- ; %mb_swap_used%
- ; %gb_swap_total%
- ; %gb_swap_free%
- ; %gb_swap_used%
- label = %percentage_used%%
- label-foreground = #f92672
- [module/temperature]
- type = internal/temperature
- ; Seconds to sleep between updates
- ; Default: 1
- interval = 0.5
- ; Thermal zone to use
- ; To list all the zone types, run
- ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
- ; Default: 0
- thermal-zone = 0
- ; Full path of temperature sysfs path
- ; Use `sensors` to find preferred temperature source, then run
- ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
- ; to find path to desired file
- ; Default reverts to thermal zone setting
- ;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
- ; Threshold temperature to display warning label (in degrees celsius)
- ; Default: 80
- warn-temperature = 60
- format = <label>
- ; Available tags:
- ; <label-warn> (default)
- ; <ramp>
- ; Available tokens:
- ; %temperature% (deprecated)
- ; %temperature-c% (default, temperature in °C)
- ; %temperature-f% (temperature in °F)
- label = %temperature-c%
- label-foreground = #fdc21f
- [module/ext-ipv4]
- type = custom/script
- exec = $HOME/.config/polybar/pub-ipv4.sh
- label = %output%
- label-foreground = ${colors.foreground}
- interval=5
- [module/pulseaudio]
- type = internal/pulseaudio
- format-volume = <label-volume>
- label-volume = 墳 %percentage%%
- label-volume-foreground = #add8e6
- label-muted = ﱝ
- label-muted-foreground = ${colors.foreground}
- ;bar-volume-width = 5
- ;;bar-volume-foreground-0 = #55aa55
- ;;bar-volume-foreground-1 = #55aa55
- ;;bar-volume-foreground-2 = #55aa55
- ;;bar-volume-foreground-3 = #55aa55
- ;;bar-volume-foreground-4 = #55aa55
- ;;bar-volume-foreground-5 = #f5a70a
- ;;bar-volume-foreground-6 = #ff5555
- ;bar-volume-gradient = false
- ;bar-volume-indicator = |
- ;bar-volume-indicator-font = 2
- ;bar-volume-indicator-foreground = ${colors.foreground}
- ;bar-volume-fill = ─
- ;bar-volume-fill-font = 2
- ;bar-volume-fill-foreground = #9f78e1
- ;bar-volume-empty = ─
- ;bar-volume-empty-font = 2
- ;bar-volume-empty-foreground = ${colors.foreground-alt}
- [module/xbacklight]
- type = internal/xbacklight
- format = <label>
- label = %percentage%%
- label-foreground = #cccc00
- ;bar-width = 5
- ;bar-indicator = |
- ;bar-indicator-foreground = #fff
- ;bar-indicator-font = 2
- ;bar-fill = ─
- ;bar-fill-font = 2
- ;bar-fill-foreground = #9f78e1
- ;bar-empty = ─
- ;bar-empty-font = 2
- ;bar-empty-foreground = ${colors.foreground-alt}
- [module/backlight-acpi]
- inherit = module/xbacklight
- type = internal/backlight
- card = intel_backlight
- [module/decor-glyph]
- type = custom/text
- content-foreground = #899ca1
- margin = 0
- [module/sep]
- inherit = module/decor-glyph
- content = "/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement