This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR CPU MODULE | |
| # ---------------------------------------------------------------------------- | |
| # CPU monitoring script for waybar. | |
| # Features: | |
| # - Per-core usage visualization (Die layout) | |
| # - Power usage (RAPL) | |
| # - Temperature monitoring | |
| # - Top processes consuming CPU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR MEMORY MODULE | |
| # ---------------------------------------------------------------------------- | |
| # A dynamic memory monitor for Waybar. | |
| # Features: | |
| # - Real-time RAM usage with color-coded states | |
| # - Tooltip with detailed breakdown (Used, Cached, Buffers) | |
| # - Auto-detects memory modules via dmidecode (requires sudo permissions) | |
| # - Temperature monitoring (requires lm_sensors) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR GPU MODULE | |
| # ---------------------------------------------------------------------------- | |
| # Visualizes GPU stats including VRAM layout and Die temperature. | |
| # Designed for Nvidia GPUs (uses nvidia-smi). | |
| # ---------------------------------------------------------------------------- | |
| import json | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR STORAGE MODULE | |
| # ---------------------------------------------------------------------------- | |
| # Auto-detects mounted physical drives and displays usage in a sleek dashboard. | |
| # Features: | |
| # - Dynamic drive detection (ignores snaps, loops, etc.) | |
| # - Real-time I/O speeds (Read/Write) | |
| # - Drive temperature monitoring (requires lm_sensors/smartctl) | |
| # - Health status via smartctl (requires sudo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import requests | |
| import json | |
| import sys | |
| from datetime import datetime | |
| import calendar | |
| import pathlib | |
| import time | |
| import pickle | |
| import html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import subprocess | |
| import json | |
| import os | |
| import re | |
| # ------------------- | |
| # Helper functions | |
| # ------------------- | |
| def get(cmd): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import json | |
| # Colors | |
| icon_color = "#8FCB9B" # pastel green | |
| line_color = "#cdd6f4" # default line color | |
| # Pango markup: line + Spotify logo icon with spaces | |
| text = f"<span foreground='{line_color}'>|</span>\u00A0<span foreground='{icon_color}'></span>\u00A0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import requests | |
| import json | |
| import sys | |
| from datetime import datetime | |
| import calendar | |
| import pathlib | |
| import time | |
| import pickle | |
| import html |