style.css 3.5 KB

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