diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..dde7704 --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,144 @@ +[colors] +background = ${xrdb:color0:#222} +foreground = ${xrdb:color7:#222} +foreground-alt = ${xrdb:color8:#222} +primary = ${xrdb:color1:#222} +secondary = ${xrdb:color5:#222} +alert = ${xrdb:color6:#222} + +[bar/main] +bottom = false +width = 100% +height = 29pt +radius = 0 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 0 +border-color = #00000000 + +padding-left = 0 +padding-right = 1 + +module-margin = 1 + +separator = | +separator-foreground = ${colors.disabled} + +font-0 = mononoki-12;1 + +modules-left = ewmh +modules-center = date +modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; tray-position = right + +; wm-restack = generic +; wm-restack = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/info-hlwm-workspaces] +type = custom/script +exec = ~/.config/polybar/info-hlwm-workspaces/info-hlwm-workspaces.sh +tail = true +scroll-up = herbstclient use_index -1 --skip-visible & +scroll-down = herbstclient use_index +1 --skip-visible & +label-active-font = 1 + +[module/ewmh] +type = internal/xworkspaces +enable-scroll = true +format-padding = 0 + +label-empty-foreground = ${colors.foreground} +label-empty-padding = 1 + +label-urgent-foreground = ${colors.alert} +label-urgent-padding = 1 + +label-occupied-foreground = ${colors.primary} +label-occupied-padding = 1 + +label-active-foreground = ${colors.secondary} +label-active-padding = 1 + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume-prefix = "VOL " +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% + +label-muted = muted +label-muted-foreground = ${colors.disabled} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +label-layout = %layout% +label-layout-foreground = ${colors.primary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-foreground = ${colors.background} +label-indicator-background = ${colors.secondary} + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "RAM " +format-prefix-foreground = ${colors.primary} +label = %percentage_used:2%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.primary} +label = %percentage:2%% + +[network-base] +type = internal/network +interval = 5 +format-connected = +format-disconnected = +label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected + +[module/wlan] +inherit = network-base +interface-type = wireless +label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip% + +[module/eth] +inherit = network-base +interface-type = wired +label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% + +[module/date] +type = internal/date +interval = 1 + +date = %H:%M +date-alt = %Y-%m-%d %H:%M:%S + +label = %date% +label-foreground = ${colors.foreground} + +[settings] +screenchange-reload = true +pseudo-transparency = false + +; vim:ft=dosini