├── LICENSE ├── README.md ├── preview ├── Baronly.png ├── fullScreen.png └── waybarBaronly.png └── src ├── config ├── config.jsonc ├── scripts ├── amixer-toggle.sh ├── brightness.sh ├── colorpicker.sh ├── myUpdates.sh ├── myupdate.sh ├── powerdraw.sh └── weather.sh ├── style.css └── style2.css /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![BAR Preview](./preview/waybarBaronly.png) 2 | 3 | # Waybar Minimal Configuration 4 | 5 | ## Overview 6 | This README provides a detailed description of the minimal configuration for Waybar, a versatile and customizable status bar for Linux. 7 | 8 | The configuration file included here is designed to offer essential system information and functionalities while maintaining a clean and efficient user interface. 9 | 10 | ![BAR Preview](./preview/fullScreen.png) 11 | 12 | ### Modules Configuration 13 | 14 | - **Left Modules:** Logo, Clock, Weather, Disk, Memory, CPU, Temperature, Power Draw, Hyperland Windows 15 | - **Center Modules:** Hyperland Workspaces 16 | - **Right Modules:** Tray, Clipboard, Backlight, Idle Inhibitor, Colorpicker, Bluetooth, Pulseaudio, Network, Battery 17 | 18 | 19 | The configuration file is designed to provide essential system information and functionalities while keeping the interface clean and efficient. 20 | -------------------------------------------------------------------------------- /preview/Baronly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashish-kus/waybar-minimal/800e62cc790794bbacf50357492910ba165bdfe4/preview/Baronly.png -------------------------------------------------------------------------------- /preview/fullScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashish-kus/waybar-minimal/800e62cc790794bbacf50357492910ba165bdfe4/preview/fullScreen.png -------------------------------------------------------------------------------- /preview/waybarBaronly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashish-kus/waybar-minimal/800e62cc790794bbacf50357492910ba165bdfe4/preview/waybarBaronly.png -------------------------------------------------------------------------------- /src/config: -------------------------------------------------------------------------------- 1 | { 2 | "layer": "top", "position": "top", 3 | "modules-left": ["custom/logo", "clock", "custom/weather", "disk", "memory", "cpu", "temperature", "custom/powerDraw", "hyprland/window" ], 4 | "modules-center": [ "hyprland/workspaces"], 5 | "modules-right": ["tray", "custom/clipboard", "backlight", "idle_inhibitor", "custom/colorpicker", "bluetooth", "pulseaudio", "network", "battery" ], 6 | "reload_style_on_change":true, 7 | 8 | "custom/logo": { 9 | "format": "", 10 | "tooltip": false 11 | }, 12 | 13 | "hyprland/workspaces": { 14 | "format": "{icon}", 15 | "format-icons": { 16 | "1": "", 17 | "2": "", 18 | "3": "", 19 | "4": "", 20 | "5": "", 21 | "6": "", 22 | "active": "", 23 | "default": "" 24 | }, 25 | "persistent-workspaces": { 26 | "*": [ 2, 3, 4, 5, 6 ] 27 | } 28 | }, 29 | 30 | "idle_inhibitor":{ 31 | "format": "{icon} ", 32 | "format-icons": { 33 | "activated":"󰈈", 34 | "deactivated":"󰈉" 35 | } 36 | }, 37 | 38 | "custom/weather": { 39 | "format": "{}", 40 | "return-type": "json", 41 | "exec": "~/.config/waybar/scripts/weather.sh", 42 | "interval": 10, 43 | "on-click": "firefox https://wttr.in" 44 | }, 45 | 46 | "custom/clipboard":{ 47 | "format":"", 48 | "on-click": "cliphist list | rofi -dmenu | cliphist decode | wl-copy", 49 | "interval":86400 50 | }, 51 | 52 | 53 | "clock": { 54 | "format": "{:%I:%M:%S %p}", 55 | "interval":1, 56 | "tooltip-format": "\n{:%Y %B}\n{calendar}", 57 | "calendar-weeks-pos": "right", 58 | "today-format": "{}", 59 | "format-calendar": "{}", 60 | "format-calendar-weeks": "W{:%V}", 61 | "format-calendar-weekdays": "{}" 62 | }, 63 | 64 | "bluetooth": { 65 | "format-on": "", 66 | "format-off": "", 67 | "format-disabled": "󰂲", 68 | "format-connected": "󰂴", 69 | "format-connected-battery": "{device_battery_percentage}% 󰂴", 70 | "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", 71 | "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", 72 | "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", 73 | "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%", 74 | "on-click": "rofi-bluetooth", 75 | }, 76 | 77 | "network": { 78 | "format-wifi": " ", 79 | "format-ethernet":" ", 80 | "format-disconnected": "", 81 | "tooltip-format": "{ipaddr}", 82 | "tooltip-format-wifi": "{essid} ({signalStrength}%)  | {ipaddr}", 83 | "tooltip-format-ethernet": "{ifname} 🖧 | {ipaddr}", 84 | "on-click": "networkmanager_dmenu" 85 | }, 86 | 87 | "battery": { 88 | "interval":1, 89 | "states": { 90 | "good": 95, 91 | "warning": 30, 92 | "critical": 20 93 | }, 94 | "format": "{capacity}% {icon} ", 95 | "format-charging": "{capacity}% 󰂄 ", 96 | "format-plugged": "{capacity}% 󰂄 ", 97 | "format-alt": "{time} {icon}", 98 | "format-icons": [ 99 | "󰁻", 100 | "󰁼", 101 | "󰁾", 102 | "󰂀", 103 | "󰂂", 104 | "󰁹" 105 | ], 106 | }, 107 | "backlight": { 108 | "device": "intel_backlight", 109 | "format": "{icon}", 110 | "format-icons": [ 111 | "", 112 | "", 113 | "", 114 | "", 115 | "", 116 | "", 117 | "", 118 | "", 119 | "", 120 | "", 121 | ], 122 | "on-scroll-down": "light -A 10", 123 | "on-scroll-up": "light -U 10", 124 | "smooth-scrolling-threshold": 1 125 | }, 126 | 127 | "disk": { 128 | "interval": 30, 129 | "format": " {percentage_used}%", 130 | "path": "/" 131 | }, 132 | 133 | "custom/colorpicker": { 134 | "format": "{}", 135 | "return-type": "json", 136 | "interval": "once", 137 | "exec": "~/.config/waybar/scripts/colorpicker.sh -j", 138 | "on-click": "sleep 1 && ~/.config/waybar/scripts/colorpicker.sh", 139 | "signal": 1 140 | }, 141 | 142 | "cpu": { 143 | "interval": 1, 144 | "format": " {usage}%", 145 | "min-length": 6, 146 | "max-length": 6, 147 | "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], 148 | }, 149 | 150 | "memory": { 151 | "format": " {percentage}%" 152 | }, 153 | 154 | "hyprland/window": { 155 | "format": "( {class} )", 156 | "rewrite": { 157 | "(.*) - Mozilla Firefox": "🌎 $1", 158 | "(.*) - zsh": "> [$1]" 159 | } 160 | }, 161 | 162 | "temperature": { 163 | "format": " {temperatureC}°C", 164 | "format-critical": " {temperatureC}°C", 165 | "interval": 1, 166 | "critical-threshold": 80, 167 | "on-click": "foot btop", 168 | }, 169 | 170 | "pulseaudio": { 171 | "format": "{volume}% {icon}", 172 | "format-bluetooth":"󰂰", 173 | "format-muted": "", 174 | "format-icons": { 175 | "headphones": "", 176 | "bluetooth": "󰥰", 177 | "handsfree": "", 178 | "headset": "󱡬", 179 | "phone": "", 180 | "portable": "", 181 | "car": "", 182 | "default": ["🕨","🕩","🕪"] 183 | }, 184 | "justify": "center", 185 | "on-click": "amixer sset Master toggle", 186 | "on-click-right": "pavucontrol", 187 | "tooltip-format": "{icon} {volume}%" 188 | }, 189 | 190 | "jack": { 191 | "format": "{} 󱎔", 192 | "format-xrun": "{xruns} xruns", 193 | "format-disconnected": "DSP off", 194 | "realtime": true 195 | }, 196 | 197 | "tray": { 198 | "icon-size": 14, 199 | "spacing": 10 200 | }, 201 | 202 | "upower": { 203 | "show-icon": false, 204 | "hide-if-empty": true, 205 | "tooltip": true, 206 | "tooltip-spacing": 20 207 | }, 208 | 209 | "custom/powerDraw": { 210 | "format": "{}", 211 | "interval": 1, 212 | "exec": "~/.config/waybar/scripts/powerdraw.sh", 213 | "return-type": "json" 214 | } 215 | 216 | } 217 | 218 | -------------------------------------------------------------------------------- /src/config.jsonc: -------------------------------------------------------------------------------- 1 | { 2 | "layer": "top", 3 | "position": "bottom", 4 | "modules-left": [ 5 | "custom/logo", 6 | "clock", 7 | "disk", 8 | "memory", 9 | "cpu", 10 | "temperature", 11 | "custom/powerDraw" 12 | ], 13 | "modules-center": [ 14 | "hyprland/workspaces", 15 | "mpd" 16 | ], 17 | "modules-right": [ 18 | "hyprland/window", 19 | "tray", 20 | "custom/updates", 21 | "custom/clipboard", 22 | "group/blight", 23 | "idle_inhibitor", 24 | "custom/colorpicker", 25 | "bluetooth", 26 | "group/audio", 27 | "custom/hotspot", 28 | "group/networking", 29 | "battery" 30 | ], 31 | "reload_style_on_change": true, 32 | "custom/logo": { 33 | "format": "󰊠", 34 | "tooltip": false, 35 | "on-click": "~/.config/rofi/scripts/powermenu.sh" 36 | }, 37 | "clock": { 38 | "format": "{:%I:%M:%S %p}", 39 | "interval": 1, 40 | "tooltip-format": "\n{:%Y %B}\n{calendar}", 41 | "calendar-weeks-pos": "right", 42 | "today-format": "{}", 43 | "format-calendar": "{}", 44 | "format-calendar-weeks": "W{:%V}", 45 | "format-calendar-weekdays": "{}" 46 | }, 47 | "hyprland/language": { 48 | "format": "Lang: {long}", 49 | "format-en": "AMERICA, HELL YEAH!", 50 | "format-tr": "As bayrakları", 51 | "keyboard-name": "at-translated-set-2-keyboard" 52 | }, 53 | "disk": { 54 | "interval": 30, 55 | "format": " {percentage_used}%", 56 | "path": "/" 57 | }, 58 | "memory": { 59 | "format": " {percentage}%" 60 | }, 61 | "cpu": { 62 | "interval": 1, 63 | "format": " {usage}%", 64 | "format-icons": [ 65 | "▁", 66 | "▂", 67 | "▃", 68 | "▄", 69 | "▅", 70 | "▆", 71 | "▇", 72 | "█" 73 | ], 74 | }, 75 | "temperature": { 76 | "format": " {temperatureC}°C", 77 | "format-critical": " {temperatureC}°C", 78 | "interval": 1, 79 | "critical-threshold": 80, 80 | "on-click": "foot btop", 81 | }, 82 | "custom/powerDraw": { 83 | "format": "{}", 84 | "interval": 1, 85 | "exec": "~/.config/waybar/scripts/powerdraw.sh", 86 | "return-type": "json" 87 | }, 88 | "hyprland/workspaces": { 89 | "format": "{icon}", 90 | "format-icons": { 91 | "1": "१", 92 | "2": "२", 93 | "3": "३", 94 | "4": "४", 95 | "5": "५", 96 | "6": "६", 97 | "default": "" 98 | }, 99 | "persistent-workspaces": { 100 | "*": [ 101 | 1, 102 | 2, 103 | 3, 104 | 4, 105 | 5, 106 | 6 107 | ] 108 | } 109 | }, 110 | "hyprland/window": { 111 | "format": "( {class} )", 112 | "rewrite": { 113 | "(.*) - Mozilla Firefox": "🌎 $1", 114 | "org.telegram.desktop": "> [$1]", 115 | "org.gnome.Nautilus": "> [$1]", 116 | "(.*) - zsh": "> [$1]" 117 | } 118 | }, 119 | "tray": { 120 | "icon-size": 14, 121 | "spacing": 10 122 | }, 123 | "custom/updates": { 124 | "format": "{}", 125 | "interval": 60, 126 | "exec": "~/.config/waybar/scripts/checkupdate.sh", 127 | "return-type": "json", 128 | "exec-if": "exit 0", 129 | }, 130 | "custom/clipboard": { 131 | // "exec": "echo '󰅍'", 132 | "interval": 5, 133 | "tooltip": true, 134 | // "tooltip-format": "{output}", 135 | // "exec-tooltip": "sh -c cliphist list | head -n 5", 136 | "on-click": "sh -c 'cliphist list | rofi -dmenu | cliphist decode | wl-copy'" 137 | }, 138 | "group/blight": { 139 | "orientation": "horizontal", 140 | "drawer": { 141 | "transition-duration": 500, 142 | "transition-left-to-right": false 143 | }, 144 | "modules": [ 145 | "backlight", 146 | "backlight/slider" 147 | ] 148 | }, 149 | "backlight": { 150 | "device": "intel_backlight", 151 | "format": "{icon}", 152 | "format-icons": [ 153 | "", 154 | "", 155 | "", 156 | "", 157 | "", 158 | "", 159 | "", 160 | "", 161 | "", 162 | "", 163 | ], 164 | "on-scroll-down": "light -U 10", 165 | "on-scroll-up": "light -A 10", 166 | "smooth-scrolling-threshold": 1 167 | }, 168 | "backlight/slider": { 169 | "min": 0, 170 | "max": 100, 171 | "orientation": "horizontal", 172 | "device": "intel_backlight" 173 | }, 174 | "idle_inhibitor": { 175 | "format": "{icon}", 176 | "format-icons": { 177 | "activated": "󰾪", 178 | "deactivated": "󰅶" 179 | } 180 | }, 181 | "custom/colorpicker": { 182 | "format": "{}", 183 | "return-type": "json", 184 | "interval": "once", 185 | "exec": "~/.config/waybar/scripts/colorpicker.sh -j", 186 | "on-click": "sleep 1 && ~/.config/waybar/scripts/colorpicker.sh", 187 | }, 188 | "bluetooth": { 189 | "format-on": "󰂰", 190 | "format-off": "", 191 | "format-disabled": "󰂲", 192 | "format-connected": "󰂴", 193 | "format-connected-battery": "{device_battery_percentage}% 󰂴", 194 | "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", 195 | "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", 196 | "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", 197 | "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%", 198 | "on-click": "rofi-bluetooth", 199 | }, 200 | "pulseaudio": { 201 | "format": "{icon}", 202 | "format-bluetooth": "󰂰", 203 | "format-muted": "", 204 | "tooltip-format": "{volume}% {icon}", 205 | "format-icons": { 206 | "headphones": "", 207 | "bluetooth": "󰥰", 208 | "handsfree": "", 209 | "headset": "󱡬", 210 | "phone": "", 211 | "portable": "", 212 | "car": "", 213 | "default": [ 214 | "🕨", 215 | "🕩", 216 | "🕪" 217 | ] 218 | }, 219 | "scroll-step": 5, 220 | "justify": "center", 221 | "on-click": "amixer sset Master toggle", 222 | "on-click-right": "pavucontrol", 223 | "tooltip-format": "{volume}% {icon}", 224 | "on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%", 225 | "on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%" 226 | }, 227 | "pulseaudio#mic": { 228 | "format": "{format_source}", 229 | "format-source": "", 230 | "format-source-muted": "", 231 | "tooltip-format": "{volume}% {format_source} ", 232 | "on-click": "pactl set-source-mute 0 toggle", 233 | "on-scroll-down": "pactl set-source-volume 0 -1%", 234 | "on-scroll-up": "pactl set-source-volume 0 +1%" 235 | }, 236 | "group/audio": { 237 | "orientation": "horizontal", 238 | "drawer": { 239 | "transition-duration": 500, 240 | "transition-left-to-right": false 241 | }, 242 | "modules": [ 243 | "pulseaudio", 244 | "pulseaudio#mic", 245 | "pulseaudio/slider" 246 | ] 247 | }, 248 | "pulseaudio/slider": { 249 | "min": 0, 250 | "max": 140, 251 | "orientation": "horizontal" 252 | }, 253 | "custom/hotspot": { 254 | "format": "{icon}", 255 | "interval": 1, 256 | "tooltip": true, 257 | "return-type": "json", 258 | "format-icons": { 259 | "active": "󱜠", 260 | "notactive": "󱜡" 261 | }, 262 | "exec": "waybar-hotspot -a watch", 263 | "on-click": "waybar-hotspot -a toggle", 264 | }, 265 | "network": { 266 | "format-wifi": " ", 267 | "format-ethernet": "󰈀", 268 | "format-disconnected": "󱐅", 269 | "tooltip-format": "{ipaddr}", 270 | "tooltip-format-wifi": "{essid} ({signalStrength}%)  | {ipaddr}", 271 | "tooltip-format-ethernet": "{ifname} 🖧 | {ipaddr}", 272 | "tooltip-format-ethernet": "{bandwidthTotalBytes}", 273 | "on-click": "networkmanager_dmenu" 274 | }, 275 | "network#speed": { 276 | "format": "{bandwidthDownBits}", 277 | "interval": 1, 278 | "tooltip-format": "{ipaddr}", 279 | "tooltip-format-wifi": "{essid} ({signalStrength}%)  \n{ipaddr} | {frequency} MHz{icon} ", 280 | "tooltip-format-ethernet": "{ifname} 󰈀 \n{ipaddr} | {frequency} MHz{icon} ", 281 | "tooltip-format-disconnected": "Not Connected to any type of Network", 282 | "tooltip": true, 283 | "on-click": "pgrep -x rofi &>/dev/null && notify-send rofi || networkmanager_dmenu" 284 | }, 285 | "group/networking": { 286 | "orientation": "horizontal", 287 | "drawer": { 288 | "transition-duration": 500, 289 | "transition-left-to-right": false 290 | }, 291 | "modules": [ 292 | "network", 293 | "network#speed" 294 | ] 295 | }, 296 | "battery": { 297 | "interval": 1, 298 | "states": { 299 | "good": 95, 300 | "warning": 30, 301 | "critical": 20 302 | }, 303 | "tooltip": true, 304 | "format": "{capacity}% {icon}", 305 | "format-time": "{H}h {M}min", 306 | "tooltip": "{time}", 307 | "format-charging": "{capacity}% {icon}", 308 | "format-plugged": "{capacity}% 󰠠", 309 | // "format-alt": "{time} {icon}", 310 | "format-icons": [ 311 | "󰪞", 312 | "󰪟", 313 | "󰪠", 314 | "󰪡", 315 | "󰪢", 316 | "󰪣", 317 | "󰪤", 318 | "󰪥" 319 | ], 320 | "on-click": "~/.config/rofi/scripts/powermenu.sh" 321 | }, 322 | "mpd": { 323 | "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ", 324 | "format-disconnected": "Disconnected ", 325 | "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", 326 | "interval": 2, 327 | "consume-icons": { 328 | "on": " " 329 | }, 330 | "random-icons": { 331 | "off": " ", 332 | "on": " " 333 | }, 334 | "repeat-icons": { 335 | "on": " " 336 | }, 337 | "single-icons": { 338 | "on": "1 " 339 | }, 340 | "state-icons": { 341 | "paused": "", 342 | "playing": "" 343 | }, 344 | "tooltip-format": "MPD (connected)", 345 | "tooltip-format-disconnected": "MPD (disconnected)" 346 | } 347 | } 348 | -------------------------------------------------------------------------------- /src/scripts/amixer-toggle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Check the current state of the speaker 4 | state=$(amixer -D pulse sget Master | awk '/\[on\]/{print "unmute"; exit} /\[off\]/{print "mute"; exit}') 5 | 6 | # Toggle the state of the speaker 7 | # 8 | if [ "$state" = "[on] "]; then 9 | amixer 10 | # amixer -D pulse sset Master "$state" > /dev/null 11 | 12 | -------------------------------------------------------------------------------- /src/scripts/brightness.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/scripts/colorpicker.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | check() { 4 | command -v "$1" 1>/dev/null 5 | } 6 | 7 | notify() { 8 | check notify-send && { 9 | notify-send -a "Color Picker" "$@" 10 | return 11 | } 12 | echo "$@" 13 | } 14 | 15 | loc="$HOME/.cache/colorpicker" 16 | [ -d "$loc" ] || mkdir -p "$loc" 17 | [ -f "$loc/colors" ] || touch "$loc/colors" 18 | 19 | limit=10 20 | 21 | [[ $# -eq 1 && $1 = "-l" ]] && { 22 | cat "$loc/colors" 23 | exit 24 | } 25 | 26 | [[ $# -eq 1 && $1 = "-j" ]] && { 27 | text="$(head -n 1 "$loc/colors")" 28 | 29 | mapfile -t allcolors < <(tail -n +2 "$loc/colors") 30 | # allcolors=($(tail -n +2 "$loc/colors")) 31 | tooltip=" COLORS\n\n" 32 | 33 | tooltip+="-> $text \n" 34 | for i in "${allcolors[@]}"; do 35 | tooltip+=" $i \n" 36 | done 37 | 38 | cat <", "tooltip":"$tooltip"} 40 | EOF 41 | 42 | exit 43 | } 44 | 45 | check hyprpicker || { 46 | notify "hyprpicker is not installed" 47 | exit 48 | } 49 | killall -q hyprpicker 50 | color=$(hyprpicker) 51 | 52 | check wl-copy && { 53 | echo "$color" | sed -z 's/\n//g' | wl-copy 54 | } 55 | 56 | prevColors=$(head -n $((limit - 1)) "$loc/colors") 57 | echo "$color" >"$loc/colors" 58 | echo "$prevColors" >>"$loc/colors" 59 | sed -i '/^$/d' "$loc/colors" 60 | pkill -RTMIN+1 waybar 61 | -------------------------------------------------------------------------------- /src/scripts/myUpdates.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | format() { 3 | if [ "$1" -eq 0 ]; then 4 | echo '-' 5 | else 6 | echo "$1" 7 | fi 8 | } 9 | 10 | if ! updates_arch="$(checkupdates | wc -l)"; then 11 | updates_arch=0 12 | fi 13 | 14 | if ! updates_aur="$(yay -Qum 2>/dev/null | wc -l)"; then 15 | updates_aur=0 16 | fi 17 | 18 | updates="$((updates_arch + updates_aur))" 19 | 20 | if [ "$updates" -gt 0 ]; then 21 | echo " ($(format $updates_arch)/$(format $updates_aur))" 22 | else 23 | echo 24 | fia 25 | -------------------------------------------------------------------------------- /src/scripts/myupdate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | pkgmgr="pacman" 4 | hash paru 2>/dev/null && pkgmgr="paru" 5 | hash yay 2>/dev/null && pkgmgr="yay" 6 | 7 | IFS=$'\n'$'\r' 8 | 9 | updatesli=($($pkgmgr -Qu)) 10 | text=${#updatesli[@]} 11 | icon="" 12 | [ $text -eq 0 ] && icon="" || icon="📦" 13 | 14 | for i in ${updatesli[@]} 15 | do 16 | tooltip+="$i\n" 17 | done 18 | 19 | cat << EOF 20 | { "text":"$icon", "tooltip":"UPDATES: $text"} 21 | EOF 22 | 23 | -------------------------------------------------------------------------------- /src/scripts/powerdraw.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ -f /sys/class/power_supply/BAT*/power_now ]; then 4 | powerDraw="󰠰 $(($(cat /sys/class/power_supply/BAT*/power_now)/1000000))w" 5 | fi 6 | 7 | 8 | cat << EOF 9 | { "text":"$powerDraw", "tooltip":"power Draw $powerDraw"} 10 | EOF 11 | -------------------------------------------------------------------------------- /src/scripts/weather.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | BSSIDS="$(nmcli device wifi list | 3 | awk 'NR>1 {if ($1 != "*") {print $1}}' | 4 | tr -d ":" | 5 | tr "\n" ",")" 6 | 7 | LOC="" 8 | REQUEST_GEO="$(wget -qO - http://openwifi.su/api/v1/bssids/"$BSSIDS")" 9 | if [[ "$(jq ".count_results" <<< "$REQUEST_GEO")" -gt 0 ]] ; then 10 | LAT="$(jq ".lat" <<< "$REQUEST_GEO")" 11 | LON="$(jq ".lon" <<< "$REQUEST_GEO")" 12 | LOC="$LAT,$LON" 13 | fi 14 | 15 | text="$(curl -s "https://wttr.in/$LOC?format=1" | sed 's/ //g')" 16 | tooltip="$(curl -s "https://wttr.in/$LOC?0QT" | 17 | sed 's/\\/\\\\/g' | 18 | sed ':a;N;$!ba;s/\n/\\n/g' | 19 | sed 's/"/\\"/g')" 20 | 21 | if ! grep -q "Unknown location" <<< "$text"; then 22 | echo "{\"text\": \"$text\", \"tooltip\": \"$tooltip\", \"class\": \"weather\"}" 23 | fi 24 | 25 | -------------------------------------------------------------------------------- /src/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | border: none; 3 | font-size: 14px; 4 | font-family: "JetBrainsMono Nerd Font,JetBrainsMono NF" ; 5 | min-height: 25px; 6 | } 7 | 8 | window#waybar { 9 | background: transparent; 10 | margin: 5px; 11 | } 12 | 13 | #custom-logo { 14 | padding: 0 10px; 15 | } 16 | 17 | .modules-right { 18 | padding-left: 5px; 19 | border-radius: 15px 0 0 15px; 20 | margin-top: 2px; 21 | background: #000000; 22 | } 23 | 24 | .modules-center { 25 | padding: 0 15px; 26 | margin-top: 2px; 27 | border-radius: 15px 15px 15px 15px; 28 | background: #000000; 29 | } 30 | 31 | .modules-left { 32 | border-radius: 0 15px 15px 0; 33 | margin-top: 2px; 34 | background: #000000; 35 | } 36 | 37 | #battery, 38 | #custom-clipboard, 39 | #custom-colorpicker, 40 | #custom-powerDraw, 41 | #bluetooth, 42 | #pulseaudio, 43 | #network, 44 | #disk, 45 | #memory, 46 | #backlight, 47 | #cpu, 48 | #temperature, 49 | #custom-weather, 50 | #idle_inhibitor, 51 | #jack, 52 | #tray, 53 | #window, 54 | #workspaces, 55 | #clock { 56 | padding: 0 5px; 57 | } 58 | #pulseaudio { 59 | padding-top: 3px; 60 | } 61 | 62 | #temperature.critical, 63 | #pulseaudio.muted { 64 | color: #FF0000; 65 | padding-top: 0; 66 | } 67 | 68 | 69 | 70 | 71 | #clock{ 72 | color: #5fd1fa; 73 | } 74 | 75 | #battery.charging { 76 | color: #ffffff; 77 | background-color: #26A65B; 78 | } 79 | 80 | #battery.warning:not(.charging) { 81 | background-color: #ffbe61; 82 | color: black; 83 | } 84 | 85 | #battery.critical:not(.charging) { 86 | background-color: #f53c3c; 87 | color: #ffffff; 88 | animation-name: blink; 89 | animation-duration: 0.5s; 90 | animation-timing-function: linear; 91 | animation-iteration-count: infinite; 92 | animation-direction: alternate; 93 | } 94 | 95 | 96 | @keyframes blink { 97 | to { 98 | background-color: #ffffff; 99 | color: #000000; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /src/style2.css: -------------------------------------------------------------------------------- 1 | @import "./waybar.css"; 2 | 3 | @define-color active @color0; 4 | 5 | * { 6 | border: none; 7 | font-size: 15px; 8 | font-family: "JetBrainsMono Nerd Font,JetBrainsMono NF" ; 9 | min-height: 10px; 10 | color: @active; 11 | /* color: White; */ 12 | } 13 | 14 | window#waybar { 15 | /* background: transparent; */ 16 | background: rgba(0, 0, 0, 0.9); 17 | } 18 | 19 | tooltip { 20 | border-radius: 15px; 21 | background: rgba(0, 0, 0, 0.9); 22 | color: @active; 23 | } 24 | 25 | tooltip label{ 26 | color: @active; 27 | } 28 | 29 | #custom-logo { 30 | padding: 0 10px; 31 | } 32 | 33 | .modules-right { 34 | /* border: 1px solid lighter(@active); */ 35 | /* border: 1px solid @active; */ 36 | border-radius: 15px; 37 | padding: 0px 5px; 38 | margin: 2px 5px; 39 | background: rgba(000, 000, 000, 0.8); 40 | } 41 | 42 | .modules-center { 43 | /* border: 1px solid lighter(@active); */ 44 | /* border: 1px solid @active; */ 45 | padding: 0 15px; 46 | margin: 2px 0px; 47 | border-radius: 15px 15px 15px 15px; 48 | background: rgba(000, 000, 000, 0.8); 49 | } 50 | 51 | .modules-left { 52 | /* border: 1px solid lighter(@active); */ 53 | /* border: 1px solid @active; */ 54 | padding: 0px 5px; 55 | border-radius: 15px; 56 | margin: 2px 5px; 57 | background: rgba(000, 000, 000, 0.8); 58 | } 59 | 60 | #battery, 61 | #custom-clipboard, 62 | #custom-colorpicker, 63 | #custom-powerDraw, 64 | #custom-updates, 65 | #custom-pacman, 66 | #bluetooth, 67 | #pulseaudio, 68 | #custom-hotspot, 69 | #pulseaudio.mic, 70 | #pulseaudio.bluetooth, 71 | #network, 72 | #disk, 73 | #memory, 74 | #backlight, 75 | #cpu, 76 | #temperature, 77 | #custom-weather, 78 | #idle_inhibitor, 79 | #jack, 80 | #tray, 81 | #window, 82 | /* #workspaces, */ 83 | #clock { 84 | padding: 0 5px; 85 | } 86 | 87 | #workspaces button { 88 | border-radius: 0px; 89 | } 90 | 91 | #workspaces button.active { 92 | border-bottom: solid 2px @active; 93 | } 94 | 95 | #pulseaudio{ 96 | padding-top: 3px; 97 | } 98 | 99 | #pulseaudio.muted{ 100 | color: #FF0000; 101 | padding-top: 2px; 102 | padding-right: 10px; 103 | } 104 | 105 | #backlight-slider, 106 | #pulseaudio-slider { 107 | padding: 0 5px 0 8px; 108 | } 109 | 110 | #backlight-slider slider, 111 | #pulseaudio-slider slider { 112 | background-color: transparent; 113 | box-shadow: none; 114 | } 115 | 116 | #backlight-slider trough, 117 | #pulseaudio-slider trough { 118 | min-width: 50px; 119 | min-height: 5px; 120 | border-radius: 8px; 121 | } 122 | 123 | #backlight-slider highlight, 124 | #pulseaudio-slider highlight { 125 | min-width: 5px; 126 | min-height: 5px; 127 | background-color: #FFFFFF; 128 | 129 | } 130 | 131 | /* #clock{ */ 132 | /* color: #5fd1fa; */ 133 | /* } */ 134 | 135 | #battery.charging { 136 | color: #77DD77; 137 | } 138 | 139 | #battery.warning:not(.charging) { 140 | background-color: #ffbe61; 141 | color: black; 142 | } 143 | 144 | #battery.critical:not(.charging) { 145 | background-color: #f53c3c; 146 | color: #ffffff; 147 | animation-name: blink; 148 | animation-duration: 0.5s; 149 | animation-timing-function: linear; 150 | animation-iteration-count: infinite; 151 | animation-direction: alternate; 152 | } 153 | 154 | @keyframes blink { 155 | to { 156 | background-color: #ffffff; 157 | color: #000000; 158 | } 159 | } 160 | 161 | --------------------------------------------------------------------------------