diff options
| author | Tommaso Negri <me@tommasongr.com> | 2026-08-28 12:01:48 +0200 |
|---|---|---|
| committer | Tommaso Negri <me@tommasongr.com> | 2026-08-28 12:01:48 +0200 |
| commit | 1b3cee1c87bb34744e9ccf8eb08aca321858da45 (patch) | |
| tree | aaeeb1270e0607749042311f4f089da175a89063 | |
| parent | cdabaa50128c633f2097338a04aeb05c8bc408e4 (diff) | |
| download | bar-1b3cee1c87bb34744e9ccf8eb08aca321858da45.tar.gz bar-1b3cee1c87bb34744e9ccf8eb08aca321858da45.zip | |
improve workspaces example
| -rw-r--r-- | Sources/bar/bar.docc/examples/example-workspaces.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Sources/bar/bar.docc/examples/example-workspaces.md b/Sources/bar/bar.docc/examples/example-workspaces.md index 4f9a444..3937fc8 100644 --- a/Sources/bar/bar.docc/examples/example-workspaces.md +++ b/Sources/bar/bar.docc/examples/example-workspaces.md @@ -7,6 +7,11 @@ A script that prints the active workspaces. ```shell #!/bin/zsh +# Focus the clicked workspace +case $BUTTON in + (0) yabai -m space --focus $(echo $CELL | xargs) ;; +esac + # Get all available workspaces workspaces=() while IFS= read -r line; do @@ -46,6 +51,11 @@ yabai -m signal --add event=space_changed action='notifyutil -p bar.touch.spaces ```shell #!/bin/zsh +# Focus the clicked workspace +case $BUTTON in + (0) aerospace workspace $(echo $CELL | xargs) ;; +esac + # Get all available workspaces workspaces=() while IFS= read -r line; do |
