From e9dc4c1090abb01317847c417b75d3960f3da34d Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Fri, 3 Feb 2023 14:39:07 -0600 Subject: only install platform-appropriate configs based on uname --- config/linux/waybar/config | 89 +++++++++++++++++++++++++++++++++++++++++++ config/linux/waybar/style.css | 62 ++++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 config/linux/waybar/config create mode 100644 config/linux/waybar/style.css (limited to 'config/linux/waybar') diff --git a/config/linux/waybar/config b/config/linux/waybar/config new file mode 100644 index 0000000..d8cefd2 --- /dev/null +++ b/config/linux/waybar/config @@ -0,0 +1,89 @@ +[ + { + "name": "topbar", + "layer": "bottom", + "position": "top", + "height": 0, + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": [], + "modules-right": ["tray", "custom/reboot", "network#wifi", "pulseaudio", "battery#bat1", "temperature", "idle_inhibitor", "clock#local"], + "sway/workspaces": { + "format": "{icon}", + "format-icons": { + "1": "", + "2": "" + } + }, + "clock#local": { + "interval": 1, + "format": "{:%a %d %b %I:%M %p}", + "tooltip-format": "{:%Y %B}\n{calendar}", + "today-format": "{}" + }, + "temperature": { + "critical-threshold": 80, + "format": "{icon} {temperatureC}°C", + "format-icons": ["", "", "", "", ""], + "tooltip": false + }, + "battery#bat1": { + "bat": "BAT0", + "adapter": "AC", + "interval": 60, + "states": { + "5": 100, + "4": 80, + "3": 60, + "2": 40, + "1": 20, + "0": 5 + }, + "format": "{icon} {capacity}%", + "format-charging-5": " {capacity}%", + "format-charging-4": " {capacity}%", + "format-charging-3": " {capacity}%", + "format-charging-2": " {capacity}%", + "format-charging-1": " {capacity}%", + "format-charging-0": " {capacity}%", + "format-icons": ["", "", "", "", "", ""] + }, + "network#wifi": { + "interface": "wlp*", + "format-ethernet": "", + "format-wifi": " {signalStrength}%", + "format-linked": "", + "format-disconnected": "", + "tooltip-format": "{essid}\n{ifname}: {ipaddr}/{cidr}", + "on-click": "nm-connection-editor" + }, + "pulseaudio": { + "scroll-step": 1, + "format": "{icon} {volume}%", + "format-muted": "婢 {volume}%", + "format-bluetooth": "{icon} {volume}%", + "format-bluetooth-muted": "婢 {icon}", + "format-icons": { + "headphone": "", + "phone": "", + "portable": "", + "car": "", + "default": ["奄", "奔", "墳"] + }, + "on-click": "pavucontrol" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + }, + "tooltip": false + }, + "custom/reboot": { + "format": "{}", + "exec": "~/.local/bin/dnf-needs-restarting", + "return-type": "json", + "interval": 60 + } + } +] diff --git a/config/linux/waybar/style.css b/config/linux/waybar/style.css new file mode 100644 index 0000000..ebcf4a6 --- /dev/null +++ b/config/linux/waybar/style.css @@ -0,0 +1,62 @@ +* { + border-radius: 0; + border: 0; + font-family: Noto Sans, JetBrainsMono Nerd Font; + font-size: 11pt; + text-shadow: none; +} + +window#waybar { + background: #eff0f2; + color: #4a4b4e; + border-bottom: 1px solid #dee2e0; +} + +tooltip { + background: alpha(#eff0f2, 0.95); + border: 1px solid #dee2e0; + border-radius: 5px; +} + +tooltip label { + color: #4a4b4e; +} + +label { + padding: 2px 10px; + margin: 0; +} + +#workspaces label { + padding: 0; +} + +#workspaces button { + padding: 0 6px; + font-weight: normal; +} + +#workspaces button:hover { + box-shadow: inherit; + text-shadow: inherit; + background: #eff0f2; +} + +#workspaces button.focused { + background: #dee2e0; +} + +#idle_inhibitor { + margin: 0; + padding: 2px 12px 2px 6px; +} + +#idle_inhibitor.activated { + color: #eff0f2; + background: #a32a3a; + text-shadow: 1px 1px 0 #ae4e2a; +} + +#custom-reboot { + color: #a32a3a; +} -- cgit v1.2.3