diff --git a/waybar/config b/waybar/config new file mode 100644 index 0000000..d5d2e45 --- /dev/null +++ b/waybar/config @@ -0,0 +1,102 @@ +{ + "height": 30, + "modules-left": [ + "sway/workspaces", + "sway/mode", + "custom/media" + ], + "modules-right": [ + "network", + "custom/vpn", + "pulseaudio", + "custom/pacman", + "temperature", + "battery", + "clock", + "tray", + "idle_inhibitor" + ], + "custom/vpn": { + "format": " {} ", + "exec": "vpn-status", + "interval": 1 + }, + "custom/pacman": { + "format": "{}", + "exec": "waybar-pacman", + "interval": 300 + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "spacing": 10 + }, + "clock": { + "format": "{:%b %d, %a %H:%M}", + "tooltip-format": "{:%B %Y}\n{calendar}" + }, + "temperature": { + "critical-threshold": 80, + "format": "{icon} {temperatureC}°C", + "format-icons": [ + "", + "", + "" + ] + }, + "battery": { + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-alt": "{time} {icon}", + "format-icons": [ + "", + "", + "", + "", + "" + ] + }, + "network": { + "format-wifi": " {essid}", + "interval": 10, + "tooltip-format-wifi": "SSID: {essid}\nSignal strength: {signalStrength}% ({signaldBm} dBm)\nFreqency: {frequency}MHz\n\nIP: {ipaddr}\nInterface: {ifname}", + "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}", + "on-click-right": "nm-connection-editor" + }, + "pulseaudio": { + "format": "{icon} {volume}% {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": [ + "", + "", + "" + ] + }, + "on-click-right": "pavucontrol" + } +} diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 0000000..ae2f4af --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,88 @@ +* { + border: none; + border-radius: 0; + /* `otf-font-awesome` is required to be installed for icons */ + font-family: Roboto, Helvetica, Arial, sans-serif; + font-size: 13px; + min-height: 0; +} + +window#waybar { + background-color: rgba(44, 48, 59, 0.5); + border-bottom: 3px solid rgba(100, 114, 125, 0.5); + color: #ffffff; + transition-property: background-color; + transition-duration: .5s; +} + +window#waybar.hidden { + opacity: 0.2; +} + +/* +window#waybar.empty { + background-color: transparent; +} +window#waybar.solo { + background-color: #FFFFFF; +} +*/ + +window#waybar.termite { + background-color: #3F3F3F; +} + +window#waybar.chromium { + background-color: #000000; + border: none; +} + +#workspaces button { + padding: 0 10px; + background-color: transparent; + color: #ffffff; + border-bottom: 3px solid transparent; + font-weight: bold; +} + +/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ +#workspaces button:hover { + background: rgba(0, 0, 0, 0.2); + box-shadow: inherit; + border-bottom: 3px solid #ffffff; +} + +#workspaces button.focused { + background-color: #64727D; + border-bottom: 3px solid #ffffff; +} + +#workspaces button.urgent { + background-color: #eb4d4b; +} + +#mode { + background-color: #64727D; + border-bottom: 3px solid #ffffff; +} + +#clock, +#battery, +#cpu, +#memory, +#temperature, +#backlight, +#network, +#pulseaudio, +#custom-media, +#tray, +#mode, +#idle_inhibitor, +#mpd { + margin: 0 8px; + color: #ffffff; +} + +#clock { + font-weight: bold; +}