From 6ea66752a8da9bcdaa4b77fc3e5e356620bfdbf5 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 17 Sep 2025 11:25:44 +0530 Subject: simplicity is nice --- waybar/config | 75 +++++++++++++++------------------------ waybar/style.css | 106 ++++--------------------------------------------------- 2 files changed, 35 insertions(+), 146 deletions(-) (limited to 'waybar') diff --git a/waybar/config b/waybar/config index 1e91d89..46cef16 100644 --- a/waybar/config +++ b/waybar/config @@ -4,20 +4,23 @@ "height": 36, "spacing": 0, "modules-left": [ - "clock", "hyprland/workspaces", - "tray", ], "modules-right": [ "network", + "custom/space", "battery", + "custom/space", "pulseaudio", + "custom/space", "custom/temperature", + "custom/space", "memory", + "custom/space", "cpu", - "custom/lock", - "custom/reboot", - "custom/power", + "custom/space", + "clock", + "custom/space", ], "hyprland/workspaces": { "disable-scroll": false, @@ -28,32 +31,17 @@ "*":[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" + "custom/space": { + "format": " ", }, "network": { - "format-wifi": " 󰤨 {essid} ", - "format-ethernet": "Wired ", - "tooltip-format": " 󰅧 {bandwidthUpBytes} 󰅢 {bandwidthDownBytes}", - "format-linked": " 󱘖 {ifname} (No IP) ", - "format-disconnected": "Disconnected ", + "format-wifi": "Signal(Wifi):{essid}", + "format-ethernet": "Signal(Ethernet)", + "format-linked": "Signal(Linked){ifname}", + "format-disconnected": "Signal:Offline", "interval": 1, "on-click": "foot -e nmtui", + "tooltip-format": "Sending: {bandwidthUpBytes} Receiving: {bandwidthDownBytes}", }, "battery": { "states": { @@ -65,15 +53,15 @@ "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}%", + "format": "Battery:{capacity}%", + "format-charging": "AC/DC:{capacity}%", "interval": 1, "format-icons": ["󰂎", "󰁼", "󰁿", "󰂁", "󰁹"], "tooltip": true }, "pulseaudio": { - "format": " {icon} {volume}%", - "format-muted": " 󰖁 0%", + "format": "Sound:{volume}%", + "format-muted": "Sound:off", "format-icons": { "headphone": "", "hands-free": "", @@ -89,29 +77,26 @@ }, "on-click-right": "pavucontrol -t 3", "on-click": "pactl -- set-sink-mute 0 toggle", - "tooltip": true, - "tooltip-format": "Volume: {volume}%" + "tooltip": false, }, "custom/temperature": { "exec": "sensors | awk '/^Package id 0:/ {print int($4) + 273}'", - "format": "{} K", + "format": "Heat:{}K", "interval": 5, - "tooltip": true, - "tooltip-format": "CPU Temperature: {} K" + "tooltip": false, }, "memory": { - "format": "{used:0.1f}G/{total:0.1f}G ", - "tooltip": true, - "tooltip-format": "Memory: {used:0.2f}G/{total:0.2f}G" + "format": "RAM({total}G):{used}G", + "tooltip": false, }, "cpu": { - "format": "{usage}% ", - "tooltip": true + "format": "CPU:{avg_frequency}Hz", + "tooltip": true, }, "clock": { "interval": 1, "timezone": "Asia/Kolkata", - "format": "{:%H:%M:%S} ", + "format": "Time:{:%H:%M:%S}", "calendar": { "mode" : "year", "mode-mon-col" : 3, @@ -127,11 +112,7 @@ } }, "tooltip": true, - "format-alt": "{:L%Y/%m/%d, %A} ", + "format-alt": "Time:{:L%Y/%m/%d, %A}", "tooltip-format": "{calendar}", }, - "tray": { - "icon-size": 17, - "spacing": 6 - }, } diff --git a/waybar/style.css b/waybar/style.css index a0dac2d..a9b80a6 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -6,112 +6,20 @@ } #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; + background-color: rgb(0, 0, 0); } #workspaces button:hover { - background-color: #949cbb; - padding: 2px 8px; - margin: 0 2px; - border-radius: 10px; + background-color: #303030; + margin: 0px; + border-radius: 0px; } #workspaces button.active { - background-color: #ca9ee6; + background-color: #28CD41; 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; + margin: 0; + border-radius: 0px; } #window { -- cgit v1.2.3