about summary refs log tree commit diff
path: root/modules/workstation/windowing/sway/choose_workspace.sh.in
blob: 84263039fcd9d31f94cf8ab52b27c36a72caea2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! @shell@ -ue
swaymsg -t get_workspaces |
    @jq@/bin/jq -r \
        '(to_entries | map(select(.value.focused)) | .[0].key), .[].name' |
    (
        read index
        exec @bemenu@/bin/bemenu \
            -p workspace \
            -I "$index" \
            --fn 'monospace 10' \
            --line-height 22 \
            --nf '#777777' \
            --hb '#285577' \
            --hf '#ffffff' \
            --tf '#777777' \
            --ff '#ffffff'
    )