style.css 3.4 KB

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