From f90b5e959cf308af27896a24d788608bf7dd5e21 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sun, 7 Sep 2025 17:54:59 +0530 Subject: waybar --- waybar/battery_high.png | Bin 0 -> 1111 bytes waybar/battery_low.png | Bin 0 -> 2083 bytes waybar/config | 137 ++++++++++++++++++++++++++++++++++++++++++++++++ waybar/style.css | 120 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 257 insertions(+) create mode 100644 waybar/battery_high.png create mode 100644 waybar/battery_low.png create mode 100644 waybar/config create mode 100644 waybar/style.css (limited to 'waybar') diff --git a/waybar/battery_high.png b/waybar/battery_high.png new file mode 100644 index 0000000..0e4d8c5 Binary files /dev/null and b/waybar/battery_high.png differ diff --git a/waybar/battery_low.png b/waybar/battery_low.png new file mode 100644 index 0000000..39d2d89 Binary files /dev/null and b/waybar/battery_low.png differ diff --git a/waybar/config b/waybar/config new file mode 100644 index 0000000..1e91d89 --- /dev/null +++ b/waybar/config @@ -0,0 +1,137 @@ +{ + "layer": "top", + "position": "top", + "height": 36, + "spacing": 0, + "modules-left": [ + "clock", + "hyprland/workspaces", + "tray", + ], + "modules-right": [ + "network", + "battery", + "pulseaudio", + "custom/temperature", + "memory", + "cpu", + "custom/lock", + "custom/reboot", + "custom/power", + ], + "hyprland/workspaces": { + "disable-scroll": false, + "all-outputs": true, + "format": "{icon}", + "on-click": "activate", + "persistent-workspaces": { + "*":[1,2,3,4,5,6,7,8,9] + }, + }, + "custom/lock": { + "format": "", + "on-click": "hyprlock", + "tooltip": true, + "tooltip-format": "Lock" + }, + "custom/reboot": { + "format": "", + "on-click": "systemctl reboot", + "tooltip": true, + "tooltip-format": "Reboot" + }, + "custom/power": { + "format": "", + "on-click": "systemctl poweroff", + "tooltip": true, + "tooltip-format": "Power" + }, + "network": { + "format-wifi": " 󰤨 {essid} ", + "format-ethernet": "Wired ", + "tooltip-format": " 󰅧 {bandwidthUpBytes} 󰅢 {bandwidthDownBytes}", + "format-linked": " 󱘖 {ifname} (No IP) ", + "format-disconnected": "Disconnected ", + "interval": 1, + "on-click": "foot -e nmtui", + }, + "battery": { + "states": { + "warning": 30, + "critical": 15 + }, + "events": { + "on-discharging-warning": "notify-send -u normal 'Low Battery' -i /home/aargh/.config/waybar/battery_low.png", + "on-discharging-critical": "notify-send -u critical 'Very Low Battery' -i /home/aargh/.config/waybar/battery_low.png", + "on-charging-100": "notify-send -u normal 'Battery Full!' -i /home/aargh/.config/waybar/battery_high.png" + }, + "format": " {icon} {capacity}%", + "format-charging": "󱐋 {capacity}%", + "interval": 1, + "format-icons": ["󰂎", "󰁼", "󰁿", "󰂁", "󰁹"], + "tooltip": true + }, + "pulseaudio": { + "format": " {icon} {volume}%", + "format-muted": " 󰖁 0%", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": [ + "", + "", + "" + ] + }, + "on-click-right": "pavucontrol -t 3", + "on-click": "pactl -- set-sink-mute 0 toggle", + "tooltip": true, + "tooltip-format": "Volume: {volume}%" + }, + "custom/temperature": { + "exec": "sensors | awk '/^Package id 0:/ {print int($4) + 273}'", + "format": "{} K", + "interval": 5, + "tooltip": true, + "tooltip-format": "CPU Temperature: {} K" + }, + "memory": { + "format": "{used:0.1f}G/{total:0.1f}G ", + "tooltip": true, + "tooltip-format": "Memory: {used:0.2f}G/{total:0.2f}G" + }, + "cpu": { + "format": "{usage}% ", + "tooltip": true + }, + "clock": { + "interval": 1, + "timezone": "Asia/Kolkata", + "format": "{:%H:%M:%S} ", + "calendar": { + "mode" : "year", + "mode-mon-col" : 3, + "weeks-pos" : "right", + "on-scroll" : 1, + "on-click-right": "mode", + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + } + }, + "tooltip": true, + "format-alt": "{:L%Y/%m/%d, %A} ", + "tooltip-format": "{calendar}", + }, + "tray": { + "icon-size": 17, + "spacing": 6 + }, +} diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 0000000..a0dac2d --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,120 @@ +* { + font-family: "JetBrainsMono Nerd Font", monospace; + font-weight: bold; + font-size: 16px; + color: #c6d0f5; +} + +#waybar { + background-color: rgba(0, 0, 0, 0); + border: none; + box-shadow: none; +} + +#workspaces, +#window, +#tray { + background-color: #414559; + padding: 4px 6px; + margin-top: 6px; + margin-left: 6px; + margin-right: 6px; + border-radius: 10px; + border-width: 0px; +} + +#clock { + background-color: #414559; + margin-top: 6px; + margin-right: 6px; + padding: 4px 2px; + border-radius: 0 10px 10px 0; + border-width: 0px; +} + +#custom-power { + background-color: #414559; + margin-top: 6px; + margin-right: 0px; + padding: 4px 2px; + border-radius: 0px; + border-width: 0px; +} + +#network, +#custom-lock { + background-color: #414559; + margin-top: 6px; + margin-left: 6px; + padding: 4px 2px; + border-radius: 10px 0 0 10px; + border-width: 0px; +} + +#custom-reboot, +#bluetooth, +#battery, +#pulseaudio, +#custom-temperature, +#memory, +#cpu { + background-color: #414559; + margin-top: 6px; + padding: 4px 2px; + border-width: 0px; +} + +#cpu { + border-radius: 0 10px 10px 0; +} + +#custpm-temperature.critical, +#pulseaudio.muted { + color: #e78284; + padding-top: 0; +} + +#bluetooth:hover, +#network:hover, +#backlight:hover, +#battery:hover, +#pulseaudio:hover, +#custom-temperature:hover, +#memory:hover, +#cpu:hover, +#clock:hover, +#custom-lock:hover, +#custom-reboot:hover, +#custom-power:hover, +#window:hover { + background-color: #414559; +} + +#workspaces button:hover { + background-color: #949cbb; + padding: 2px 8px; + margin: 0 2px; + border-radius: 10px; +} + +#workspaces button.active { + background-color: #ca9ee6; + color: #ea999c; + padding: 2px 8px; + margin: 0 2px; + border-radius: 10px; +} + +#workspaces button { + background: transparent; + border: none; + color: #e5c890; + padding: 2px 8px; + margin: 0 2px; + font-weight: bold; +} + +#window { + font-weight: 500; + font-style: italic; +} -- cgit v1.2.3