style.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. #pulseaudio,
  57. #temperature {
  58. padding-left: 10px;
  59. padding-right: 10px;
  60. min-width: 60px;
  61. }
  62. /* -----------------------------------------------------------------------------
  63. * Module styles
  64. * -------------------------------------------------------------------------- */
  65. #custom-brightness {
  66. border-top: 6px solid transparent;
  67. }
  68. #battery {
  69. animation-timing-function: linear;
  70. animation-iteration-count: infinite;
  71. animation-direction: alternate;
  72. }
  73. #battery.warning {
  74. color: orange;
  75. }
  76. #battery.critical {
  77. color: red;
  78. }
  79. #battery.warning.discharging {
  80. animation-name: blink-warning;
  81. animation-duration: 3s;
  82. }
  83. #battery.critical.discharging {
  84. animation-name: blink-critical;
  85. animation-duration: 2s;
  86. }
  87. #clock {
  88. font-weight: bold;
  89. }
  90. #cpu {
  91. /* No styles */
  92. }
  93. #cpu.warning {
  94. color: orange;
  95. }
  96. #cpu.critical {
  97. color: red;
  98. }
  99. #memory {
  100. animation-timing-function: linear;
  101. animation-iteration-count: infinite;
  102. animation-direction: alternate;
  103. }
  104. #memory.warning {
  105. color: orange;
  106. }
  107. #memory.critical {
  108. color: red;
  109. animation-name: blink-critical;
  110. animation-duration: 2s;
  111. }
  112. #mode {
  113. background: #64727D;
  114. border-top: 2px solid white;
  115. /* To compensate for the top border and still have vertical centering */
  116. padding-bottom: 2px;
  117. }
  118. #network {
  119. /* No styles */
  120. }
  121. #network.disconnected {
  122. color: orange;
  123. }
  124. #pulseaudio {
  125. /* No styles */
  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. }