From 2c5a98a39beda2aaa3c2a7c72378837f5548b48a Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 26 Sep 2024 00:39:40 +0200 Subject: [PATCH] waybar: implement hyprland/submap indicator --- config/dot-config/waybar/config.jsonc | 8 +++++++- config/dot-config/waybar/style.css | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/dot-config/waybar/config.jsonc b/config/dot-config/waybar/config.jsonc index 433b5bbd..4da52492 100644 --- a/config/dot-config/waybar/config.jsonc +++ b/config/dot-config/waybar/config.jsonc @@ -5,7 +5,7 @@ "width": 3440, // Waybar width "height": 20, // Waybar height, leave blank for auto "spacing": 1, // Gaps between modules (4px) - "modules-left": ["custom/launcher", "hyprland/workspaces", "custom/pipespacer", "hyprland/window"], + "modules-left": ["custom/launcher", "hyprland/workspaces", "custom/pipespacer", "hyprland/window", "hyprland/submap"], "modules-center": ["mpd"], "modules-right": [ "tray", @@ -75,6 +75,12 @@ "separate-outputs": true, }, + "hyprland/submap": { + "format": " {} ", + "max-length": 10, + "tooltip": false + }, + "keyboard-state": { "numlock": true, "capslock": true, diff --git a/config/dot-config/waybar/style.css b/config/dot-config/waybar/style.css index d1d0471e..2c6c9241 100644 --- a/config/dot-config/waybar/style.css +++ b/config/dot-config/waybar/style.css @@ -152,6 +152,11 @@ window#waybar { */ } +#submap { + color: @base00; + background-color: @base08; +} + /* ------------------------------------ modules right ------------------------------ */ #tray { padding-left: 8px; -- 2.51.2