style.css 3.3 KB

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