Guest User

waybar/style.css

a guest
Jun 12th, 2025
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.83 KB | None | 0 0
  1. * {
  2.     /* `otf-font-awesome` is required to be installed for icons */
  3.     font-family: FiraCode, 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  4.     font-size: 13px;
  5.     min-height: 10px;
  6. }
  7.  
  8. window#waybar {
  9.     background-color: #191919;
  10. }
  11.  
  12. #window,
  13. #workspaces {
  14.     margin: 5px 5px;
  15.     border: 2px solid #9ccfd8;
  16.     border-radius: 18px;
  17.     background-color: #191919;
  18.     padding: 5px 5px;
  19. }
  20.  
  21. button {
  22.     /* Use box-shadow instead of border so the text isn't offset */
  23.     /* Avoid rounded borders under each button name */
  24.     border: none;
  25. }
  26.  
  27. /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
  28. button:hover {
  29.     background: inherit;
  30. }
  31.  
  32. #workspaces button {
  33.     border-radius: 0;
  34.     background-color: transparent;
  35.     color: #9ccfd8;
  36.     padding: 5px 8px;
  37. }
  38.  
  39. #workspaces button:first-child {
  40.     border-radius: 20px 0 0 20px; /* Round only the left side for the first button */
  41. }
  42.  
  43. #workspaces button:last-child {
  44.     border-radius: 0 20px 20px 0; /* Round only the right side for the last button */
  45. }
  46.  
  47. #workspaces button:not(:first-child):not(:last-child) {
  48.     border-radius: 0; /* Ensure middle buttons have no rounding */
  49. }
  50. #workspaces button:hover {
  51.     background:rgba(192, 170, 132, 0.1);
  52.     box-shadow: inherit;
  53.     text-shadow: inherit;
  54. }
  55.  
  56. #workspaces button.urgent {
  57.     background-color: #ff355b;
  58. }
  59.  
  60. tooltip {
  61.     background-color: #11111b;
  62.     color: #9ccfd8;
  63. }
  64.  
  65. #clock,
  66. #cpu,
  67. #memory,
  68. #disk,
  69. #temperature,
  70. #backlight,
  71. #network,
  72. #pulseaudio,
  73. #wireplumber,
  74. #custom-media,
  75. #tray,
  76. #mode,
  77. #idle_inhibitor,
  78. #scratchpad,
  79. #mpd,
  80. #custom-nowplaying,
  81. #custom-todo {
  82.     margin: 8px 5px;
  83.     background-color: transparent;
  84.     color: #9ccfd8;
  85.     padding: 0px 4px;
  86. }
  87.  
  88. /* If workspaces is the leftmost module, omit left margin */
  89. .modules-left > widget:first-child > #workspaces {
  90.     margin-left: 0;
  91. }
  92.  
  93. /* If workspaces is the rightmost module, omit right margin */
  94. .modules-right > widget:last-child > #workspaces {
  95.     margin-right: 0;
  96. }
  97.  
  98. #battery {
  99.     margin: 8px 5px;
  100.     background-color: #9ccfd8;
  101.     color: #191919;
  102.     border-radius: 18px;
  103.     padding: 0px 10px;
  104. }
  105.  
  106. #battery.charging, #battery.plugged {
  107.     margin: 8px 5px;
  108.     background-color: #b6e875;
  109.     color: #191919;
  110.     border-radius: 18px;
  111.     padding: 0px 10px;
  112. }
  113.  
  114. @keyframes blink {
  115.     to {
  116.         background-color: #ffffff;
  117.         color: #000000;
  118.     }
  119. }
  120.  
  121. /* Using steps() instead of linear as a timing function to limit cpu usage */
  122. #battery.critical:not(.charging) {
  123.     margin: 8px 5px;
  124.     background-color: #ff355b;
  125.     color: #191919;
  126.     border-radius: 18px;
  127.     padding: 0px 10px;
  128.     color: #9ccfd8;
  129.     animation-name: blink;
  130.     animation-duration: 0.5s;
  131.     animation-timing-function: steps(12);
  132.     animation-iteration-count: infinite;
  133.     animation-direction: alternate;
  134. }
  135.  
  136. label:focus {
  137.     background-color: #000000;
  138. }
  139.  
  140. #cpu {
  141.     background-color: #11111b;
  142.     color: #000000;
  143. }
  144.  
  145. #memory {
  146.     background-color: #11111b;
  147. }
  148.  
  149. #disk {
  150.     background-color: #11111b;
  151. }
  152.  
  153. #backlight {
  154.     background-color: #11111b;
  155. }
  156.  
  157. #network {
  158.     background-color: transparent;
  159. }
  160.  
  161. #network.disconnected {
  162.     background-color: transparent;
  163. }
  164.  
  165. #pulseaudio {
  166.     background-color: transparent;
  167.     color: #9ccfd8;
  168. }
  169.  
  170. #pulseaudio.muted {
  171.     background-color: transparent;
  172.     color: #2a5c45;
  173. }
  174.  
  175. #pulseaudio-slider slider {
  176.   all: unset; /* This nukes any inherited GTK styles */
  177.   min-width: 0;
  178.   min-height: 0;
  179.   margin: 0;
  180.   padding: 0;
  181.   background: transparent;
  182.   box-shadow: none;
  183.   border: none;
  184. }
  185.  
  186. #pulseaudio-slider trough {
  187.   margin-top: -3px;
  188.   min-width: 90px;
  189.   min-height: 5px;
  190.   margin-bottom: -4px;
  191.   border-radius: 7px;
  192. }
  193.  
  194. #pulseaudio-slider highlight {
  195.   margin-top: -3px;
  196.   min-width: 90px;
  197.   min-height: 3px;
  198.   margin-bottom: -4px;
  199.   border-radius: 7px;
  200.   color: #b6e875;
  201. }
  202.  
  203. #wireplumber {
  204.     background-color: #fff0f5;
  205.     color: #000000;
  206. }
  207.  
  208. #wireplumber.muted {
  209.     background-color: #f53c3c;
  210. }
  211.  
  212. #custom-media {
  213.     background-color: #66cc99;
  214.     color: #9ccfd8;
  215.     min-width: 100px;
  216. }
  217.  
  218. #custom-media.custom-spotify {
  219.     background-color: #66cc99;
  220. }
  221.  
  222. #custom-media.custom-vlc {
  223.     background-color: #ffa000;
  224. }
  225.  
  226. #temperature {
  227.     background-color: #f0932b;
  228. }
  229.  
  230. #temperature.critical {
  231.     background-color: #eb4d4b;
  232. }
  233.  
  234. #tray {
  235.     background-color: #2980b9;
  236. }
  237.  
  238. #tray > .passive {
  239.     -gtk-icon-effect: dim;
  240. }
  241.  
  242. #tray > .needs-attention {
  243.     -gtk-icon-effect: highlight;
  244.     background-color: #eb4d4b;
  245. }
  246.  
  247. #idle_inhibitor {
  248.     background-color: #2d3436;
  249. }
  250.  
  251. #idle_inhibitor.activated {
  252.     background-color: #ecf0f1;
  253.     color: #2d3436;
  254. }
  255.  
  256. #mpd {
  257.     background-color: #66cc99;
  258.     color: #2a5c45;
  259. }
  260.  
  261. #mpd.disconnected {
  262.     background-color: #f53c3c;
  263. }
  264.  
  265. #mpd.stopped {
  266.     background-color: #90b1b1;
  267. }
  268.  
  269. #mpd.paused {
  270.     background-color: #51a37a;
  271. }
  272.  
  273. #language {
  274.     background: #00b093;
  275.     color: #740864;
  276.     padding: 0 5px;
  277.     margin: 0 5px;
  278.     min-width: 16px;
  279. }
  280.  
  281. #keyboard-state {
  282.     background: #97e1ad;
  283.     color: #000000;
  284.     padding: 0 0px;
  285.     margin: 0 5px;
  286.     min-width: 16px;
  287. }
  288.  
  289. #keyboard-state > label {
  290.     padding: 0 5px;
  291. }
  292.  
  293. #keyboard-state > label.locked {
  294.     background: rgba(0, 0, 0, 0.2);
  295. }
  296.  
  297. #scratchpad {
  298.     background: rgba(0, 0, 0, 0.2);
  299. }
  300.  
  301. #scratchpad.empty {
  302.     background-color: transparent;
  303. }
  304.  
  305. #privacy {
  306.     padding: 0;
  307. }
  308.  
  309. #privacy-item {
  310.     padding: 0 5px;
  311.     color: white;
  312. }
  313.  
  314. #privacy-item.screenshare {
  315.     background-color: #cf5700;
  316. }
  317.  
  318. #privacy-item.audio-in {
  319.     background-color: #1ca000;
  320. }
  321.  
  322. #privacy-item.audio-out {
  323.     background-color: #0069d4;
  324. }
  325.  
  326. #custom-nowplaying {
  327.     color: #9ccfd8;
  328.     font-family: "FiraCode";
  329.     padding-top: 3px;
  330. }
  331.  
Advertisement
Add Comment
Please, Sign In to add comment