Advertisement
Guest User

Untitled

a guest
Mar 14th, 2023
2,713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.39 KB | None | 0 0
  1.  
  2. @define-color base           #1e242f ;
  3. @define-color urgent         #b02c36 ;
  4. @define-color primary_orange #fe9000 ;
  5. @define-color primary_yellow #ffdd4a ;
  6. @define-color primary_red    #da1b2b ;
  7. @define-color primary_blue   #afd2e9 ;
  8. @define-color primary_blue_2 #6fadd6 ;
  9.  
  10. @keyframes blink-warning {
  11.     70% {
  12.         color: white;
  13.     }
  14.  
  15.     to {
  16.         color: white;
  17.         background-color: orange;
  18.     }
  19. }
  20.  
  21. @keyframes blink-critical {
  22.     70% {
  23.       color: white;
  24.     }
  25.  
  26.     to {
  27.         color: white;
  28.         background-color: red;
  29.     }
  30. }
  31.  
  32. /* -----------------------------------------------------------------------------
  33.  * Base styles
  34.  * -------------------------------------------------------------------------- */
  35.  
  36. /* Reset all styles */
  37. * {
  38.     border: none;
  39.     border-radius: 0;
  40.     min-height: 0;
  41.     margin: 1px;
  42.     padding: 0;
  43. }
  44.  
  45. /* The whole bar */
  46. #waybar {
  47.     background: transparent;
  48.     color: @primary_blue;
  49.     background-color: @base;
  50.     font-family: "Overpass Nerd Font";
  51.     font-size: 16px;
  52.     border-radius: 15px;
  53. }
  54.  
  55. /* Every modules */
  56. #battery,
  57. #clock,
  58. #backlight,
  59. #cpu,
  60. #custom-keyboard-layout,
  61. #memory,
  62. #mode,
  63. #custom-weather,
  64. #network,
  65. #pulseaudio,
  66. #temperature,
  67. #tray,
  68. #idle_inhibitor,
  69. #custom-PBPbattery {
  70.     padding:0.5rem 0.6rem;
  71.     margin: 1px 0px;
  72. }
  73.  
  74. /* -----------------------------------------------------------------------------
  75.  * Modules styles
  76.  * -------------------------------------------------------------------------- */
  77.  
  78. #battery {
  79.     animation-timing-function: linear;
  80.     animation-iteration-count: infinite;
  81.     animation-direction: alternate;
  82. }
  83.  
  84. #battery.warning {
  85.     color: @primary_orange;
  86. }
  87.  
  88. #battery.critical {
  89.     color: @primary_red;
  90. }
  91.  
  92. #battery.warning.discharging {
  93.     animation-name: blink-warning;
  94.     animation-duration: 3s;
  95. }
  96.  
  97. #battery.critical.discharging {
  98.     animation-name: blink-critical;
  99.     animation-duration: 2s;
  100. }
  101.  
  102. #cpu.warning {
  103.     color: @primary_orange;
  104. }
  105.  
  106. #cpu.critical {
  107.     color: @primary_red;
  108. }
  109.  
  110. #memory {
  111.     animation-timing-function: linear;
  112.     animation-iteration-count: infinite;
  113.     animation-direction: alternate;
  114. }
  115.  
  116. #memory.warning {
  117.     color: @primary_orange;
  118.  }
  119.  
  120. #memory.critical {
  121.     color: red;
  122.     animation-name: blink-critical;
  123.     animation-duration: 2s;
  124.     padding-left:5px;
  125.     padding-right:5px;
  126. }
  127.  
  128. #mode {
  129.     background: @primary_yellow;
  130.     border-bottom: 3px @primary_blue;
  131.     color: @base;
  132.     margin-left: 5px;
  133.     padding: 7px;
  134. }
  135.  
  136. #network.disconnected {
  137.     color: @primary_orange;
  138. }
  139.  
  140. #pulseaudio {
  141.     padding-top:6px;
  142. }
  143.  
  144. #pulseaudio.muted {
  145.     color: @primary_yellow;
  146. }
  147.  
  148. #temperature.critical {
  149.     color: red;
  150. }
  151.  
  152. #window {
  153.     font-weight: bold;
  154. }
  155.  
  156. #workspaces {
  157.     font-size:13px;
  158. }
  159.  
  160. #workspaces button {
  161.     border-bottom: 3px solid @primary_blue_2;
  162.     margin-bottom: 0px;
  163.     padding:0px;
  164. }
  165.  
  166. #workspaces button.focused {
  167.     border-bottom: 3px solid  @primary_yellow;
  168.     margin-bottom: 0px;
  169.     padding-left:0;
  170. }
  171.  
  172. #workspaces button.urgent {
  173.     border-color: @primary_red;
  174.     color: @primary_red;
  175. }
  176.  
  177. #custom-power {
  178.     margin-left:15px;
  179.     margin-right:15px;
  180.     font-size:15px;
  181. }
  182.  
  183. #custom-launcher {
  184.     font-size:15px;
  185.     margin-left:15px;
  186.     margin-right:10px;
  187. }
  188.  
  189. #backlight.icon {
  190.     padding-right:1px;
  191.     font-size: 13px;
  192. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement