From 668b7b736cc6eeed4e975860b9e418a8753810cc Mon Sep 17 00:00:00 2001 From: Robinhuett <5955614+Robinhuett@users.noreply.github.com> Date: Tue, 30 Oct 2018 13:44:44 +0100 Subject: [PATCH] Added default config for sway binding mode --- resources/config | 5 ++++- resources/style.css | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/config b/resources/config index 4be4afb..1709cc2 100644 --- a/resources/config +++ b/resources/config @@ -4,7 +4,7 @@ // "height": 30, // Waybar height // "width": 1280, // Waybar width // Choose the order of the modules - "modules-left": ["sway/workspaces", "custom/spotify"], + "modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"], "modules-center": ["sway/window"], "modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "battery#bat2", "clock", "tray"], // Modules configuration @@ -23,6 +23,9 @@ // "default": "" // } // }, + "sway/mode": { + "format": "{}" + }, "sway/window": { "max-length": 50 }, diff --git a/resources/style.css b/resources/style.css index 0eb1680..d104b63 100644 --- a/resources/style.css +++ b/resources/style.css @@ -23,7 +23,12 @@ window#waybar { border-bottom: 3px solid white; } -#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray { +#mode { + background: #64727D; + border-bottom: 3px solid white; +} + +#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray #mode { padding: 0 10px; margin: 0 5px; }