mirror of
https://github.com/lbonn/rofi
synced 2024-11-26 13:50:27 +00:00
1ed94ead7e
Fixes: #869
10 lines
286 B
Bash
Executable file
10 lines
286 B
Bash
Executable file
#!/bin/bash
|
|
|
|
MAX_DESKTOPS=20
|
|
|
|
WORKSPACES=$(seq -s '\n' 1 1 ${MAX_DESKTOPS})
|
|
|
|
EMPTY_WORKSPACE=$( (i3-msg -t get_workspaces | tr ',' '\n' | grep num | awk -F: '{print int($2)}' ; \
|
|
echo -e ${WORKSPACES} ) | sort -n | uniq -u | head -n 1)
|
|
|
|
i3-msg workspace ${EMPTY_WORKSPACE}
|