diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config new file mode 100644 index 0000000..62f0a96 --- /dev/null +++ b/waybar/.config/waybar/config @@ -0,0 +1,46 @@ +{ + "height": 30, + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], + "modules-right": ["pulseaudio", "network", "backlight", "battery", "clock", "tray"], + "sway/mode": { + "format": "{}" + }, + "tray": { + "spacing": 10 + }, + "clock": { + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + }, + "backlight": { + "format": "{icon} {percent}%", + "format-icons": ["", ""] + }, + "battery": { + "states": { + "warning": 20, + "critical": 10 + }, + "format": "{icon} {capacity}%", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", ""] + }, + "network": { + "format-wifi": " {essid} ({signalStrength}%)", + "format-ethernet": " {ifname}: {ipaddr}/{cidr}", + "format-linked": " {ifname} (No IP)", + "format-disconnected": "⚠ Disconnected", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "format-icons": { + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + } +} +// vim:syn=json diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css new file mode 100644 index 0000000..0840b06 --- /dev/null +++ b/waybar/.config/waybar/style.css @@ -0,0 +1,48 @@ +@import url("../../.cache/wal/colors-waybar.css"); + +* { + font-family: "Noto Sans CJK JP"; +} + +window#waybar { + background: rgba(43, 48, 59, 0.9); + background: @background; + border-bottom: 1px solid rgba(100, 114, 125, 0.3); + color: @foreground; +} + +#workspaces button { + padding: 0 5px; + background: transparent; + color: white; +} + +#workspaces button.focused { + background: #64727D; + background: @color8; +} + +#mode, #pulseaudio, #network, #backlight, #clock, #battery { + padding: 0 5px; + margin: 0 5px; +} + +#mode { + background: #64727D; + border-bottom: 3px solid white; +} + +#battery.charging { + color: #26A65B; + color: @color2; +} + +#battery.warning:not(.charging) { + background: #f53c3c; + background: @color8; +} + +#battery.critical:not(.charging) { + background: #f53c3c; + color: white; +} diff --git a/waybar/README.md b/waybar/README.md new file mode 100644 index 0000000..c24c2b1 --- /dev/null +++ b/waybar/README.md @@ -0,0 +1,16 @@ +# waybar + +[waybar][waybar] is a Wayland bar for [sway][sway]. + +## Use Cases + +waybar can be used to: + +- Have a nicer looking bar than the default + +You should not use waybar if: + +- You aren't using Wayland + +[waybar]: https://github.com/Alexays/Waybar +[sway]: https://github.com/swaywm/sway