style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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: Cantarell, Noto Sans, sans-serif;
  45. font-size: 13px;
  46. }
  47. /* Each module */
  48. #battery,
  49. #clock,
  50. #cpu,
  51. #custom-keyboard-layout,
  52. #memory,
  53. #mode,
  54. #network,
  55. #pulseaudio,
  56. #temperature,
  57. #tray {
  58. padding-left: 10px;
  59. padding-right: 10px;
  60. }
  61. /* -----------------------------------------------------------------------------
  62. * Module styles
  63. * -------------------------------------------------------------------------- */
  64. #battery {
  65. animation-timing-function: linear;
  66. animation-iteration-count: infinite;
  67. animation-direction: alternate;
  68. }
  69. #battery.warning {
  70. color: orange;
  71. }
  72. #battery.critical {
  73. color: red;
  74. }
  75. #battery.warning.discharging {
  76. animation-name: blink-warning;
  77. animation-duration: 3s;
  78. }
  79. #battery.critical.discharging {
  80. animation-name: blink-critical;
  81. animation-duration: 2s;
  82. }
  83. #clock {
  84. font-weight: bold;
  85. }
  86. #cpu {
  87. /* No styles */
  88. }
  89. #cpu.warning {
  90. color: orange;
  91. }
  92. #cpu.critical {
  93. color: red;
  94. }
  95. #memory {
  96. animation-timing-function: linear;
  97. animation-iteration-count: infinite;
  98. animation-direction: alternate;
  99. }
  100. #memory.warning {
  101. color: orange;
  102. }
  103. #memory.critical {
  104. color: red;
  105. animation-name: blink-critical;
  106. animation-duration: 2s;
  107. }
  108. #mode {
  109. background: #64727D;
  110. border-top: 2px solid white;
  111. /* To compensate for the top border and still have vertical centering */
  112. padding-bottom: 2px;
  113. }
  114. #network {
  115. /* No styles */
  116. }
  117. #network.disconnected {
  118. color: orange;
  119. }
  120. #pulseaudio {
  121. /* No styles */
  122. }
  123. #pulseaudio.muted {
  124. /* No styles */
  125. }
  126. #custom-spotify {
  127. color: rgb(102, 220, 105);
  128. }
  129. #temperature {
  130. /* No styles */
  131. }
  132. #temperature.critical {
  133. color: red;
  134. }
  135. #tray {
  136. /* No styles */
  137. }
  138. #window {
  139. font-weight: bold;
  140. }
  141. #workspaces button {
  142. border-top: 2px solid transparent;
  143. /* To compensate for the top border and still have vertical centering */
  144. padding-bottom: 2px;
  145. padding-left: 10px;
  146. padding-right: 10px;
  147. color: #888888;
  148. }
  149. #workspaces button.focused {
  150. border-color: #4c7899;
  151. color: white;
  152. background-color: #285577;
  153. }
  154. #workspaces button.urgent {
  155. border-color: #c9545d;
  156. color: #c9545d;
  157. }