dotfiles

dotfiles - ryukamish edition
Log | Files | Refs | README

commit 58a318207fe4f7391de30e581c5b87f73e20a7ac
parent cea2a17e8704d2eed07ac4b157a563288dd6bdbf
Author: ryukamish <[email protected]>
Date:   Wed, 10 Jun 2026 22:23:20 +0530

brightness module for external displays and removing grey color from module's text

Diffstat:
M.config/waybar/config.jsonc | 21++++++++++++++++-----
M.config/waybar/style.css | 22++++++++++------------
2 files changed, 26 insertions(+), 17 deletions(-)

diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc @@ -4,7 +4,8 @@ "modules-left": [ "sway/workspaces", "network", - "custom/vpn" + "custom/vpn", + "custom/brightness" ], "modules-center": [], "modules-right": [ @@ -35,23 +36,23 @@ "warning": 30, "critical": 15 }, - "format": "BAT: {capacity}%", + "format": "BAT: <span color='#aaaaaa'>{capacity}%</span>", "format-icons": { "charging": "<span color='#ffff00'>PWR: {capacity}%</span>" }, "format-plugged": "PLG: <span color='#aaaaaa'>{capacity}%</span>" }, "bluetooth": { - "format": "BT: {num_connections}", + "format": "BT: <span color='#aaaaaa'>{num_connections}</span>", "format-disabled": "BT: <span color='#aaaaaa'>DC'D</span>", - "format-connected": "BT: {num_connections}", + "format-connected": "BT: <span color='#aaaaaa'>{num_connections}</span>", "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%", "on-click": "kitty --app-id=TUI.float -e bluetui", "on-click-right": "rfkill toggle bluetooth" }, "pulseaudio": { "format": "{icon} <span color='#aaaaaa'>{volume}</span>", - "format-bluetooth": "BT: {icon} {volume}", + "format-bluetooth": "BT: {icon} <span color='#aaaaaa'>{volume}</span>", "format-muted": "X MUTED", "format-icons": [ "+--", @@ -83,5 +84,15 @@ // "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0", "return-type": "json", "interval": 30 + }, + "custom/brightness": { + "format": "HDMI: <span color='#aaaaaa'>{}%</span>", + "interval": "once", + "signal": 9, + "exec": "~/.local/bin/waybar-brightness get", + "on-scroll-up": "~/.local/bin/waybar-brightness up", + "on-scroll-down": "~/.local/bin/waybar-brightness down", + "on-click": "~/.local/bin/waybar-brightness left_click", + "on-click-right": "~/.local/bin/waybar-brightness right_click" } } diff --git a/.config/waybar/style.css b/.config/waybar/style.css @@ -10,6 +10,15 @@ window#waybar { background-color: #0a0a0a; } +#workspaces button { + padding: 3px 5px; +} + +#workspaces button:hover { + /* Hovering over the workspaces button has a no radius selection around it */ + border-radius: 0; +} + #workspaces button.focused { background-color: #7fc8ff; color: #0a0a0a; @@ -39,6 +48,7 @@ window#waybar { #battery, #window, #custom-vpn, +#custom-brightness, #memory, #network, #mpris, @@ -48,18 +58,6 @@ window#waybar { padding: 0 12px; } -/* add grey color to some modules */ -#network, -#memory, -#bluetooth, -#pulseaudio, -#custom-vpn, -#clock, -#window, -#battery { - color: #cccccc; -} - #temperature.critical { color: #ff0000; }