From f90b5e959cf308af27896a24d788608bf7dd5e21 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sun, 7 Sep 2025 17:54:59 +0530 Subject: waybar --- waybar/config | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 waybar/config (limited to 'waybar/config') 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 + }, +} -- cgit v1.2.3