Advertisement
icon_bishop

style.css

Dec 9th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. @import 'colors-waybar.css';
  2.  
  3. * {
  4. /* `otf-font-awesome` is required to be installed for icons */
  5. font-family: ProFontIIxNerdFontMono, JetBrainsMono Nerd Font, Hack Nerd Font, Roboto, Helvetica, Arial, sans-serif;
  6. font-size: 13px;
  7. }
  8.  
  9. window#waybar {
  10. background-color: rgba(43, 43, 43, 0.0);
  11. border-bottom: 8px solid rgba(14, 14, 14, 0.0);
  12. color: @background;
  13. transition-property: background-color;
  14. transition-duration: .5s;
  15. }
  16.  
  17. window#waybar.hidden {
  18. opacity: 0.2;
  19. }
  20.  
  21. /*
  22. window#waybar.empty {
  23. background-color: transparent;
  24. }
  25. window#waybar.solo {
  26. background-color: #FFFFFF;
  27. }
  28.  
  29.  
  30. window#waybar.termite {
  31. background-color: @color0;
  32. }
  33.  
  34. window#waybar.chromium {
  35. background-color: #000000;
  36. border: none;
  37. }
  38. */
  39. button {
  40. all: unset;
  41. background-color: @color0;
  42. color: @color1;
  43. border: none;
  44. border-bottom: 8px solid @color11;
  45. border-radius: 3;
  46. margin-left: 4px;
  47. margin-bottom: 2px;
  48. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  49. font-weight: bold;
  50. font-size: 11px;
  51. padding-left: 15px;
  52. padding-right: 15px;
  53. transition: transform 0.1s ease-in-out;
  54.  
  55. }
  56.  
  57. button:hover {
  58. background: inherit;
  59. background-color: @color3;
  60. border-bottom: 8px solid @color0;
  61. }
  62.  
  63. button.active {
  64. background: inherit;
  65. background-color: @color3;
  66. color: @color0;
  67. border-bottom: 8px solid @color0;
  68. }
  69.  
  70. button.occupied {
  71. background: inherit;
  72. background-color: @color13;
  73. color: @color4;
  74. border-bottom: 8px solid @color0;
  75. }
  76.  
  77. #workspaces button.focused {
  78. background-color: @color15;
  79. }
  80.  
  81. #workspaces button.urgent {
  82. background-color: @color15;
  83. }
  84.  
  85. #mode {
  86. background-color: @color11;
  87. border-bottom: 3px solid @color0;
  88. }
  89.  
  90.  
  91.  
  92. #clock,
  93. #custom-hypridle,
  94. #battery,
  95. #cpu,
  96. #memory,
  97. #disk,
  98. #temperature,
  99. #backlight,
  100. #network,
  101. #pulseaudio,
  102. #wireplumber,
  103. #custom-media,
  104. #tray,
  105. #mode,
  106. #idle_inhibitor,
  107. #custom-updates,
  108. #scratchpad,
  109. #mpd {
  110. padding: 0 10px;
  111. color: #ffffff;
  112. }
  113.  
  114. #window,
  115. #workspaces {
  116. margin: 0 4px;
  117. }
  118.  
  119. /* If workspaces is the leftmost module, omit left margin */
  120. .modules-left > widget:first-child > #workspaces {
  121. margin-left: 0;
  122. }
  123.  
  124. /* If workspaces is the rightmost module, omit right margin */
  125. .modules-right > widget:last-child > #workspaces {
  126. margin-right: 0;
  127. }
  128.  
  129.  
  130. #window {
  131. background-color: @color5;
  132. color: @color0;
  133. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  134. font-size: 13px;
  135. font-weight: bold;
  136. border: none;
  137. border-bottom: 8px solid @color4;
  138. border-radius: 5px;
  139. margin-bottom: 2px;
  140. padding-left: 10px;
  141. padding-right: 10px;
  142. }
  143.  
  144.  
  145. #custom-hypridle {
  146. background-color: @color4;
  147. color: #000000;
  148. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  149. font-size: 13px;
  150. font-weight: bold;
  151. border: none;
  152. border-bottom: 8px solid @background;
  153. border-radius: 5px;
  154. margin-bottom: 2px;
  155. padding-left: 13px;
  156. padding-right: 9px;
  157. }
  158.  
  159.  
  160.  
  161. #clock {
  162. background-color: @color10;
  163. color: @background;
  164. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  165. font-size: 15px;
  166. font-weight: bold;
  167. border: none;
  168. border-bottom: 8px solid @background;
  169. border-radius: 5px;
  170. margin-bottom: 2px;
  171.  
  172. }
  173.  
  174. #battery {
  175. background-color: @color3;
  176. color: @background;
  177. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  178. font-size: 13px;
  179. font-weight: bold;
  180. border: none;
  181. border-bottom: 8px solid @background;
  182. border-radius: 5px;
  183. margin-bottom: 2px;
  184. }
  185.  
  186. #battery.charging, #battery.plugged {
  187. color: #000000;
  188. background-color: @color4;
  189. }
  190.  
  191. @keyframes blink {
  192. to {
  193. background-color: #ffffff;
  194. color: #000000;
  195. }
  196. }
  197.  
  198. #battery.critical:not(.charging) {
  199. background-color: @color15;
  200. color: #ffffff;
  201. animation-name: blink;
  202. animation-duration: 0.5s;
  203. animation-timing-function: linear;
  204. animation-iteration-count: infinite;
  205. animation-direction: alternate;
  206. }
  207.  
  208. label:focus {
  209. background-color: @cursor;
  210. }
  211.  
  212. #cpu {
  213. background-color: @color7;
  214. color: @color0;
  215. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  216. font-size: 13px;
  217. font-weight: bold;
  218. border: none;
  219. border-bottom: 8px solid @background;
  220. border-radius: 5px;
  221. margin-bottom: 2px;
  222. }
  223.  
  224. #memory {
  225. background-color: @color2;
  226. color: @background;
  227. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  228. font-size: 13px;
  229. font-weight: bold;
  230. border: none;
  231. border-bottom: 8px solid @background;
  232. border-radius: 5px;
  233. margin-bottom: 2px;
  234. }
  235.  
  236. /*#disk {
  237. background-color: @color9;
  238. }*/
  239.  
  240. #backlight {
  241. background-color: @color9;
  242. color: @color0;
  243. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  244. font-size: 13px;
  245. font-weight: bold;
  246. border: none;
  247. border-bottom: 8px solid @background;
  248. border-radius: 5px;
  249. margin-bottom: 2px;
  250. }
  251.  
  252. #network {
  253. background-color: @color8;
  254. color: @foreground;
  255. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  256. font-size: 13px;
  257. font-weight: bold;
  258. border: none;
  259. border-bottom: 8px solid @background;
  260. border-radius: 5px;
  261. margin-bottom: 2px;
  262. }
  263.  
  264. #network.disconnected {
  265. background-color: @background;
  266. }
  267.  
  268. #pulseaudio {
  269. background-color: @color6;
  270. color: @color0;
  271. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  272. font-size: 13px;
  273. font-weight: bold;
  274. border: none;
  275. border-bottom: 8px solid @background;
  276. border-radius: 5px;
  277. margin-bottom: 2px;
  278. }
  279.  
  280. #pulseaudio.muted {
  281. background-color: @background;
  282. color: @foreground;
  283. }
  284.  
  285. #custom-updates {
  286. background-color: @foreground;
  287. color: @color0;
  288. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  289. font-size: 14px;
  290. font-weight: bold;
  291. border: none;
  292. border-bottom: 8px solid @background;
  293. border-radius: 5px;
  294. margin-bottom: 2px;
  295. }
  296.  
  297.  
  298. #custom-weather {
  299. background-color: @foreground;
  300. color: @color0;
  301. font-family: JetBrainsMono Nerd Font, Hack Nerd Font;
  302. font-size: 14px;
  303. font-weight: bold;
  304. border: none;
  305. border-bottom: 8px solid @background;
  306. border-radius: 5px;
  307. margin-bottom: 2px;
  308. padding-right: 10px;
  309. padding-left: 10px;
  310. }
  311.  
  312. #tray {
  313. background-color: @color5;
  314. border: none;
  315. border-bottom: 8px solid @background;
  316. border-radius: 5px;
  317. margin-bottom: 2px;
  318. }
  319.  
  320. #tray > .passive {
  321. -gtk-icon-effect: dim;
  322. }
  323.  
  324. #tray > .needs-attention {
  325. -gtk-icon-effect: highlight;
  326. background-color: #eb4d4b;
  327. }
  328.  
  329. #idle_inhibitor {
  330. background-color: #2d3436;
  331. border: none;
  332. border-bottom: 8px solid @background;
  333. border-radius: 5px;
  334. margin-bottom: 2px;
  335. }
  336.  
  337. #idle_inhibitor.activated {
  338. background-color: #ecf0f1;
  339. border: none;
  340. border-bottom: 8px solid @background;
  341. border-radius: 5px;
  342. margin-bottom: 2px;
  343. }
  344.  
  345. /*#mpd {
  346. background-color: #66cc99;
  347. color: #2a5c45;
  348. }
  349.  
  350. #mpd.disconnected {
  351. background-color: #f53c3c;
  352. }
  353.  
  354. #mpd.stopped {
  355. background-color: #90b1b1;
  356. }
  357.  
  358. #mpd.paused {
  359. background-color: #51a37a;
  360. }
  361.  
  362. #language {
  363. background: #00b093;
  364. color: #740864;
  365. padding: 0 5px;
  366. margin: 0 5px;
  367. min-width: 16px;
  368. }
  369.  
  370. #keyboard-state {
  371. background: #97e1ad;
  372. color: #000000;
  373. padding: 0 0px;
  374. margin: 0 5px;
  375. min-width: 16px;
  376. }
  377.  
  378. #keyboard-state > label {
  379. padding: 0 5px;
  380. }
  381.  
  382. #keyboard-state > label.locked {
  383. background: rgba(0, 0, 0, 0.2);
  384. }
  385.  
  386. #scratchpad {
  387. background: rgba(0, 0, 0, 0.2);
  388. }
  389.  
  390. #scratchpad.empty {
  391. background-color: transparent;
  392. }
  393.  
  394. #temperature {
  395. background-color: #f0932b;
  396. }
  397.  
  398. #temperature.critical {
  399. background-color: #eb4d4b;
  400. }
  401.  
  402. #wireplumber {
  403. background-color: #fff0f5;
  404. color: #000000;
  405. }
  406.  
  407. #wireplumber.muted {
  408. background-color: #f53c3c;
  409. }
  410.  
  411. #custom-media {
  412. background-color: #66cc99;
  413. color: #2a5c45;
  414. min-width: 100px;
  415. }
  416.  
  417. #custom-media.custom-spotify {
  418. background-color: #66cc99;
  419. }
  420.  
  421. #custom-media.custom-vlc {
  422. background-color: #ffa000;
  423. }
  424. */
Tags: waybar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement