style.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. @keyframes blink-warning {
  2. 70% {
  3. color: @light;
  4. }
  5. to {
  6. color: @light;
  7. background-color: @warning;
  8. }
  9. }
  10. @keyframes blink-critical {
  11. 70% {
  12. color: @light;
  13. }
  14. to {
  15. color: @light;
  16. background-color: @critical;
  17. }
  18. }
  19. /* -----------------------------------------------------------------------------
  20. * Styles
  21. * -------------------------------------------------------------------------- */
  22. /* COLORS */
  23. /* Nord */
  24. @define-color bg #000000;
  25. /*@define-color bg #353C4A;*/
  26. @define-color light #D8DEE9;
  27. /*@define-color dark @nord_dark_font;*/
  28. @define-color warning #ebcb8b;
  29. @define-color critical #BF616A;
  30. @define-color mode #434C5E;
  31. /*@define-color workspaces @bg;*/
  32. /*@define-color workspaces @nord_dark_font;*/
  33. /*@define-color workspacesfocused #434C5E;*/
  34. @define-color workspacesfocused #4C566A;
  35. @define-color tray @workspacesfocused;
  36. @define-color sound #EBCB8B;
  37. @define-color network #5D7096;
  38. @define-color memory #546484;
  39. @define-color cpu #596A8D;
  40. @define-color temp #4D5C78;
  41. @define-color layout #5e81ac;
  42. @define-color battery #88c0d0;
  43. @define-color date #434C5E;
  44. @define-color time #434C5E;
  45. @define-color backlight #434C5E;
  46. @define-color nord_bg #434C5E;
  47. @define-color nord_bg_blue #546484;
  48. @define-color nord_light #D8DEE9;
  49. @define-color nord_light_font #D8DEE9;
  50. @define-color nord_dark_font #434C5E;
  51. /* Reset all styles */
  52. * {
  53. border: none;
  54. border-radius: 3px;
  55. min-height: 0;
  56. margin: 0.2em 0.3em 0.2em 0.3em;
  57. }
  58. /* The whole bar */
  59. #waybar {
  60. background: @bg;
  61. color: @light;
  62. font-family: "Cantarell", "Font Awesome 5 Pro";
  63. font-size: 12px;
  64. font-weight: bold;
  65. }
  66. /* Each module */
  67. #battery,
  68. #clock,
  69. #cpu,
  70. #custom-layout,
  71. #memory,
  72. #mode,
  73. #network,
  74. #pulseaudio,
  75. #temperature,
  76. #custom-alsa,
  77. #custom-pacman,
  78. #custom-weather,
  79. #custom-gpu,
  80. #tray,
  81. #backlight,
  82. #language,
  83. #custom-cpugovernor {
  84. padding-left: 0.6em;
  85. padding-right: 0.6em;
  86. }
  87. /* Each module that should blink */
  88. #mode,
  89. #memory,
  90. #temperature,
  91. #battery {
  92. animation-timing-function: linear;
  93. animation-iteration-count: infinite;
  94. animation-direction: alternate;
  95. }
  96. /* Each critical module */
  97. #memory.critical,
  98. #cpu.critical,
  99. #temperature.critical,
  100. #battery.critical {
  101. color: @critical;
  102. }
  103. /* Each critical that should blink */
  104. #mode,
  105. #memory.critical,
  106. #temperature.critical,
  107. #battery.critical.discharging {
  108. animation-name: blink-critical;
  109. animation-duration: 2s;
  110. }
  111. /* Each warning */
  112. #network.disconnected,
  113. #memory.warning,
  114. #cpu.warning,
  115. #temperature.warning,
  116. #battery.warning {
  117. background: @warning;
  118. color: @nord_dark_font;
  119. }
  120. /* Each warning that should blink */
  121. #battery.warning.discharging {
  122. animation-name: blink-warning;
  123. animation-duration: 3s;
  124. }
  125. /* And now modules themselves in their respective order */
  126. #mode { /* Shown current Sway mode (resize etc.) */
  127. color: @light;
  128. background: @mode;
  129. }
  130. /* Workspaces stuff */
  131. #workspaces {
  132. /* color: #D8DEE9;
  133. margin-right: 10px;*/
  134. }
  135. #workspaces button {
  136. font-weight: bold; /* Somewhy the bar-wide setting is ignored*/
  137. padding: 0;
  138. /*color: #999;*/
  139. opacity: 0.3;
  140. background: none;
  141. font-size: 1em;
  142. }
  143. #workspaces button.focused {
  144. background: @workspacesfocused;
  145. color: #D8DEE9;
  146. opacity: 1;
  147. padding: 0 0.4em;
  148. }
  149. #workspaces button.urgent {
  150. border-color: #c9545d;
  151. color: #c9545d;
  152. opacity: 1;
  153. }
  154. #window {
  155. margin-right: 40px;
  156. margin-left: 40px;
  157. font-weight: normal;
  158. }
  159. #bluetooth {
  160. background: @nord_bg_blue;
  161. font-size: 1.2em;
  162. font-weight: bold;
  163. padding: 0 0.6em;
  164. }
  165. #custom-gpu {
  166. background: @nord_bg;
  167. font-weight: bold;
  168. padding: 0 0.6em;
  169. }
  170. #custom-weather {
  171. background: @mode;
  172. font-weight: bold;
  173. padding: 0 0.6em;
  174. }
  175. #custom-pacman {
  176. background: @nord_light;
  177. color: @nord_dark_font;
  178. font-weight: bold;
  179. padding: 0 0.6em;
  180. }
  181. #custom-scratchpad-indicator {
  182. background: @nord_light;
  183. color: @nord_dark_font;
  184. font-weight: bold;
  185. padding: 0 0.6em;
  186. }
  187. #idle_inhibitor {
  188. background: @mode;
  189. /*font-size: 1.6em;*/
  190. font-weight: bold;
  191. padding: 0 0.6em;
  192. }
  193. #custom-alsa {
  194. background: @sound;
  195. }
  196. #network {
  197. background: @nord_bg_blue;
  198. }
  199. #memory {
  200. background: @memory;
  201. }
  202. #cpu {
  203. background: @nord_bg;
  204. color: #D8DEE9;
  205. }
  206. #cpu.critical {
  207. color: @nord_dark_font;
  208. }
  209. #language {
  210. background: @nord_bg_blue;
  211. color: #D8DEE9;
  212. padding: 0 0.4em;
  213. }
  214. #custom-cpugovernor {
  215. background-color: @nord_light;
  216. color: @nord_dark_font;
  217. }
  218. #custom-cpugovernor.perf {
  219. }
  220. #temperature {
  221. background-color: @nord_bg;
  222. color: #D8DEE9;
  223. }
  224. #temperature.critical {
  225. background: @critical;
  226. }
  227. #custom-layout {
  228. background: @layout;
  229. }
  230. #battery {
  231. background: @battery;
  232. }
  233. #backlight {
  234. background: @backlight;
  235. }
  236. #clock {
  237. background: @nord_bg_blue;
  238. color: #D8DEE9;
  239. }
  240. #clock.date {
  241. background: @date;
  242. }
  243. #clock.time {
  244. background: @mode;
  245. }
  246. #pulseaudio { /* Unsused but kept for those who needs it */
  247. background: @nord_bg_blue;
  248. color: #D8DEE9;
  249. }
  250. #pulseaudio.muted {
  251. background: #BF616A;
  252. color: #BF616A;
  253. /* No styles */
  254. }
  255. #pulseaudio.source-muted {
  256. background: #D08770;
  257. color: #D8DEE9;
  258. /* No styles */
  259. }
  260. #tray {
  261. background: #434C5E;
  262. }