]> Freerunner's - dotfiles.git/commitdiff
waybar: implement hyprland/submap indicator
authorAndre Ramnitz <tux.rising@gmail.com>
Wed, 25 Sep 2024 22:39:40 +0000 (00:39 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Thu, 26 Sep 2024 21:57:49 +0000 (23:57 +0200)
config/dot-config/waybar/config.jsonc
config/dot-config/waybar/style.css

index 433b5bbd811303d3330df382fa97795a4a1bcfa7..4da524929be63cba14cba719f439cdfdfd569eaa 100644 (file)
@@ -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",
     "separate-outputs": true,
   },
 
+       "hyprland/submap": {
+       "format": " {} ",
+       "max-length": 10,
+       "tooltip": false
+       },
+
   "keyboard-state": {
     "numlock": true,
     "capslock": true,
index d1d0471e0de7341ac2e047738f651fa9dd617ac5..2c6c9241c38d2200c26b9b169b059f3c281c4bdf 100644 (file)
@@ -152,6 +152,11 @@ window#waybar {
   */
 }
 
+#submap {
+    color: @base00;
+    background-color: @base08;
+}
+
 /* ------------------------------------ modules right ------------------------------ */
 #tray {
   padding-left: 8px;