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.9KB

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