commit 1fd899a5c58c38c4cca924fda2837d3a00f9005f
parent b6a834721a64613733ec095d3cc81e6abf479ae5
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date: Tue, 2 Apr 2019 01:49:16 +0200
Add waybar
Diffstat:
1 file changed, 107 insertions(+), 0 deletions(-)
diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config
@@ -0,0 +1,107 @@
+{
+ "layer": "top", // Waybar at top layer
+ "position": "bottom", // Waybar position (top|bottom|left|right)
+ "height": 20, // Waybar height
+ // "width": 1280, // Waybar width
+ // Choose the order of the modules
+ "modules-left": ["tray", "sway/workspaces", "sway/mode"],
+ "modules-center": ["custom/cmus"],
+ "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "clock"],
+ // Modules configuration
+ // "sway/workspaces": {
+ // "disable-scroll": true,
+ // "all-outputs": true,
+ // "format": "{name}: {icon}",
+ // "format-icons": {
+ // "1": "",
+ // "2": "",
+ // "3": "",
+ // "4": "",
+ // "5": "",
+ // "urgent": "",
+ // "focused": "",
+ // "default": ""
+ // }
+ // },
+ "sway/mode": {
+ "format": "<span style=\"italic\">{}</span>"
+ },
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
+ }
+ },
+ "tray": {
+ // "icon-size": 21,
+ "spacing": 10
+ },
+ "clock": {
+ "tooltip-format": "{:%Y-%m-%d | %H:%M}",
+ "format-alt": "{:%Y-%m-%d}"
+ },
+ "cpu": {
+ "format": "{usage}% "
+ },
+ "memory": {
+ "format": "{}% "
+ },
+ "temperature": {
+ // "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 80,
+ // "format-critical": "{temperatureC}°C ",
+ "format": "{temperatureC}°C "
+ },
+ "backlight": {
+ // "device": "acpi_video1",
+ "format": "{percent}% {icon}",
+ "format-icons": ["", ""]
+ },
+ "battery": {
+ "states": {
+ // "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{capacity}% {icon}",
+ // "format-good": "", // An empty format will hide the module
+ // "format-full": "",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "battery#bat2": {
+ "bat": "BAT2"
+ },
+ "network": {
+ // "interface": "wlp2s0", // (Optional) To force the use of this interface
+ "format-wifi": "{essid} ({signalStrength}%) ",
+ "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
+ "format-disconnected": "Disconnected ⚠"
+ },
+ "pulseaudio": {
+ //"scroll-step": 1,
+ "format": "{volume}% {icon}",
+ "format-bluetooth": "{volume}% {icon}",
+ "format-muted": "",
+ "format-icons": {
+ "headphones": "",
+ "handsfree": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", ""]
+ },
+ "on-click": "pavucontrol"
+ },
+ "custom/cmus": {
+ "format": "{}",
+ "max-length": 40,
+ "escape": true,
+ "interval": 1,
+ "exec": "$HOME/.config/polybar/cmus.sh 2> /dev/null",
+ "on-click": "cmus-remote --pause",
+ "exec-if": "pgrep cmus"
+ }
+}