From 37b32d59eb08a2bf64c85c8dbac99443fb0da71f Mon Sep 17 00:00:00 2001 From: dbroqua Date: Thu, 7 Jan 2021 18:11:30 +0100 Subject: [PATCH] Added Waybar --- config/waybar/config | 81 +++++++++++++++++++++++++++++++++++++++++ config/waybar/style.css | 59 ++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 config/waybar/config create mode 100644 config/waybar/style.css diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 0000000..3c5d161 --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,81 @@ +[ +{ + "layer": "bottom", + "position": "bottom", + "margin-right": 5, + "margin-left": 5, + "margin-bottom": 5, + "modules-left": [ + "sway/workspaces" + ], + "modules-center": [], + "modules-right": [ + "disk#1", + "disk#2", + "network", + "cpu", + "memory", + "pulseaudio", + "custom/multimedia_previous", + "custom/multimedia_current", + "custom/multimedia_next", + "clock", + "tray" + ], + "disk#1": { + "interval": 60, + "format": " {percentage_used:2}%", + "path": "/" + }, + "disk#2": { + "interval": 60, + "format": " {percentage_used:2}%", + "path": "/home" + }, + "network": { + "interface": "eno2", + "format": " {ipaddr}", + "format-disconnected": "-" + }, + "cpu": { + "format": " {load}%" + }, + "memory": { + "format": " {percentage}%" + }, + "pulseaudio": { + "format": "♪ {volume}% {icon}", + "format-bluetooth": "{volume}% {icon}", + "format-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", ""] + }, + "scroll-step": 5, + "on-click": "pavucontrol" + }, + "custom/multimedia_previous": { + "format": "", + "on-click": "~/Bin/music.sh Previous" + }, + "custom/multimedia_current": { + "exec": "~/Bin/nowPlaying.sh", + "on-click": "~/Bin/music.sh PlayPause", + }, + "custom/multimedia_next": { + "format": "", + "on-click": "~/Bin/music.sh Next" + }, + "clock": { + "format": "{:%d/%m %H:%M}" + }, + "tray": { + "spacing": 10 + } +} +] diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100644 index 0000000..ef64aea --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,59 @@ +* { + font-size: 11px; + font-family: "Roboto", "Font Awesome 5 Free"; +} + +window#waybar { + color: #d8dee9; + background: none; + padding: 8px; + border-radius: 4px; +} + +/* Base styling for modules */ +#workspaces, +#disk, +#network, +#cpu, +#memory, +#pulseaudio, +#custom-spotify, +#custom-multimedia_previous, +#custom-multimedia_current, +#custom-multimedia_next, +#clock, +#tray { + padding: 0px 8px 0px 8px; + border-radius: 4px; + background: rgba(76, 86, 106, 0.7); + margin: 0 4px; +} + +#workspaces { + padding: 0; +} +#workspaces button { + padding: 0px 12px 0px 12px; + border-radius: 4px; + background: rgba(94,129,172,0.7); + margin: 0 1px; +} +#workspaces button.focused { + border-radius: 4px; + background: rgba(136, 192, 208, 0.7); + color: rgba(46, 52, 64, 1); +} +#workspaces button.urgent { + background: rgba(208, 135, 112, 0.7) +} + +#network.disconnected { + background: rgba(191, 97, 106, 0.7); +} +/* Style for buttons */ +#custom-spotify, +#custom-multimedia_previous, +#custom-multimedia_current, +#custom-multimedia_next { + background: rgba(94,129,172,0.7); +}