about summary refs log tree commit diff
path: root/modules/workstation/windowing/sway/choose_workspace.sh.in
blob: 963746e0c810c7d82d3ae331903583a2273971cc (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" \
            -H 24 \
            --fn 'monospace 10' \
            --nf '#777777' \
            --hb '#285577' \
            --hf '#ffffff' \
            --tf '#777777' \
            --ff '#ffffff'
    )