Browse Source

More work on the polybar. Looks useable now.

master
Bryan Miller 4 years ago
parent
commit
b48deb3df4
No known key found for this signature in database
2 changed files with 91 additions and 55 deletions
  1. +4
    -2
      polybar/config
  2. +87
    -53
      polybar/modules.obsidianblk.ini

+ 4
- 2
polybar/config View File

@@ -59,11 +59,13 @@ font-0 = DejaVu Sans Mono for Powerline:style=Bold:pixelsize=10;0
font-1 = DejaVu Sans Mono for Powerline:style=Bold:pixelsize=20;1
font-2 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-3 = siji:pixelsize=10;1
font-3 = TerminessTTF Nerd Font:pixelsize=14;0
font-3 = TerminessTTF Nerd Font Mono:pixelsize=16;0
font-4 = TerminessTTF Nerd Font:pixelsize=24;0

modules-left = obspace obswoosh obswedge-l bspwm i3 obswedge-r obswoosh
modules-center =
modules-right = filesystem pulseaudio xkeyboard cpu memory eth date powermenu
modules-right = obswoosh obswedge-l obspace-inv obsdigi-l filesystem obsdigi-r pulseaudio obspace-inv cpu memory eth date powermenu obswedge-r obswoosh


tray-position = right
tray-padding = 2

+ 87
- 53
polybar/modules.obsidianblk.ini View File

@@ -4,6 +4,12 @@ content-foreground = ${colors.primary}
content-padding = 0
content = %{T2} %{T-}

[module/obspace-inv]
type = custom/text
content-background = ${colors.primary}
content-padding = 0
content = %{T2} %{T-}

[module/obswedge-l]
type = custom/text
content-foreground = ${colors.primary}
@@ -22,35 +28,57 @@ content-foreground = ${colors.primary}
content-padding = 0
content = %{T2}%{T-}

[module/obsdigi-l]
type = custom/text
content-foreground = ${colors.primary}
content-padding = 0
content = %{T4}%{T-}

[module/obsdigi-r]
type = custom/text
content-foreground = ${colors.primary}
content-padding = 0
content = %{T4}%{T-}

[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%

[module/xkeyboard]
; Not sure, but I think this may be broken
; Cutting off half of the icon in the prefix
; and adding an extra space at the end where there shouldn't be any.
type = internal/xkeyboard
blacklist-0 = num lock

format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
format-prefix = " "
format-prefix-foreground = ${colors.background}
format-prefix-background = ${colors.primary}

label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-layout = "%layout% "
label-layout-foreground = ${colors.background}
label-layout-background = ${colors.primary}

label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
;label-indicator-padding = 0
;label-indicator-margin = 0
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.primary}

[module/filesystem]
type = internal/fs
interval = 25
spacing = 1

mount-0 = /
mount-1 = /home

label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
;label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-mounted = "[%mountpoint%]: %percentage_used%%"
label-foreground = ${colors.background}
label-background = ${colors.primary}
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
label-unmounted-foreground = ${colors.background}
label-unmounted-background = ${colors.primary}

[module/bspwm]
type = internal/bspwm
@@ -153,24 +181,24 @@ card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-background = ${colors.primary}
format-prefix-foreground = ${colors.background}
format-background = ${colors.primary}
format-foreground = ${colors.background}
format-prefix = " cpu:"
format-prefix-background = ${colors.background}
format-prefix-foreground = ${colors.primary}
format-background = ${colors.background}
format-foreground = ${colors.primary}
;format-underline = #f90000
label = %percentage:2%%
label = "%percentage:2%% "

[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-background = ${colors.primary}
format-prefix-foreground = ${colors.background}
format-background = ${colors.primary}
format-foreground = ${colors.background}
format-prefix = " %{T2}|%{T-} mem: "
format-prefix-background = ${colors.background}
format-prefix-foreground = ${colors.primary}
format-background = ${colors.background}
format-foreground = ${colors.primary}
;format-underline = #4bffdc
label = %percentage_used%%
label = "%percentage_used%% "

[module/wlan]
type = internal/network
@@ -217,41 +245,51 @@ interval = 5
date =
date-alt = " %Y-%m-%d"

time = %H:%M
time-alt = %H:%M:%S
time = %H:%M:%S
time-alt = "%H:%M:%S "

format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
format-prefix-background = ${colors.primary}
format-prefix-foreground = ${colors.background}

label = %date% %time%
label-background = ${colors.primary}
label-foreground = ${colors.background}

[module/pulseaudio]
type = internal/pulseaudio

format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}

label-muted = 🔇 muted
label-muted-foreground = #666

bar-volume-width = 10
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
format-volume = <label-volume><bar-volume>
format-volume-foreground = ${colors.background}
format-volume-background = ${colors.primary}

label-volume = " VOL %percentage%% "
label-volume-foreground = ${colors.background}
label-volume-background = ${colors.primary}

label-muted = " muted"
label-muted-foreground = ${colors.background-alt}
label-muted-background = ${colors.primary}

bar-volume-width = 5
bar-volume-foreground-0 = ${colors.foreground}
bar-volume-background-0 = ${colors.primary}
bar-volume-foreground-1 = ${colors.foreground}
bar-volume-background-1 = ${colors.primary}
bar-volume-foreground-2 = ${colors.foreground-alt}
bar-volume-background-2 = ${colors.primary}
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator =
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-indicator-background = ${colors.primary}
bar-volume-fill = —
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-fill-foreground = ${colors.foreground}
bar-volume-fill-background = ${colors.primary}
bar-volume-empty = —
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
bar-volume-empty-foreground = ${colors.background-alt}
bar-volume-empty-background = ${colors.primary}

[module/alsa]
type = internal/alsa
@@ -265,13 +303,9 @@ format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted

bar-volume-width = 10
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-foreground-0 = ${colors.primary}
bar-volume-foreground-1 = ${colors.foreground}
bar-volume-foreground-2 = ${colors.foreground-alt}
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2

Loading…
Cancel
Save