From 0b52cf71611532f5cda2ca4533060f082f5b7dc4 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 9 Aug 2022 00:57:36 -0500 Subject: [PATCH] feat(waybar): show sway mode --- dots/.config/waybar/config | 8 ++++++++ dots/.config/waybar/style.css | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/dots/.config/waybar/config b/dots/.config/waybar/config index 3c709c12..69272e5a 100644 --- a/dots/.config/waybar/config +++ b/dots/.config/waybar/config @@ -152,6 +152,9 @@ { "layer": "bottom", "position": "bottom", + "modules-left": [ + "custom/sway-mode" + ], "modules-center": [ "sway/workspaces" ], @@ -170,6 +173,11 @@ "8": [], "9": [] } + }, + "custom/sway-mode": { + "exec": "swaymsg -t get_binding_state | jq '.name' -r", + "format": " {}", + "interval": 1 } } ] diff --git a/dots/.config/waybar/style.css b/dots/.config/waybar/style.css index f90554b4..83f2a725 100644 --- a/dots/.config/waybar/style.css +++ b/dots/.config/waybar/style.css @@ -59,6 +59,12 @@ border-right: 2px solid @oniViolet; } +#custom-sway-mode { + background: @sumiInk0; + border-bottom: 2px solid @oniViolet; + border-left: 2px solid @oniViolet; +} + #workspaces { background: @sumiInk0; transition: none;