diff options
author | Matt Singleton <matt@xcolour.net> | 2023-04-02 14:21:49 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2023-04-02 14:21:49 -0500 |
commit | b483c295c082207dd7e8063949c2ff5b1ed14daf (patch) | |
tree | 96af8f2cdd86e25f8a0967b0a55209aa3fc47fc1 /sway-de/config/waybar | |
parent | a19790b7f5e606c3082dd0c8664e4fd460e7df91 (diff) |
new stow-based configuration management for graphical environment
Diffstat (limited to 'sway-de/config/waybar')
-rw-r--r-- | sway-de/config/waybar/config | 81 | ||||
-rw-r--r-- | sway-de/config/waybar/style.css | 77 |
2 files changed, 158 insertions, 0 deletions
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": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "today-format": "<b>{}</b>" + }, + "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; +} |