style.css 3.2 KB

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