1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Add missing Example script

Fixes: #869
This commit is contained in:
Dave Davenport 2018-11-01 09:32:00 +01:00
parent 6146d25b36
commit 1ed94ead7e
2 changed files with 13 additions and 0 deletions

10
Examples/i3_empty_workspace.sh Executable file
View file

@ -0,0 +1,10 @@
#!/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}

View file

@ -240,6 +240,9 @@ EXTRA_DIST+=\
$(markdown_FILES)\ $(markdown_FILES)\
$(markdown_SC_FILES)\ $(markdown_SC_FILES)\
Examples/i3_switch_workspaces.sh\ Examples/i3_switch_workspaces.sh\
Examples/i3_empty_workspace.sh\
Examples/test_script_mode.sh\
Examples/rofi-file-browser.sh\
INSTALL.md\ INSTALL.md\
AUTHORS\ AUTHORS\
doc/rofi.doxy.in\ doc/rofi.doxy.in\