style.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /* =============================================================================
  2. *
  3. * Waybar configuration
  4. *
  5. * Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
  6. *
  7. * =========================================================================== */
  8. /* -----------------------------------------------------------------------------
  9. * Keyframes
  10. * -------------------------------------------------------------------------- */
  11. @keyframes blink-warning {
  12. 70% {
  13. color: white;
  14. }
  15. to {
  16. color: white;
  17. background-color: orange;
  18. }
  19. }
  20. @keyframes blink-critical {
  21. 70% {
  22. color: white;
  23. }
  24. to {
  25. color: white;
  26. background-color: red;
  27. }
  28. }
  29. /* -----------------------------------------------------------------------------
  30. * Base styles
  31. * -------------------------------------------------------------------------- */
  32. /* Reset all styles */
  33. * {
  34. border: none;
  35. border-radius: 0;
  36. min-height: 0;
  37. margin: 0;
  38. padding: 0;
  39. }
  40. /* The whole bar */
  41. #waybar {
  42. background: #323232;
  43. color: white;
  44. font-family: B612;
  45. font-size: 13px;
  46. }
  47. /* Each module */
  48. #battery,
  49. #clock,
  50. #cpu,
  51. #custom-brightness,
  52. #custom-keyboard-layout,
  53. #memory,
  54. #mode,
  55. #network,
  56. #temperature {
  57. padding-left: 10px;
  58. padding-right: 10px;
  59. min-width: 60px;
  60. }
  61. /* -----------------------------------------------------------------------------
  62. * Module styles
  63. * -------------------------------------------------------------------------- */
  64. #custom-brightness {
  65. border-top: 6px solid transparent;
  66. }
  67. #battery {
  68. animation-timing-function: linear;
  69. animation-iteration-count: infinite;
  70. animation-direction: alternate;
  71. }
  72. #battery.warning {
  73. color: orange;
  74. }
  75. #battery.critical {
  76. color: red;
  77. }
  78. #battery.warning.discharging {
  79. animation-name: blink-warning;
  80. animation-duration: 3s;
  81. }
  82. #battery.critical.discharging {
  83. animation-name: blink-critical;
  84. animation-duration: 2s;
  85. }
  86. #clock {
  87. font-weight: bold;
  88. }
  89. #cpu {
  90. /* No styles */
  91. }
  92. #cpu.warning {
  93. color: orange;
  94. }
  95. #cpu.critical {
  96. color: red;
  97. }
  98. #memory {
  99. animation-timing-function: linear;
  100. animation-iteration-count: infinite;
  101. animation-direction: alternate;
  102. }
  103. #memory.warning {
  104. color: orange;
  105. }
  106. #memory.critical {
  107. color: red;
  108. animation-name: blink-critical;
  109. animation-duration: 2s;
  110. }
  111. #mode {
  112. background: #64727D;
  113. border-top: 2px solid white;
  114. /* To compensate for the top border and still have vertical centering */
  115. padding-bottom: 2px;
  116. }
  117. #network {
  118. /* No styles */
  119. }
  120. #network.disconnected {
  121. color: orange;
  122. }
  123. #pulseaudio {
  124. padding-left: 10px;
  125. padding-right: 10px;
  126. }
  127. #pulseaudio.muted {
  128. /* No styles */
  129. }
  130. #custom-spotify {
  131. color: rgb(102, 220, 105);
  132. }
  133. #temperature {
  134. /* No styles */
  135. }
  136. #temperature.critical {
  137. color: red;
  138. }
  139. #tray {
  140. /* No styles */
  141. }
  142. #window {
  143. font-weight: bold;
  144. }
  145. #workspaces button {
  146. border-top: 2px solid transparent;
  147. /* To compensate for the top border and still have vertical centering */
  148. padding-bottom: 2px;
  149. padding-left: 10px;
  150. padding-right: 10px;
  151. color: #888888;
  152. }
  153. #workspaces button.focused {
  154. border-color: #4c7899;
  155. color: white;
  156. background-color: #285577;
  157. }
  158. #workspaces button.urgent {
  159. border-color: #c9545d;
  160. color: #c9545d;
  161. }