style.css 3.6 KB

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