Skip to content

Commit

Permalink
feat: add pause and resize indicator (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: yrmsa <yrmsa>
  • Loading branch information
yrmsa authored Dec 26, 2024
1 parent b945928 commit d501436
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/Workspaces.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,28 @@
>
<i class="ti ti-switch-{glazewm?.tilingDirection}"></i>
</button>
{#each glazewm.bindingModes as bindingMode, i}
<div class="flex items-center">
<button class="pb-[4px]"
onclick={() => {
switch (bindingMode.name.toLowerCase()) {
case "pause":
glazewm!.runCommand("wm-disable-binding-mode --name pause");
break;

case "resize":
glazewm!.runCommand("wm-disable-binding-mode --name resize");
break;

default:
break;
}
}}
>
{bindingMode.displayName ?? bindingMode.name}
</button>
</div>
{/each}
<div class="flex items-center gap-1">
{#if glazewm.focusedWorkspace}
{#each glazewm.focusedWorkspace!.children as child}
Expand Down

0 comments on commit d501436

Please sign in to comment.