跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • polybar 预留空白失效
未分類
5 3 月 2021

polybar 预留空白失效

polybar 预留空白失效

資深大佬 : hanssx 1

cpu 的百分比显示,比如

icon 8%  icon 18% 

我想让它在 polybar 上占的宽度一样,因为 cpu 百分比的变化会让整体 polybar 总是抖动,想变成这样

icon  8% icon 18% 

我看 polybar wiki 上关于 token 的内容,好像设置了最小宽度依然不行,还是在抖动。https://github.com/polybar/polybar/wiki/Formatting

[module/cpu] type = internal/cpu  ; Seconds to sleep between updates ; Default: 1 interval = 1  ; Available tags: ;   <label> (default) ;   <bar-load> ;   <ramp-load> ;   <ramp-coreload> ;;format = <label> <ramp-coreload> format = <label> format-prefix =  format-prefix-foreground = ${color.yellow}  ; Available tokens: ;   %percentage% (default) - total cpu load averaged over all cores ;   %percentage-sum% - Cumulative load on all cores ;   %percentage-cores% - load percentage for each core ;   %percentage-core[1-9]% - load percentage for specific core label = " %percentage:2:2%%"  ; Spacing between individual per-core ramps ;;ramp-coreload-spacing = 1 ;;ramp-coreload-0 = ${cpu.load0} ;;ramp-coreload-1 = ${cpu.load1}  ;;ramp-load-0 = ${cpu.load0} ;;ramp-load-1 = ${cpu.load1}  ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_  

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具