feat(waybar): show sway mode

This commit is contained in:
Price Hiller 2022-08-09 00:57:36 -05:00
parent 03cfec687d
commit 0b52cf7161
2 changed files with 14 additions and 0 deletions

View File

@ -152,6 +152,9 @@
{ {
"layer": "bottom", "layer": "bottom",
"position": "bottom", "position": "bottom",
"modules-left": [
"custom/sway-mode"
],
"modules-center": [ "modules-center": [
"sway/workspaces" "sway/workspaces"
], ],
@ -170,6 +173,11 @@
"8": [], "8": [],
"9": [] "9": []
} }
},
"custom/sway-mode": {
"exec": "swaymsg -t get_binding_state | jq '.name' -r",
"format": " {}",
"interval": 1
} }
} }
] ]

View File

@ -59,6 +59,12 @@
border-right: 2px solid @oniViolet; border-right: 2px solid @oniViolet;
} }
#custom-sway-mode {
background: @sumiInk0;
border-bottom: 2px solid @oniViolet;
border-left: 2px solid @oniViolet;
}
#workspaces { #workspaces {
background: @sumiInk0; background: @sumiInk0;
transition: none; transition: none;