style.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. * {
  2. /* `otf-font-awesome` is required to be installed for icons */
  3. font-family: Roboto, Helvetica, Arial, sans-serif;
  4. font-size: 13px;
  5. }
  6. window#waybar {
  7. background-color: rgba(43, 48, 59, 0.5);
  8. border-bottom: 3px solid rgba(100, 114, 125, 0.5);
  9. color: #ffffff;
  10. transition-property: background-color;
  11. transition-duration: .5s;
  12. }
  13. window#waybar.hidden {
  14. opacity: 0.2;
  15. }
  16. #workspaces button {
  17. padding: 0 5px;
  18. background-color: transparent;
  19. color: #ffffff;
  20. /* Use box-shadow instead of border so the text isn't offset */
  21. box-shadow: inset 0 -3px transparent;
  22. /* Avoid rounded borders under each workspace name */
  23. border: none;
  24. border-radius: 0;
  25. }
  26. /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
  27. #workspaces button:hover {
  28. background: rgba(0, 0, 0, 0.2);
  29. box-shadow: inset 0 -3px #ffffff;
  30. }
  31. #workspaces button.focused {
  32. background-color: #64727D;
  33. box-shadow: inset 0 -3px #ffffff;
  34. }
  35. #workspaces button.urgent {
  36. background-color: #eb4d4b;
  37. }
  38. #mode {
  39. background-color: #64727D;
  40. border-bottom: 3px solid #ffffff;
  41. }
  42. #clock,
  43. #battery,
  44. #cpu,
  45. #memory,
  46. #disk,
  47. #temperature,
  48. #backlight,
  49. #network,
  50. #pulseaudio,
  51. #custom-media,
  52. #tray,
  53. #mode,
  54. #idle_inhibitor,
  55. #mpd {
  56. padding: 0 10px;
  57. color: #ffffff;
  58. }
  59. #window,
  60. #workspaces {
  61. margin: 0 4px;
  62. }
  63. /* If workspaces is the leftmost module, omit left margin */
  64. .modules-left > widget:first-child > #workspaces {
  65. margin-left: 0;
  66. }
  67. /* If workspaces is the rightmost module, omit right margin */
  68. .modules-right > widget:last-child > #workspaces {
  69. margin-right: 0;
  70. }
  71. #clock {
  72. background-color: #64727D;
  73. }
  74. #battery {
  75. background-color: #ffffff;
  76. color: #000000;
  77. }
  78. #battery.charging, #battery.plugged {
  79. color: #ffffff;
  80. background-color: #26A65B;
  81. }
  82. @keyframes blink {
  83. to {
  84. background-color: #ffffff;
  85. color: #000000;
  86. }
  87. }
  88. #battery.critical:not(.charging) {
  89. background-color: #f53c3c;
  90. color: #ffffff;
  91. animation-name: blink;
  92. animation-duration: 0.5s;
  93. animation-timing-function: linear;
  94. animation-iteration-count: infinite;
  95. animation-direction: alternate;
  96. }
  97. label:focus {
  98. background-color: #000000;
  99. }
  100. #cpu {
  101. background-color: #2ecc71;
  102. color: #000000;
  103. }
  104. #memory {
  105. background-color: #9b59b6;
  106. }
  107. #disk {
  108. background-color: #964B00;
  109. }
  110. #backlight {
  111. background-color: #90b1b1;
  112. }
  113. #network {
  114. background-color: #2980b9;
  115. }
  116. #network.disconnected {
  117. background-color: #f53c3c;
  118. }
  119. #pulseaudio {
  120. background-color: #f1c40f;
  121. color: #000000;
  122. }
  123. #pulseaudio.muted {
  124. background-color: #90b1b1;
  125. color: #2a5c45;
  126. }
  127. #custom-media {
  128. background-color: #66cc99;
  129. color: #2a5c45;
  130. min-width: 100px;
  131. }
  132. #custom-media.custom-spotify {
  133. background-color: #66cc99;
  134. }
  135. #custom-media.custom-vlc {
  136. background-color: #ffa000;
  137. }
  138. #temperature {
  139. background-color: #f0932b;
  140. }
  141. #temperature.critical {
  142. background-color: #eb4d4b;
  143. }
  144. #tray {
  145. background-color: #2980b9;
  146. }
  147. #tray > .passive {
  148. -gtk-icon-effect: dim;
  149. }
  150. #tray > .needs-attention {
  151. -gtk-icon-effect: highlight;
  152. background-color: #eb4d4b;
  153. }
  154. #idle_inhibitor {
  155. background-color: #2d3436;
  156. }
  157. #idle_inhibitor.activated {
  158. background-color: #ecf0f1;
  159. color: #2d3436;
  160. }
  161. #mpd {
  162. background-color: #66cc99;
  163. color: #2a5c45;
  164. }
  165. #mpd.disconnected {
  166. background-color: #f53c3c;
  167. }
  168. #mpd.stopped {
  169. background-color: #90b1b1;
  170. }
  171. #mpd.paused {
  172. background-color: #51a37a;
  173. }
  174. #language {
  175. background: #00b093;
  176. color: #740864;
  177. padding: 0 5px;
  178. margin: 0 5px;
  179. min-width: 16px;
  180. }
  181. #keyboard-state {
  182. background: #97e1ad;
  183. color: #000000;
  184. padding: 0 0px;
  185. margin: 0 5px;
  186. min-width: 16px;
  187. }
  188. #keyboard-state > label {
  189. padding: 0 5px;
  190. }
  191. #keyboard-state > label.locked {
  192. background: rgba(0, 0, 0, 0.2);
  193. }