| /* |
| This file is modified from https://github.com/Andrey0189/hyprland-rice/blob/main/config/waybar/style.css |
| As such you can access it under the following license terms: |
| |
| MIT License |
| |
| Copyright (c) 2024 Andrew |
| |
| Permission is hereby granted, free of charge, to any person obtaining a copy |
| of this software and associated documentation files (the "Software"), to deal |
| in the Software without restriction, including without limitation the rights |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| copies of the Software, and to permit persons to whom the Software is |
| furnished to do so, subject to the following conditions: |
| |
| The above copyright notice and this permission notice shall be included in all |
| copies or substantial portions of the Software. |
| |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| SOFTWARE. |
| */ |
| |
| * { |
| border: none; |
| border-radius: 0; |
| /* `otf-font-awesome` is required to be installed for icons */ |
| font-family: FontAwesome, JetBrains Mono Bold, sans-serif; |
| min-height: 20px; |
| } |
| |
| window#waybar { |
| background: transparent; |
| } |
| |
| window#waybar.hidden { |
| opacity: 0.2; |
| } |
| |
| #workspaces { |
| margin-right: 8px; |
| border-radius: 10px; |
| transition: none; |
| background: @background; |
| } |
| |
| #workspaces button { |
| transition: none; |
| color: @text; |
| background: transparent; |
| padding: 5px; |
| font-size: 18px; |
| } |
| |
| #workspaces button.persistent { |
| color: @active; |
| font-size: 12px; |
| } |
| |
| /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ |
| #workspaces button:hover { |
| transition: none; |
| box-shadow: inherit; |
| text-shadow: inherit; |
| border-radius: inherit; |
| color: @text; |
| background: @hover; |
| } |
| |
| #workspaces button.active { |
| background: @active; |
| color: @altText; |
| border-radius: inherit; |
| } |
| |
| #submap { |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #clock { |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px 10px 10px 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #pulseaudio { |
| margin-right: 8px; |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #pulseaudio.muted { |
| background-color: @background; |
| color: @critical; |
| } |
| |
| #custom-mem { |
| margin-right: 8px; |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #cpu { |
| margin-right: 8px; |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #temperature { |
| margin-right: 8px; |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #temperature.critical { |
| background-color: @critical; |
| color: @altText |
| } |
| |
| #backlight { |
| margin-right: 8px; |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #battery { |
| margin-right: 8px; |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| #battery.charging { |
| color: @altText; |
| background-color: @charging; |
| } |
| |
| #battery.warning:not(.charging) { |
| background-color: @warning; |
| color: @altText; |
| } |
| |
| #battery.critical:not(.charging) { |
| background-color: @critical; |
| color: @altText; |
| animation-name: blink; |
| animation-duration: 0.5s; |
| animation-timing-function: linear; |
| animation-iteration-count: infinite; |
| animation-direction: alternate; |
| } |
| |
| #tray { |
| padding-left: 16px; |
| padding-right: 16px; |
| border-radius: 10px; |
| margin-right: 10px; |
| transition: none; |
| color: @text; |
| background: @background; |
| } |
| |
| @keyframes blink { |
| to { |
| background-color: @text; |
| color: #000000; |
| } |
| } |