Guest User

Untitled

a guest
Oct 6th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. @import "colors.css";
  2.  
  3. * {
  4. font-family: 'Ubuntu Mono', 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  5. font-size: 18px;
  6. }
  7.  
  8. window#waybar {
  9. background-color: @bg;
  10. border-bottom: 3px solid @border;
  11. color: @text;
  12. transition-property: background-color;
  13. transition-duration: .5s;
  14. }
  15.  
  16. window#waybar.hidden {
  17. opacity: 0.2;
  18. }
  19.  
  20. button {
  21. /* Use box-shadow instead of border so the text isn't offset */
  22. box-shadow: inset 0 -3px transparent;
  23. /* Avoid rounded borders under each button name */
  24. border: none;
  25. border-radius: 0;
  26. }
  27.  
  28. /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
  29. button:hover {
  30. background: inherit;
  31. box-shadow: inset 0 -3px @border-sel;
  32. }
  33.  
  34. /* you can set a style on hover for any module like this */
  35.  
  36. #tags button {
  37. padding: 0 0px;
  38. background-color: transparent;
  39. color: @text;
  40. }
  41.  
  42. #tags button:hover {
  43. background: @modules-hover;
  44. }
  45.  
  46. #tags button.focused {
  47. background-color: @bg-sel;
  48. box-shadow: inset 0 -3px @border-sel;
  49. }
  50.  
  51. #tags button.occupied {
  52. box-shadow: inset 0 -3px @border-sel;
  53. }
  54.  
  55. #tags button.urgent {
  56. background-color: @tag-warn;
  57. }
  58.  
  59. #window.focused {
  60. background-color: transparent;
  61. color: @text;
  62. border-bottom: 3px solid @border;
  63. padding: 0 10px;
  64. }
  65.  
  66. #clock,
  67. #battery,
  68. #cpu,
  69. #memory,
  70. #disk,
  71. #temperature,
  72. #backlight,
  73. #network,
  74. #pulseaudio,
  75. #tray,
  76. #idle_inhibitor,
  77. #scratchpad,
  78. #power-profiles-daemon,
  79. #mpd {
  80. padding: 0 6px;
  81. color: @text;
  82. }
  83.  
  84. #window,
  85.  
  86. #clock:hover {
  87. background-color: @modules-hover;
  88. }
  89. #battery:hover {
  90. background-color: @modules-hover;
  91. }
  92. #cpu:hover {
  93. background-color: @modules-hover;
  94. }
  95. #memory:hover {
  96. background-color: @modules-hover;
  97. }
  98. #disk:hover {
  99. background-color: @modules-hover;
  100. }
  101. #temperature:hover {
  102. background-color: @modules-hover;
  103. }
  104. #backlight:hover {
  105. background-color: @modules-hover;
  106. }
  107. #network:hover {
  108. background-color: @modules-hover;
  109. }
  110. #pulseaudio:hover {
  111. background-color: @modules-hover;
  112. }
  113. #tray:hover {
  114. background-color: @modules-hover;
  115. }
  116. #idle_inhibitor:hover {
  117. background-color: @modules-hover;
  118. }
  119. #scratchpad:hover {
  120. background-color: @modules-hover;
  121. }
  122. #power-profiles-daemon:hover {
  123. background-color: @modules-hover;
  124. }
  125. #mpd:hover {
  126. background-color: @modules-hover;
  127. }
  128.  
  129. /* If workspaces is the leftmost module, omit left margin */
  130. .modules-left > widget:first-child > #tags {
  131. margin-left: 0;
  132. }
  133.  
  134. /* If workspaces is the rightmost module, omit right margin */
  135. .modules-right > widget:last-child > #tags {
  136. margin-right: 0;
  137. }
  138.  
  139. #clock {
  140. background-color: @modules;
  141. color: @text;
  142. border-bottom: 3px solid @border;
  143. }
  144.  
  145. #battery {
  146. background-color: @modules;
  147. color: @text;
  148. border-bottom: 3px solid @bal;
  149. }
  150.  
  151. #battery.charging, #battery.plugged {
  152. background-color: @modules;
  153. color: @text;
  154. border-bottom: 3px solid @reg;
  155. }
  156.  
  157. @keyframes blink {
  158. to {
  159. background-color: #ffffff;
  160. color: #000000;
  161. }
  162. }
  163.  
  164. /* Using steps() instead of linear as a timing function to limit cpu usage */
  165. #battery.critical:not(.charging) {
  166. background-color: @modules;
  167. color: @text;
  168. border-bottom: 3px solid @crit;
  169. animation-name: blink;
  170. animation-duration: 0.5s;
  171. animation-timing-function: steps(12);
  172. animation-iteration-count: infinite;
  173. animation-direction: alternate;
  174. }
  175.  
  176. #power-profiles-daemon {
  177. padding-right: 15px;
  178. }
  179.  
  180. #power-profiles-daemon.performance {
  181. background-color: @modules;
  182. color: @text;
  183. border-bottom: 3px solid @crit;
  184. }
  185.  
  186. #power-profiles-daemon.balanced {
  187. background-color: @modules;
  188. color: @text;
  189. border-bottom: 3px solid @bal;
  190. }
  191.  
  192. #power-profiles-daemon.power-saver {
  193. background-color: @modules;
  194. color: @text;
  195. border-right: 7px solid @reg;
  196. }
  197.  
  198. label:focus {
  199. background-color: #000000;
  200. }
  201.  
  202. #cpu {
  203. background-color: @modules;
  204. color: @text;
  205. border-bottom: 3px solid @border;
  206. }
  207.  
  208. #memory {
  209. background-color: @modules;
  210. color: @text;
  211. border-bottom: 3px solid @border;
  212. }
  213.  
  214. #disk {
  215. background-color: @modules;
  216. color: @text;
  217. border-bottom: 3px solid @border;
  218. }
  219.  
  220. #backlight {
  221. background-color: @modules;
  222. color: @text;
  223. border-bottom: 3px solid @border;
  224. }
  225.  
  226. #network {
  227. background-color: @modules;
  228. color: @text;
  229. border-bottom: 3px solid @reg;
  230. }
  231.  
  232. #network.disconnected {
  233. background-color: @modules;
  234. color: @text;
  235. border-bottom: 3px solid @crit;
  236. }
  237.  
  238. #pulseaudio {
  239. background-color: @modules;
  240. color: @text;
  241. border-bottom: 3px solid @reg;
  242. }
  243.  
  244. #pulseaudio.muted {
  245. background-color: @modules-muted;
  246. color: @text;
  247. border-bottom: 3px solid @crit;
  248. }
  249.  
  250. #temperature {
  251. background-color: @modules;
  252. color: @text;
  253. border-bottom: 3px solid @reg;
  254. }
  255.  
  256. #temperature.critical {
  257. background-color: @modules;
  258. color: @text;
  259. border-bottom: 3px solid @crit;
  260. }
  261.  
  262. #tray {
  263. background-color: @modules;
  264. color: @text;
  265. border-bottom: 3px solid @border;
  266. }
  267.  
  268. #tray > .passive {
  269. -gtk-icon-effect: dim;
  270. background-color: @modules;
  271. color: @text;
  272. }
  273.  
  274. #tray > .needs-attention {
  275. -gtk-icon-effect: highlight;
  276. background-color: @modules;
  277. color: @text;
  278. }
  279.  
  280. #idle_inhibitor {
  281. background-color: #2d3436;
  282. }
  283.  
  284. #idle_inhibitor.activated {
  285. background-color: #ecf0f1;
  286. color: #2d3436;
  287. }
  288.  
  289. #mpd {
  290. background-color: #66cc99;
  291. color: #2a5c45;
  292. }
  293.  
  294. #mpd.disconnected {
  295. background-color: #f53c3c;
  296. }
  297.  
  298. #mpd.stopped {
  299. background-color: #90b1b1;
  300. }
  301.  
  302. #mpd.paused {
  303. background-color: #51a37a;
  304. }
  305.  
  306. #scratchpad {
  307. background: rgba(0, 0, 0, 0.2);
  308. }
  309.  
  310. #scratchpad.empty {
  311. background-color: transparent;
  312. }
  313.  
Advertisement
Add Comment
Please, Sign In to add comment