diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..8443aca --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,192 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +;background = ${xrdb:color0:#222} +background = #222 +background-alt = #444 +;foreground = ${xrdb:color7:#222} +foreground = #dfdfdf +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +[settings] +; The throttle settings lets the eventloop swallow up til X events +; if they happen within Y millisecond after first event was received. +; This is done to prevent flood of update event. +; +; For example if 5 modules emit an update event at the same time, we really +; just care about the last one. But if we wait too long for events to swallow +; the bar would appear sluggish so we continue if timeout +; expires or limit is reached. +throttle-output = 5 +throttle-output-for = 10 +; Time in milliseconds that the input handler will wait between processing events +throttle-input-for = 30 + +[global/wm] +margin-top = 0 +margin-bottom = 0 + +[bar/mine] +; Put the bar at the bottom of the screen +bottom=false + +width = 100% +height = 25 +offset-x = 5% +offset-y = 2% +padding-left = +padding-right = +module-margin-left = 2 + +modules-left = workspaces +modules-center = +modules-right = cpu temp date +tray-position = right + +; Colors, defined further up +background = ${colors.background} +foreground = ${colors.foreground} +line-size = 2 +line-color = ${colors.primary} + +; 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 + +; 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 = NotoSans +font-1 = Iosevka:size=18 + +[module/workspaces] +; module type +type = internal/i3 +; default formatting +format = +; removes numbers for workspaces which have distinct names / icons +strip-wsnumbers = true + +; Available tokens: +; %name% +; %icon% +; %index% +; %output% +; Default: %icon% %name% +; unfocused = Inactive workspace on any monitor +label-unfocused = %name% +label-unfocused-padding = 4 +label-unfocused-underline = ${colors.background-alt} +; focused = Active workspace on focused monitor +label-focused = %name% +label-focused-foreground = ${colors.foreground} +label-focused-background = ${colors.background-alt} +label-focused-underline = ${colors.primary} +label-focused-padding = ${self.label-unfocused-padding} +; visible = Active workspace on unfocused monitor +label-visible = %name% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-unfocused-padding} +; urgent = Workspace with urgency hint set +label-urgent = %name% +label-urgent-background = ${colors.alert} +label-urgent-padding = ${self.label-unfocused-padding} + +[module/cpu] +; module type +type = internal/cpu +; Seconds to sleep between updates +interval = 1.0 +; Available tags: +;