浏览代码

More work on the polybar. Looks useable now.

master
Bryan Miller 4 年前
父节点
当前提交
b48deb3df4
找不到此签名对应的密钥
共有 2 个文件被更改,包括 91 次插入55 次删除
  1. +4
    -2
      polybar/config
  2. +87
    -53
      polybar/modules.obsidianblk.ini

+ 4
- 2
polybar/config 查看文件

font-1 = DejaVu Sans Mono for Powerline:style=Bold:pixelsize=20;1 font-1 = DejaVu Sans Mono for Powerline:style=Bold:pixelsize=20;1
font-2 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-3 = siji:pixelsize=10;1 ;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-left = obspace obswoosh obswedge-l bspwm i3 obswedge-r obswoosh
modules-center = 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-position = right
tray-padding = 2 tray-padding = 2

+ 87
- 53
polybar/modules.obsidianblk.ini 查看文件

content-padding = 0 content-padding = 0
content = %{T2} %{T-} content = %{T2} %{T-}


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

[module/obswedge-l] [module/obswedge-l]
type = custom/text type = custom/text
content-foreground = ${colors.primary} content-foreground = ${colors.primary}
content-padding = 0 content-padding = 0
content = %{T2}%{T-} 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] [module/xwindow]
type = internal/xwindow type = internal/xwindow
label = %title:0:30:...% label = %title:0:30:...%


[module/xkeyboard] [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 type = internal/xkeyboard
blacklist-0 = num lock 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] [module/filesystem]
type = internal/fs type = internal/fs
interval = 25 interval = 25
spacing = 1


mount-0 = / 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 = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
label-unmounted-foreground = ${colors.background}
label-unmounted-background = ${colors.primary}


[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2 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 ;format-underline = #f90000
label = %percentage:2%%
label = "%percentage:2%% "


[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 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 ;format-underline = #4bffdc
label = %percentage_used%%
label = "%percentage_used%% "


[module/wlan] [module/wlan]
type = internal/network type = internal/network
date = date =
date-alt = " %Y-%m-%d" 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 = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
format-prefix-background = ${colors.primary}
format-prefix-foreground = ${colors.background}


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


[module/pulseaudio] [module/pulseaudio]
type = internal/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-gradient = false
bar-volume-indicator = |
bar-volume-indicator =
bar-volume-indicator-font = 2 bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-indicator-background = ${colors.primary}
bar-volume-fill = —
bar-volume-fill-font = 2 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-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
bar-volume-empty-foreground = ${colors.background-alt}
bar-volume-empty-background = ${colors.primary}


[module/alsa] [module/alsa]
type = internal/alsa type = internal/alsa
label-muted = sound muted label-muted = sound muted


bar-volume-width = 10 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-gradient = false
bar-volume-indicator = | bar-volume-indicator = |
bar-volume-indicator-font = 2 bar-volume-indicator-font = 2

正在加载...
取消
保存