You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

polybar 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. [settings]
  2. screenchange-reload = true
  3. [global/wm]
  4. margin-top = 0
  5. margin-bottom = 0
  6. [color]
  7. background = <{color.bg}>
  8. foreground = <{color.fg}>
  9. red = <{color5}>
  10. green = <{color2}>
  11. black-bright = <{color8}>
  12. [bar/main]
  13. width = 1914
  14. height = 24
  15. offset-x = 3
  16. offset-y = 3
  17. padding-right = 1
  18. module-margin = 1
  19. modules-left = bspwm xwindow
  20. modules-center = mpd
  21. modules-right = github wlan memory cpu temperature date
  22. font-0 = Inter:pixelsize=9;3
  23. font-1 = Sarasa UI J:size=10;2
  24. font-2 = Siji;3
  25. font-3 = forkawesome:pixelsize=10;4
  26. background = ${color.background}
  27. foreground = ${color.foreground}
  28. border-size = 1
  29. border-color = ${color.black-bright}
  30. wm-restack = bspwm
  31. scroll-up = bspwm-desknext
  32. scroll-down = bspwm-deskprev
  33. tray-position = right
  34. tray-detached = false
  35. tray-padding = 1
  36. [module/bspwm]
  37. type = internal/bspwm
  38. ws-icon-0 = 0;一
  39. ws-icon-1 = 1;二
  40. ws-icon-2 = 2;三
  41. ws-icon-3 = 3;四
  42. ws-icon-4 = 4;五
  43. ws-icon-5 = 5;六
  44. ws-icon-6 = 6;七
  45. ws-icon-7 = 7;八
  46. ws-icon-8 = 8;九
  47. ws-icon-9 = 9;十
  48. format = <label-state>
  49. label-focused = %icon%
  50. label-focused-background = #444
  51. label-focused-padding = 2
  52. label-occupied = %icon%
  53. label-occupied-padding = 2
  54. label-urgent = %icon%!
  55. label-urgent-background = ${color.green}
  56. label-urgent-padding = 2
  57. label-empty =
  58. [module/xwindow]
  59. type = internal/xwindow
  60. label = %title:0:80:…%
  61. [module/mpd]
  62. type = internal/mpd
  63. icon-prev = 
  64. icon-play = 
  65. icon-pause = 
  66. icon-next = 
  67. label-song-maxlen = 45
  68. label-song-ellipsis = true
  69. format-online = <label-song> <toggle> <icon-prev> <icon-next>
  70. [module/github]
  71. type = internal/github
  72. token = ${file:<{$HOME}>/.github}
  73. empty-notifications = false
  74. interval = 10
  75. format = <label>
  76. format-prefix = "  "
  77. format-prefix-foreground = ${color.black-bright}
  78. label = %notifications%
  79. [module/wlan]
  80. type = internal/network
  81. interface = wlp0s29u1u6
  82. format-connected = <ramp-signal> <label-connected>
  83. label-connected = %downspeed%
  84. format-disconnected =
  85. ramp-signal-0 = 
  86. ramp-signal-1 = 
  87. ramp-signal-2 = 
  88. ramp-signal-3 = 
  89. ramp-signal-4 = 
  90. ramp-signal-foreground = ${color.black-bright}
  91. [module/memory]
  92. type = internal/memory
  93. interval = 2
  94. format-prefix = " "
  95. format-prefix-foreground = ${color.black-bright}
  96. label = %percentage_used%%
  97. [module/cpu]
  98. type = internal/cpu
  99. interval = 2
  100. format-prefix = " "
  101. format-prefix-foreground = ${color.black-bright}
  102. label = %percentage%%
  103. [module/temperature]
  104. type = internal/temperature
  105. thermal-zone = 0
  106. warn-temperature = 85
  107. format = <ramp> <label>
  108. format-warn = <ramp> <label-warn>
  109. label = %temperature-c%
  110. label-warn = %temperature-c%
  111. label-warn-foreground = ${color.red}
  112. ramp-0 = 
  113. ramp-1 = 
  114. ramp-2 = 
  115. ramp-foreground = ${color.black-bright}
  116. [module/date]
  117. type = internal/date
  118. interval = 5
  119. date =
  120. date-alt = " %d-%m-%Y"
  121. time = %H:%M
  122. time-alt = %H:%M:%S
  123. format-prefix = 
  124. format-prefix-foreground = ${color.black-bright}
  125. label = %date% %time%