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

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