113 lines
2.4 KiB
Plaintext
113 lines
2.4 KiB
Plaintext
|
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
; x1phosura's polybar ;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
|
||
|
; preconfigured modules in /usr/share/doc/polybar/config
|
||
|
|
||
|
[bar/top]
|
||
|
;width = 90%
|
||
|
height = 3%
|
||
|
;offset-x = 20%
|
||
|
;offset-y = 20%
|
||
|
fixed-center = false
|
||
|
|
||
|
font-0 = "Inconsolata:size=16;0"
|
||
|
; font-1 = "Inconsolata:size=16;0"
|
||
|
|
||
|
modules-left = i3
|
||
|
modules-right = cpu wireless-network battery date time
|
||
|
module-margin = 1
|
||
|
|
||
|
scroll-up = "#i3.prev"
|
||
|
scroll-down = "#i3.next"
|
||
|
wm-restack = i3
|
||
|
|
||
|
|
||
|
;;;;;;;;;;;;;
|
||
|
; modules ;
|
||
|
;;;;;;;;;;;;;
|
||
|
|
||
|
[module/i3]
|
||
|
type = internal/i3
|
||
|
format = <label-state> <label-mode>
|
||
|
pin-workspaces = true
|
||
|
;index-sort = true
|
||
|
; clicking and scrolling features of i3 module
|
||
|
enable-click = true
|
||
|
; false because scroll handler defined in bar/top, so the whole bar is affected
|
||
|
enable-scroll = false
|
||
|
; true would make this annoying, trust me
|
||
|
wrapping-scroll = false
|
||
|
|
||
|
; still working on this part of the config...
|
||
|
;label-dimmed-underline = #ffffff
|
||
|
label-focused = "%name%"
|
||
|
label-focused-foreground = #000000
|
||
|
label-focused-background = #68c0e0
|
||
|
;label-focused-underline = #${colors.accent}
|
||
|
label-focused-underline = #000000
|
||
|
label-focused-padding = 1
|
||
|
label-unfocused = "%name%"
|
||
|
;label-unfocused-underline = #555555
|
||
|
label-unfocused-padding = 1
|
||
|
label-urgent = "%name%"
|
||
|
label-urgent-foreground = #000000
|
||
|
label-urgent-background = #bd2c40
|
||
|
;label-urgent-underline = #9b0a20
|
||
|
label-urgent-padding = 1
|
||
|
label-visible = "%name%"
|
||
|
label-visible-foreground = #55ffff
|
||
|
label-visible-padding = 1
|
||
|
|
||
|
|
||
|
[module/cpu]
|
||
|
type = internal/cpu
|
||
|
interval = 2
|
||
|
label = CPU %percentage%%
|
||
|
|
||
|
|
||
|
;; placeholder for RAM
|
||
|
;; [module/memory]
|
||
|
;; type = internal/memory
|
||
|
;; interval = 4
|
||
|
;; format = <label> <bar-used>
|
||
|
;; label = RAM %gb_used%/%gb_free%
|
||
|
|
||
|
|
||
|
;; wireless device
|
||
|
[module/wireless-network]
|
||
|
type = internal/network
|
||
|
interface = wlp4s0
|
||
|
interval = 1
|
||
|
format-connected = <label-connected>
|
||
|
format-disconnected = <label-disconnected>
|
||
|
label-connected = [%signal%] %essid% (%local_ip%) %downspeed% v, %upspeed% ^
|
||
|
label-disconnected = not connected
|
||
|
|
||
|
|
||
|
;; placeholder for ethernet device
|
||
|
; [module/wired-network]
|
||
|
; type = internal/network
|
||
|
|
||
|
|
||
|
[module/battery]
|
||
|
type = internal/battery
|
||
|
full-at = 100
|
||
|
label-charging = CHRG %percentage%%
|
||
|
label-discharging = BATT %percentage%%
|
||
|
format-charging = <label-charging>
|
||
|
format-discharging = <label-discharging>
|
||
|
; format-full =
|
||
|
|
||
|
|
||
|
[module/date]
|
||
|
type = internal/date
|
||
|
date = %b %e, %Y
|
||
|
|
||
|
|
||
|
[module/time]
|
||
|
type = internal/date
|
||
|
interval = 5.0
|
||
|
date = %H:%M:%S
|
||
|
|