From b0434f7756b079d77a9a8071f9f281990b728dcc Mon Sep 17 00:00:00 2001 From: Colton Deaton Date: Sun, 12 Oct 2025 09:04:48 -0500 Subject: [PATCH] Initial commit. --- config.jsonc | 27 +++++++++++++++ modules.json | 70 +++++++++++++++++++++++++++++++++++++++ style.css | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 190 insertions(+) create mode 100644 config.jsonc create mode 100644 modules.json create mode 100644 style.css diff --git a/config.jsonc b/config.jsonc new file mode 100644 index 0000000..c14ef43 --- /dev/null +++ b/config.jsonc @@ -0,0 +1,27 @@ +// -*- mode: jsonc -*- +{ + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) + "height": 16, // Waybar height (to be removed for auto height) + // "width": 1280, // Waybar width + "spacing": 4, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": [ + "hyprland/window" + ], + "modules-right": [ + "idle_inhibitor", + "network", + "cpu", + "memory", + "temperature", + "hyprland/language", + "battery", + "clock" + ], + //Modules configuration + + "include": [ + "~/.config/waybar/modules.json" + ] +} diff --git a/modules.json b/modules.json new file mode 100644 index 0000000..c142d82 --- /dev/null +++ b/modules.json @@ -0,0 +1,70 @@ +{ + "hyprland/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "warp-on-scroll": false, + "format": "{name}", + "format-icons": { + "urgent": "", + "active": "", + "default": "" + } + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "network": { + "format-wifi": " {essid} ({signalStrength}%)", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "on-click": "sh ~/scripts/rofi-wifi-menu/rofi-wifi-menu.sh" + + }, + "cpu": { + "format": " {usage}%", + "tooltip": true + }, + "memory": { + "format": " {}%", + "tooltip": true + }, + "temperature": { + "interval": 10, + "hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input", + "critical-threshold": 100, + "format-critical": " {temperatureC}", + "format": " {temperatureC}°C" + }, + "hyprland/language": { + "format": " {}", + "format-en": "EN", + "format-ru": "RU" + }, + "battery": { + "states": { + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-full": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "clock": { + "format": "{:%H:%M | %e %B} ", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + } + +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..571b4ff --- /dev/null +++ b/style.css @@ -0,0 +1,93 @@ +* { + /* `otf-font-awesome` and SpaceMono Nerd Font are required to be installed for icons */ + font-family: JetbrainsMono, FontAwesome, Roboto, Helvetica, Arial, sans-serif; + font-size: 10px; + transition: background-color .3s ease-out; +} + +window#waybar { + background: rgba(26, 27, 38, 0.75); + color: #c0caf5; + font-family: + SpaceMono Nerd Font, + feather; + transition: background-color .5s; +} + +.modules-left, +.modules-right +{ + background: rgba(0, 0, 8, .7); + margin: 5px 10px; + padding: 5 5px; + border-radius: 10px; +} +.modules-left { + padding: 0 10px; +} + +#clock, +#battery, +#cpu, +#memory, +#disk, +#temperature, +#backlight, +#network, +#pulseaudio, +#wireplumber, +#custom-media, +#tray, +#mode, +#idle_inhibitor, +#scratchpad, +#power-profiles-daemon, +#language, +#mpd { + padding: 0 10px; + border-radius: 10px; +} + +#clock:hover, +#battery:hover, +#cpu:hover, +#memory:hover, +#disk:hover, +#temperature:hover, +#backlight:hover, +#network:hover, +#pulseaudio:hover, +#wireplumber:hover, +#custom-media:hover, +#tray:hover, +#mode:hover, +#idle_inhibitor:hover, +#scratchpad:hover, +#power-profiles-daemon:hover, +#language:hover, +#mpd:hover { + background: rgba(26, 27, 38, 0.9); +} + + +#workspaces button { + background: transparent; + font-family: + SpaceMono Nerd Font, + feather; + font-weight: 900; + font-size: 10pt; + color: #c0caf5; + border:none; + border-radius: 10px; +} + +#workspaces button.active { + background: #13131d; +} + +#workspaces button:hover { + background: #11111b; + color: #cdd6f4; + box-shadow: none; +}