From b483c295c082207dd7e8063949c2ff5b1ed14daf Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sun, 2 Apr 2023 14:21:49 -0500 Subject: new stow-based configuration management for graphical environment --- sway-de/config/waybar/config | 81 +++++++++++++++++++++++++++++++++++++++++ sway-de/config/waybar/style.css | 77 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 sway-de/config/waybar/config create mode 100644 sway-de/config/waybar/style.css (limited to 'sway-de/config/waybar') diff --git a/sway-de/config/waybar/config b/sway-de/config/waybar/config new file mode 100644 index 0000000..17bade2 --- /dev/null +++ b/sway-de/config/waybar/config @@ -0,0 +1,81 @@ +[ + { + "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}", + "format-icons": ["", "", "", "", ""], + "tooltip-format": "Temperature: {temperatureC}°C" + }, + "battery#bat1": { + "bat": "BAT0", + "adapter": "AC", + "interval": 60, + "states": { + "5": 100, + "4": 80, + "3": 60, + "2": 40, + "1": 20, + "0": 5 + }, + "format": "{icon}", + "format-charging": "", + "format-icons": ["", "", "", "", ""], + "tooltip-format": "Battery: {capacity}%\n{timeTo}" + }, + "network#wifi": { + "interface": "wlp*", + "format-ethernet": "", + "format-wifi": "", + "format-linked": "", + "format-disconnected": "", + "tooltip-format": "Signal: {signalStrength}%\n{essid}\n{ifname}: {ipaddr}/{cidr}", + "on-click": "gnome-control-center wifi" + }, + "pulseaudio": { + "scroll-step": 1, + "format": "{icon}", + "format-muted": "", + "format-icons": { + "headphone": "", + "default": ["", ""] + }, + "tooltip-format": "Volume: {volume}%\n{desc}", + "on-click": "gnome-control-center sound" + }, + "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/sway-de/config/waybar/style.css b/sway-de/config/waybar/style.css new file mode 100644 index 0000000..3866d6f --- /dev/null +++ b/sway-de/config/waybar/style.css @@ -0,0 +1,77 @@ +* { + border-radius: 0; + border: 0; + font-family: "Noto Sans", "Font Awesome 5 Free"; + font-size: 11pt; + text-shadow: none; +} + +window#waybar { + background: #ffffff; + color: #4a484d; + border-bottom: 1px solid #efefef; + border-left: 5px solid black; + border-right: 5px solid black; +} + +.modules-left, .modules-center, .modules-right { + background: #ffffff; + border-bottom: 1px solid #efefef; +} + +.modules-left { + border-radius: 5px 0 0 0; + padding-left: 5px; +} + +.modules-right { + border-radius: 0 5px 0 0; +} + +tooltip { + background: alpha(#fafafa, 0.95); + border: 1px solid #ddd; +} + +tooltip label { + color: #4a484d; +} + +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: #ffffff; +} + +#workspaces button.focused { + background: #efefef; +} + +#idle_inhibitor { + margin: 0; + padding: 2px 12px 2px 6px; +} + +#idle_inhibitor.activated { + color: #ffffff; + background: #a50000; + text-shadow: 1px 1px 0 #992030; +} + +#custom-reboot { + color: #a50000; +} -- cgit v1.2.3