fix usage
This commit is contained in:
parent
f21e07d674
commit
40591b7955
@ -28,10 +28,9 @@ move_window() {
|
|||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<-_EOF
|
cat <<-_EOF
|
||||||
A program to move all windows from workspace <1> to workspace <2> and
|
A program to move all windows from workspace <1> to workspace <2>.
|
||||||
vice versa.
|
|
||||||
|
|
||||||
If the first workspace number is not specified, current workspace is assumed.
|
If the first workspace is not specified, current workspace is assumed.
|
||||||
Workspace numbering starts with 0.
|
Workspace numbering starts with 0.
|
||||||
|
|
||||||
This is useful when you want to reorder workspaces but your DE doesn't have such
|
This is useful when you want to reorder workspaces but your DE doesn't have such
|
||||||
@ -43,6 +42,7 @@ usage() {
|
|||||||
Dependencies:
|
Dependencies:
|
||||||
wmctrl
|
wmctrl
|
||||||
_EOF
|
_EOF
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
FROM=$1
|
FROM=$1
|
||||||
@ -55,8 +55,7 @@ fi
|
|||||||
|
|
||||||
if [ -z "$TO" ]; then
|
if [ -z "$TO" ]; then
|
||||||
if [ -z "$FROM" ]; then
|
if [ -z "$FROM" ]; then
|
||||||
echo "$USAGE"
|
usage
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
TO="$FROM"
|
TO="$FROM"
|
||||||
FROM=$(current_workspace)
|
FROM=$(current_workspace)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user